File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/unitary/default_setup/auth Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ def test_get_signer_with_api_keys(
80
80
mock_rp_signer .assert_called_once ()
81
81
82
82
@mock .patch ("oci.auth.signers.get_resource_principals_signer" )
83
+ @mock .patch .dict (os .environ , {"OCI_RESOURCE_PRINCIPAL_VERSION" : "2.2" })
83
84
def test_resource_principal (self , mock_rp_signer ):
84
- os .environ ["OCI_RESOURCE_PRINCIPAL_VERSION" ] = "2.2"
85
85
resource_principal ()
86
86
mock_rp_signer .assert_called_once ()
87
87
@@ -264,11 +264,11 @@ def test_api_key_create_signer(
264
264
assert "test" in signer ["client_kwargs" ]
265
265
266
266
@mock .patch ("oci.auth.signers.get_resource_principals_signer" )
267
+ @mock .patch .dict (os .environ , {"OCI_RESOURCE_PRINCIPAL_VERSION" : "2.2" })
267
268
def test_resource_principal_create_signer (self , mock_rp_signer ):
268
269
"""
269
270
Testing resource principal setup with set_auth() and getting it with default_signer()
270
271
"""
271
- os .environ ["OCI_RESOURCE_PRINCIPAL_VERSION" ] = "2.2"
272
272
set_auth (AuthType .RESOURCE_PRINCIPAL )
273
273
signer = default_signer (client_kwargs = {"test" : "test" })
274
274
assert "additional_user_agent" in signer ["config" ]
You can’t perform that action at this time.
0 commit comments