Skip to content

Commit 18db5df

Browse files
committed
test(iam, aws_credentials): allow aws creds from env var
1 parent b6aa2d3 commit 18db5df

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

test/integration/plugin/test_credentials_providers.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,6 @@ def testSslAndIam(idp_arg):
130130
):
131131
redshift_connector.connect(**idp_arg)
132132

133-
idp_arg["ssl"] = True
134-
idp_arg["iam"] = True
135-
idp_arg["credentials_provider"] = None
136-
with pytest.raises(
137-
redshift_connector.InterfaceError,
138-
match="Invalid connection property setting",
139-
):
140-
redshift_connector.connect(**idp_arg)
141-
142133

143134
@pytest.mark.parametrize("idp_arg", ALL_IDP, indirect=True)
144135
def testWrongCredentialsProvider(idp_arg):

test/unit/plugin/test_credentials_providers.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,3 @@ def test_ssl_and_iam_invalid_should_fail(idp_arg):
5959
match="Invalid connection property setting",
6060
):
6161
redshift_connector.connect(**idp_arg)
62-
63-
idp_arg["ssl"] = True
64-
idp_arg["iam"] = True
65-
idp_arg["credentials_provider"] = None
66-
with pytest.raises(
67-
redshift_connector.InterfaceError,
68-
match="Invalid connection property setting",
69-
):
70-
redshift_connector.connect(**idp_arg)

test/unit/test_iam_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_set_iam_properties_enforce_client_protocol_version(_input):
235235
"iam": True,
236236
"ssl": True,
237237
},
238-
"Invalid connection property setting. Credentials provider, AWS credentials, Redshift auth profile or AWS profile must be provided when IAM is enabled",
238+
"Invalid connection property setting. cluster_identifier must be provided when IAM is enabled",
239239
),
240240
(
241241
{"iam": True, "ssl": True, "credentials_provider": "SomeProvider"},

0 commit comments

Comments
 (0)