add a basic test to start

This commit is contained in:
Chris Wolfe 2018-02-19 09:10:52 -06:00
parent 553d074241
commit 29061ec0f8

View File

@ -458,3 +458,20 @@ def test_add_remove_list_tags_for_resource():
ResourceType='Parameter' ResourceType='Parameter'
) )
len(response['TagList']).should.equal(0) len(response['TagList']).should.equal(0)
@mock_ssm
def test_send_command():
ssm_document = 'AWS-RunShellScript'
script = '#!/bin/bash\necho \'hello world\''
client = boto3.client('ssm', region_name='us-east-1')
response = client.send_command(
InstanceIds=['i-123456'],
DocumentName=ssm_document,
TimeoutSeconds=60,
Parameters={'commands': [script]},
OutputS3BucketName='the-bucket'
)
assert response['Command']