@@ -92,11 +92,11 @@ def get_token(self, username=None):
92
92
return fid .read ()
93
93
elif ENVIRON == "azure" :
94
94
opts = parse_uri (self .uri_single )["options" ]
95
- token_aud = opts ["authmechanismproperties " ]["TOKEN_RESOURCE" ]
95
+ token_aud = opts ["authMechanismProperties " ]["TOKEN_RESOURCE" ]
96
96
return _get_azure_response (token_aud , username )["access_token" ]
97
97
elif ENVIRON == "gcp" :
98
98
opts = parse_uri (self .uri_single )["options" ]
99
- token_aud = opts ["authmechanismproperties " ]["TOKEN_RESOURCE" ]
99
+ token_aud = opts ["authMechanismProperties " ]["TOKEN_RESOURCE" ]
100
100
return _get_gcp_response (token_aud , username )["access_token" ]
101
101
elif ENVIRON == "k8s" :
102
102
return _get_k8s_token ()
@@ -1108,7 +1108,7 @@ async def test_5_1_azure_with_no_username(self):
1108
1108
if ENVIRON != "azure" :
1109
1109
raise unittest .SkipTest ("Test is only supported on Azure" )
1110
1110
opts = parse_uri (self .uri_single )["options" ]
1111
- resource = opts ["authmechanismproperties " ]["TOKEN_RESOURCE" ]
1111
+ resource = opts ["authMechanismProperties " ]["TOKEN_RESOURCE" ]
1112
1112
1113
1113
props = dict (TOKEN_RESOURCE = resource , ENVIRONMENT = "azure" )
1114
1114
client = await self .create_client (authMechanismProperties = props )
@@ -1119,7 +1119,7 @@ async def test_5_2_azure_with_bad_username(self):
1119
1119
raise unittest .SkipTest ("Test is only supported on Azure" )
1120
1120
1121
1121
opts = parse_uri (self .uri_single )["options" ]
1122
- token_aud = opts ["authmechanismproperties " ]["TOKEN_RESOURCE" ]
1122
+ token_aud = opts ["authMechanismProperties " ]["TOKEN_RESOURCE" ]
1123
1123
1124
1124
props = dict (TOKEN_RESOURCE = token_aud , ENVIRONMENT = "azure" )
1125
1125
client = await self .create_client (username = "bad" , authmechanismproperties = props )
0 commit comments