@@ -840,31 +840,31 @@ func TestGetStorageAccount(t *testing.T) {
840
840
},
841
841
expectedAccountName : "" ,
842
842
expectedAccountKey : "" ,
843
- expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field secrets(map[accountname: accountkey:]) " ),
843
+ expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field" ),
844
844
},
845
845
{
846
846
options : emptyAccountKeyMap ,
847
847
expectedAccountName : "testaccount" ,
848
848
expectedAccountKey : "" ,
849
- expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets(%v)" , emptyAccountKeyMap ),
849
+ expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets" ),
850
850
},
851
851
{
852
852
options : emptyAccountNameMap ,
853
853
expectedAccountName : "" ,
854
854
expectedAccountKey : "testkey" ,
855
- expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field secrets(%v)" , emptyAccountNameMap ),
855
+ expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field in secrets" ),
856
856
},
857
857
{
858
858
options : emptyAzureAccountKeyMap ,
859
859
expectedAccountName : "testaccount" ,
860
860
expectedAccountKey : "" ,
861
- expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets(%v)" , emptyAzureAccountKeyMap ),
861
+ expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets" ),
862
862
},
863
863
{
864
864
options : emptyAzureAccountNameMap ,
865
865
expectedAccountName : "" ,
866
866
expectedAccountKey : "testkey" ,
867
- expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field secrets(%v)" , emptyAzureAccountNameMap ),
867
+ expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field in secrets" ),
868
868
},
869
869
{
870
870
options : nil ,
@@ -905,19 +905,15 @@ func TestGetContainerReference(t *testing.T) {
905
905
secrets : map [string ]string {
906
906
"accountKey" : fakeAccountKey ,
907
907
},
908
- expectedError : fmt .Errorf ("could not find %s or %s field secrets(%v)" , accountNameField , defaultSecretAccountName , map [string ]string {
909
- "accountKey" : fakeAccountKey ,
910
- }),
908
+ expectedError : fmt .Errorf ("could not find %s or %s field in secrets" , accountNameField , defaultSecretAccountName ),
911
909
},
912
910
{
913
911
name : "failed to retrieve accountKey" ,
914
912
containerName : fakeContainerName ,
915
913
secrets : map [string ]string {
916
914
"accountName" : fakeAccountName ,
917
915
},
918
- expectedError : fmt .Errorf ("could not find %s or %s field in secrets(%v)" , accountKeyField , defaultSecretAccountKey , map [string ]string {
919
- "accountName" : fakeAccountName ,
920
- }),
916
+ expectedError : fmt .Errorf ("could not find %s or %s field in secrets" , accountKeyField , defaultSecretAccountKey ),
921
917
},
922
918
{
923
919
name : "failed to obtain client" ,
0 commit comments