Commit Graph

85 Commits

Author SHA1 Message Date
Bert Blommers
95dfa04691
Techdebt: Replace sure with regular assertions in IOT (#6577) 2023-07-31 21:50:24 +00:00
Bert Blommers
1aa8e7a7b2
IOT: search_index() now returns the connectivity-attribute (#6535) 2023-07-19 09:36:55 +00:00
Bert Blommers
8bf55cbe0e
IOT: delete_certificate() now supports the forceDelete-parameter (#6085) 2023-03-18 09:36:26 -01:00
Bert Blommers
79616e11e6
Core: Allow same request to be made multiple times (#5837) 2023-01-12 11:11:27 -01:00
Viren Nadkarni
a53f620846
IoT: Generate valid keys and certificates (#5801) 2022-12-22 15:49:14 -01:00
Bert Blommers
1a8ddc0f2b
Techdebt: Replace string-format with f-strings (for tests dirs) (#5678) 2022-11-17 21:41:08 -01:00
Bert Blommers
4f84e2f154
TechDebt - enable pylint rule redefined-outer-scope (#5518) 2022-10-04 16:28:30 +00:00
Bert Blommers
9e1d78d44e
TechDebt - remove warnings from tests (#5390) 2022-08-17 14:01:22 +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
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
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
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
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
Fabian Iffländer
a02bf0022d
Fix list_job_excecutions_for_thing with status parameter (#4334) 2021-09-24 13:41:08 +00: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
Bert Blommers
273ca63d59 Linting 2020-11-11 15:55:37 +00:00
Matěj Cepl
6d364dc7aa Pytest model of exceptions uses 'value' attribute instead of 'exception'. 2020-11-11 12:21:04 +01:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
Matěj Cepl
77dc60ea97 Port test suite from nose to pytest.
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01: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-
8bfc7ed760 Fixed python2 2020-05-06 10:28:13 -04:00
Chagui-
c51ef87f71 black 2020-05-06 09:43:34 -04:00
Chagui-
f7b0484428 Refactored test_describe_thing_group_metadata_hierarchy to use generate_thing_group_tree 2020-05-06 09:37:43 -04:00
Chagui-
0869c83ea5 Refactored test_delete_thing_group to use generate_thing_group_tree 2020-05-06 09:32:47 -04:00
Chagui-
5fd8179653 Refactored test_list_thing_groups into class TestListThingGroup 2020-05-06 09:29:16 -04:00