Skip to content

Commit 21a1946

Browse files
committed
auth: Fix Azure auth test for China and US Gov clouds
The default Azure Public case already expected the double slash, but the China and US Gov test cases incorrectly expected single slashes, causing test failures. Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 parent 125d607 commit 21a1946

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

auth/azure/provider_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func TestProvider_NewRESTConfig(t *testing.T) {
420420
},
421421
},
422422
authorityHost: "https://login.chinacloudapi.cn/",
423-
secondScope: "https://management.core.chinacloudapi.cn/.default",
423+
secondScope: "https://management.core.chinacloudapi.cn//.default",
424424
},
425425
{
426426
name: "valid AKS cluster - us gov",
@@ -439,7 +439,7 @@ func TestProvider_NewRESTConfig(t *testing.T) {
439439
},
440440
},
441441
authorityHost: "https://login.microsoftonline.us/",
442-
secondScope: "https://management.core.usgovcloudapi.net/.default",
442+
secondScope: "https://management.core.usgovcloudapi.net//.default",
443443
},
444444
{
445445
name: "valid AKS cluster - lowercase",

0 commit comments

Comments
 (0)