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
Tomoya Iwata
3d71a67794
Add some validations for IoT delete operations
...
fix #1908
2018-10-30 14:51:04 +09:00
Tomoya Iwata
249dd7059e
add test case for IoT attach_policy
...
do nothing if policy have already attached to certificate
2018-10-28 17:13:17 +09:00
Tomoya Iwata
80f860727f
Add support for IoT attach_policy
2018-10-25 20:44:42 +09:00
Stephan Huber
bb7e1197bc
adding AWS IoT policy version handling
...
[+] `list_policy_version`
[+] `get_policy_version`
[+] `create_policy_version`
[+] `delete_policy_version`
[+] `set_default_policy_version`
2018-10-25 12:13:56 +02:00
Stephan Huber
36d8f118e3
implement attach_policy
, detach_policy
and list_attached_policy
2018-10-24 14:53:08 +02:00
Stephan Huber
1c5c5036e3
fixing errors on get_job_document
2018-09-24 13:04:39 +02:00
Stephan Huber
c49a8387bd
implemented get_job_document
for AWS IoT
2018-09-24 09:29:57 +02:00
Stephan Huber
10f96b2ccf
next_token (pagination) added for list_thing_types
2018-06-28 12:59:08 +02:00
Stephan Huber
db3593575f
list_thing_types and list_things now uses pagination
2018-06-28 10:32:51 +02:00
Stephan Huber
821cd5376d
return thingArn when using list_things
2018-06-04 15:58:08 +02:00
Stephan Huber
4b4ce5acde
Added create_job and describe_job to aws iot mock
2018-05-09 09:22:12 +02:00
Akito Nozaki
ba3c9db8a7
Fixing create_key_and_certificate boolean parameter ( #1572 )
2018-04-17 11:32:39 -07:00
Toshiya Kawasaki
71af9317f2
Add group features to iot ( #1402 )
...
* Add thing group features
* thing thing-group relation
* clean up comments
2018-01-04 09:59:37 +00:00