Cloud provider Azure: adopt changes to CCM / CNM for Azure

This commit is contained in:
Malte Poll 2022-03-28 12:24:41 +02:00 committed by Malte Poll
parent 3c1ddfb94e
commit 20811794c2
11 changed files with 351 additions and 14 deletions

View file

@ -363,6 +363,7 @@ func TestConvertToCloudServiceAccountURI(t *testing.T) {
assert := assert.New(t)
require := require.New(t)
key := ApplicationCredentials{
TenantID: "tenant-id",
ClientID: "client-id",
ClientSecret: "client-secret",
}
@ -374,6 +375,7 @@ func TestConvertToCloudServiceAccountURI(t *testing.T) {
assert.Equal("serviceaccount", uri.Scheme)
assert.Equal("azure", uri.Host)
assert.Equal(url.Values{
"tenant_id": []string{"tenant-id"},
"client_id": []string{"client-id"},
"client_secret": []string{"client-secret"},
}, query)