Add publish operation to iotdata (#1362)
* add publish operation to iotdata * restart ci
This commit is contained in:
parent
e227a30aa9
commit
cfc994d0ae
3 changed files with 21 additions and 0 deletions
|
|
@ -85,3 +85,9 @@ def test_update():
|
|||
payload.should.have.key('metadata').which.should.have.key('desired').which.should.have.key('led')
|
||||
payload.should.have.key('version').which.should.equal(2)
|
||||
payload.should.have.key('timestamp')
|
||||
|
||||
|
||||
@mock_iotdata
|
||||
def test_publish():
|
||||
client = boto3.client('iot-data', region_name='ap-northeast-1')
|
||||
client.publish(topic='test/topic', qos=1, payload=b'')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue