Commit Graph

64 Commits

Author SHA1 Message Date
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
Chagui-
40d1c8c9b9 Added generate_thing_group_tree function 2020-05-06 09:10:42 -04:00
Chagui-
e114eb9383 Added test test_list_thing_groups() 2020-05-05 18:08:56 -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
d9b782be0a fix lint 2020-04-21 14:43:04 +09: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
ed8d5edb50 fix linting errors 2019-12-23 09:01:53 +01:00
Stephan Huber
0527e88d46 Merge remote-tracking branch 'upstream/master' 2019-12-23 08:38:53 +01:00
Chagui-
e6a12f5bd7 -Applied Black 2019-11-21 17:57:45 -03:00
Chagui-
f5ba01c867 -Fixed forever
-Added test_describe_thing_group_metadata_hierarchy to test new functionality
2019-11-21 17:16:34 -03:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Emile Fugulin
2d5e2e9c2b Detach principal from thing when it is deleted 2019-10-24 13:59:30 -04:00
Stephan
3020ee408a Merged iot 2019-05-28 08:56:49 +02:00
Stephan
d0de38601d Merge remote-tracking branch 'upstream/master' 2019-05-28 08:55:50 +02:00
Adam Hodges
71f83d7e4f Add support for IoT register_certificate (#1827) 2019-05-25 18:30:23 +01:00
Stephan
498419462d updaated 2019-04-29 13:26:33 +02:00
Stephan
82f476bb46 adding more job mocks for IoT service 2019-01-09 16:18:22 +01:00
Stephan
cfd12b6d19 added IoT job_execution and job mocks 2019-01-07 14:22:12 +01:00
Steve Pulec
19bdf7de73
Merge pull request #1901 from cm-iwata/add_iot_attach_policy
Add support for IoT attach_policy
2018-12-28 20:17:31 -05:00
Stephan
3ea673b3d0 started with mocking job execution 2018-12-21 16:30:17 +01:00
Stephan
e51d1bfade merge 2018-12-21 12:28:56 +01:00
Tomoya Iwata
e52158f811 Add support for IoT detach_policy 2018-11-06 17:15:30 +09:00