fix errors
This commit is contained in:
parent
6ab416724a
commit
7d3af65f22
3 changed files with 27 additions and 12 deletions
|
|
@ -296,7 +296,7 @@ def test_create_cluster_with_vpc_security_groups_boto3():
|
|||
|
||||
@mock_redshift
|
||||
def test_create_cluster_with_iam_roles():
|
||||
iam_role = 'arn:aws:iam:::role/my-iam-role'
|
||||
iam_roles_arn = ['arn:aws:iam:::role/my-iam-role',]
|
||||
client = boto3.client('redshift', region_name='us-east-1')
|
||||
cluster_id = 'my_cluster'
|
||||
client.create_cluster(
|
||||
|
|
@ -304,12 +304,12 @@ def test_create_cluster_with_iam_roles():
|
|||
NodeType="dw.hs1.xlarge",
|
||||
MasterUsername="username",
|
||||
MasterUserPassword="password",
|
||||
IamRoles=[iam_role],
|
||||
IamRoles=iam_roles_arn
|
||||
)
|
||||
response = client.describe_clusters(ClusterIdentifier=cluster_id)
|
||||
cluster = response['Clusters'][0]
|
||||
iam_roles = [role['IamRoleArn'] for role in cluster['IamRoles']]
|
||||
list(iam_roles).should.equal([iam_role.arn])
|
||||
iam_roles_arn.should.equal(iam_roles)
|
||||
|
||||
|
||||
@mock_redshift_deprecated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue