Skip to content

Commit

Permalink
Azure credential unit test issue fix (kubeflow#2481)
Browse files Browse the repository at this point in the history
Signed-off-by: Suresh Nakkeran <suresh.n@ideas2it.com>

Signed-off-by: Suresh Nakkeran <suresh.n@ideas2it.com>
  • Loading branch information
Suresh-Nakkeran authored Oct 21, 2022
1 parent cac4d52 commit b45b6d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/kserve/test/test_creds_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ def test_set_azure_credentials(mock_create_secret, mock_set_service_account):
"tenantId": "XXXXXXXXXXX"
}
data = {
'AZ_CLIENT_ID': creds['clientId'],
'AZ_CLIENT_SECRET': creds['clientSecret'],
'AZ_SUBSCRIPTION_ID': creds['subscriptionId'],
'AZ_TENANT_ID': creds['tenantId'],
'AZURE_CLIENT_ID': creds['clientId'],
'AZURE_CLIENT_SECRET': creds['clientSecret'],
'AZURE_SUBSCRIPTION_ID': creds['subscriptionId'],
'AZURE_TENANT_ID': creds['tenantId'],
}
with tempfile.NamedTemporaryFile(suffix=".json") as creds_file:
creds_file.write(json.dumps(creds).encode("utf-8"))
Expand Down

0 comments on commit b45b6d7

Please sign in to comment.