@@ -33,6 +33,7 @@ import (
33
33
"k8s.io/apimachinery/pkg/util/wait"
34
34
"k8s.io/utils/pointer"
35
35
"sigs.k8s.io/blob-csi-driver/pkg/util"
36
+ "sigs.k8s.io/cloud-provider-azure/pkg/azclient"
36
37
"sigs.k8s.io/cloud-provider-azure/pkg/azureclients/blobclient"
37
38
"sigs.k8s.io/cloud-provider-azure/pkg/azureclients/storageaccountclient/mockstorageaccountclient"
38
39
azure "sigs.k8s.io/cloud-provider-azure/pkg/provider"
@@ -1802,9 +1803,13 @@ func TestAuthorizeAzcopyWithIdentity(t *testing.T) {
1802
1803
d .cloud = & azure.Cloud {
1803
1804
Config : azure.Config {
1804
1805
AzureAuthConfig : config.AzureAuthConfig {
1805
- TenantID : "TenantID" ,
1806
- AADClientID : "AADClientID" ,
1807
- AADClientSecret : "AADClientSecret" ,
1806
+ ARMClientConfig : azclient.ARMClientConfig {
1807
+ TenantID : "TenantID" ,
1808
+ },
1809
+ AzureAuthConfig : azclient.AzureAuthConfig {
1810
+ AADClientID : "AADClientID" ,
1811
+ AADClientSecret : "AADClientSecret" ,
1812
+ },
1808
1813
},
1809
1814
},
1810
1815
}
@@ -1828,8 +1833,12 @@ func TestAuthorizeAzcopyWithIdentity(t *testing.T) {
1828
1833
d .cloud = & azure.Cloud {
1829
1834
Config : azure.Config {
1830
1835
AzureAuthConfig : config.AzureAuthConfig {
1831
- TenantID : "TenantID" ,
1832
- AADClientSecret : "AADClientSecret" ,
1836
+ ARMClientConfig : azclient.ARMClientConfig {
1837
+ TenantID : "TenantID" ,
1838
+ },
1839
+ AzureAuthConfig : azclient.AzureAuthConfig {
1840
+ AADClientSecret : "AADClientSecret" ,
1841
+ },
1833
1842
},
1834
1843
},
1835
1844
}
@@ -1848,8 +1857,10 @@ func TestAuthorizeAzcopyWithIdentity(t *testing.T) {
1848
1857
d .cloud = & azure.Cloud {
1849
1858
Config : azure.Config {
1850
1859
AzureAuthConfig : config.AzureAuthConfig {
1851
- UseManagedIdentityExtension : true ,
1852
- UserAssignedIdentityID : "UserAssignedIdentityID" ,
1860
+ AzureAuthConfig : azclient.AzureAuthConfig {
1861
+ UseManagedIdentityExtension : true ,
1862
+ UserAssignedIdentityID : "UserAssignedIdentityID" ,
1863
+ },
1853
1864
},
1854
1865
},
1855
1866
}
@@ -1871,7 +1882,9 @@ func TestAuthorizeAzcopyWithIdentity(t *testing.T) {
1871
1882
d .cloud = & azure.Cloud {
1872
1883
Config : azure.Config {
1873
1884
AzureAuthConfig : config.AzureAuthConfig {
1874
- UseManagedIdentityExtension : true ,
1885
+ AzureAuthConfig : azclient.AzureAuthConfig {
1886
+ UseManagedIdentityExtension : true ,
1887
+ },
1875
1888
},
1876
1889
},
1877
1890
}
@@ -1941,7 +1954,9 @@ func TestGetAzcopyAuth(t *testing.T) {
1941
1954
d .cloud = & azure.Cloud {
1942
1955
Config : azure.Config {
1943
1956
AzureAuthConfig : config.AzureAuthConfig {
1944
- UseManagedIdentityExtension : true ,
1957
+ AzureAuthConfig : azclient.AzureAuthConfig {
1958
+ UseManagedIdentityExtension : true ,
1959
+ },
1945
1960
},
1946
1961
},
1947
1962
}
@@ -1962,7 +1977,9 @@ func TestGetAzcopyAuth(t *testing.T) {
1962
1977
d .cloud = & azure.Cloud {
1963
1978
Config : azure.Config {
1964
1979
AzureAuthConfig : config.AzureAuthConfig {
1965
- UseManagedIdentityExtension : true ,
1980
+ AzureAuthConfig : azclient.AzureAuthConfig {
1981
+ UseManagedIdentityExtension : true ,
1982
+ },
1966
1983
},
1967
1984
},
1968
1985
}
0 commit comments