91 Commits

Author SHA1 Message Date
Viren Nadkarni
a53f620846
IoT: Generate valid keys and certificates (#5801) 2022-12-22 15:49:14 -01:00
Bert Blommers
2c8e795991
Techdebt: Replace string-format with f-strings (for i* dirs) (#5682) 2022-11-18 22:09:16 -01:00
Bert Blommers
ea8718d402
TechDebt: Move BackendDict to base_backend (#5645) 2022-11-10 08:43:20 -01:00
Bert Blommers
aa7d68a688
Feature: Ability to seed Moto, and make random ID's deterministic (#5492) 2022-09-28 09:35:12 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Jonas
e5f8ef2f9a
IOT: check if policy name already taken (#5352) 2022-08-02 19:45:46 +02:00
Jonas
201b61455b
IOT - add list_targets_for_policy action to IoTBackend (#5309) 2022-08-01 11:14:47 +02:00
Jonas
7681fe8706
IOT: fix attribute addition when updating thing groups (#5318) 2022-07-27 09:01:13 -03:00
Jonas
f47d9eefef
IOT: update thing group descriptions (#5298) 2022-07-27 07:03:26 -03:00
Jonas
ab045f5beb
IOT: check for existing thing group when creating (#5316) 2022-07-26 07:10:10 -03:00
Jonas
c51ff9bb5f
IOT: fix increment policy version ids (#5296) 2022-07-25 22:26:30 -03:00
Jonas
a1b3b15c59
IOT - check for non-default policy versions before deleting (#5297) 2022-07-25 21:23:26 -03:00
Jonas
3abb737579
IOT - allow attaching policies to ThingGroups (#5260) 2022-06-25 11:30:37 +00:00
Bert Blommers
79a2a9d423
Preparation for MultiAccount support (#5157) 2022-06-04 11:30:16 +00:00
Thomas Rausch
e911341e6a
add indirection to access account id (#5098) 2022-05-08 22:25:40 +00:00
Bert Blommers
10bd677cf2
Admin - enable more Pylint rules (#5037) 2022-04-18 20:44:56 +00:00
Arno Lehtonen
5e55daebb8
Return all things when using "*" query_string parameter (#4960) 2022-03-22 21:35:37 -01:00
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
b28d763c08
IOT improvements (#4848) 2022-02-10 08:02:40 -01:00
Bert Blommers
d118d592ca
Pylint remaining source code (#4760) 2022-01-14 18:51:49 -01:00
Bert Blommers
cf87e75d6e
Feature: Mock region (#4699) 2021-12-24 20:02:45 -01:00
Bert Blommers
b0a59fe05e
IOT - remove outdated comment 2021-12-23 11:21:13 -01:00
Bert Blommers
c301f8822c
IOT - delete_thing only when no certificates are attached (#4712) 2021-12-22 14:41:34 -01:00
Bert Blommers
bc6f6c1618
IOT - Use regular AccountId for Thing ARN (#4678) 2021-12-12 17:07:34 -01:00
Luka
0055e12a9a
Add support for IoT Domain Configuration (#4648) 2021-12-09 12:28:02 -01:00
Bert Blommers
4befb671f0
Paginator - make development easier + docs (#4650) 2021-12-03 15:33:35 -01:00
Antonio Caparrós
02a7e272e9
Search cognito identities from iot moto backend (#4555) 2021-11-11 09:32:58 -01:00
Bert Blommers
028fb8207a
IOT list_execs_for_thing: fix pagination (#4537) 2021-11-07 10:59:59 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
kbalk
3a203d35c9
Implement EC2 describe_vpc_endpoint_services() (#4322) 2021-09-24 16:01:09 +00:00
Fabian Iffländer
a02bf0022d
Fix list_job_excecutions_for_thing with status parameter (#4334) 2021-09-24 13:41:08 +00:00
Bert Blommers
07bb843214
Fix regex URLs so that a dot is actually interpreted as a dot (#4110) 2021-08-28 13:42:45 +01:00
Ariel Beck
ce449bf86b
Iot/added deprecation errors (#4192)
Co-authored-by: arielb <ariel.beck@cyberark.com>
2021-08-18 10:32:58 +01:00
Ariel Beck
2f5a702f1f
added deprecate_thing_type method for IOT (#4184)
Co-authored-by: arielb <ariel.beck@cyberark.com>
2021-08-17 18:05:18 +01:00
Koichi Ogura
ec33237165
iot: Add VersionsLimitExceededException (#4173) 2021-08-14 16:10:58 +01:00
cătălin
9d7746b9e3
Add validity dates to IoT fakecert (#4093) 2021-07-27 08:59:01 +01:00
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +01:00
cm-iwata
df34b7864b
fix #3867 IoT list_principal_things (#3868)
* fix #3867
iot list_principal_things should return list of thingnames.

* lint
2021-04-19 13:35:09 +01:00
Brian Pandola
c9dd9cc7f9
Fix: IoT does not work in server mode (#3644)
Closes #1631
2021-02-01 13:15:57 +00:00
Brian Pandola
1037929bf8
Add arns to iot responses (#3634)
Closes #3623
Supersedes #2974
2021-01-31 11:02:08 +00:00
Szymon Zmilczak
c8151e1bb4
IoT: Added Rules implementation (#3552)
* feat(iot): Added IoT Rules implementation

* fix(iot): Split IoT Rules tests into multiple test cases

* fix(iot): Updated rule creation to work with python 2

Co-authored-by: Szymon Zmilczak <szymon.zmilczak@machiq.com>
2021-01-14 14:52:23 +00:00
Brian Pandola
db7842653f
iot:DeleteThingGroup should return success even for non-existent groups (#3367)
Closes #3026
2020-10-09 15:57:00 +01:00
Ben Dennerley
958e95cf5c
Make IoT certificate ID generation deterministic and prevent duplicate certificates from being created (#3331)
* Make IoT certificate id generation deterministic

Fixes #3321

As per https://stackoverflow.com/questions/55847788/how-does-aws-iot-generate-a-certificate-id,
the IoT certificate ID is the SHA256 fingerprint of the
certificate. Since moto doesn't generate full certificates we will
instead use the SHA256 hash of the passed certificate pem.

* Don't allow duplicate IoT certificates to be created

Fixes #3320

When using boto3, trying to register a certificate that already
exists will throw a ResourceAlreadyExistsException. Moto should
follow the same pattern to allow testing error handling code in
this area.
2020-09-22 10:28:12 +01:00
zhil3
8854fd06e8
Add describe_endpoint and register_certificate_without_ca in iot_mock module with unittest (#3279)
Co-authored-by: Zhi Li <zhi_li@trendmicro.com>
2020-09-04 09:11:17 +01:00
Chagui-
e1baca1569 Implemented parent_group, recursive and name_prefix_filter for function list_thing_groups() 2020-05-05 18:08:28 -04:00
Chagui-
5e4451b0d5 Removed f string so python 2 can work correctly 2020-04-30 20:54:51 -04:00
Chagui-
95c459a86d Added exception for deleting a group which has childs.
Added better tests for delete_thing_group
2020-04-30 17:21:45 -04:00
Tomoya Iwata
b6789a2cc7 Added existence check of target thing to IoT ListThingPrincipals
fix #2910
2020-04-21 14:11:53 +09:00
Stephan Huber
20020c5170 Change whitespaces back to the way they were and fix typos 2020-01-23 15:46:50 +01:00