@@ -779,31 +779,31 @@ func TestGetStorageAccount(t *testing.T) {
779
779
},
780
780
expectedAccountName : "" ,
781
781
expectedAccountKey : "" ,
782
- expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field secrets(map[accountname: accountkey:]) " ),
782
+ expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field" ),
783
783
},
784
784
{
785
785
options : emptyAccountKeyMap ,
786
786
expectedAccountName : "testaccount" ,
787
787
expectedAccountKey : "" ,
788
- expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets(%v)" , emptyAccountKeyMap ),
788
+ expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets" ),
789
789
},
790
790
{
791
791
options : emptyAccountNameMap ,
792
792
expectedAccountName : "" ,
793
793
expectedAccountKey : "testkey" ,
794
- expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field secrets(%v)" , emptyAccountNameMap ),
794
+ expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field in secrets" ),
795
795
},
796
796
{
797
797
options : emptyAzureAccountKeyMap ,
798
798
expectedAccountName : "testaccount" ,
799
799
expectedAccountKey : "" ,
800
- expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets(%v)" , emptyAzureAccountKeyMap ),
800
+ expectedError : fmt .Errorf ("could not find accountkey or azurestorageaccountkey field in secrets" ),
801
801
},
802
802
{
803
803
options : emptyAzureAccountNameMap ,
804
804
expectedAccountName : "" ,
805
805
expectedAccountKey : "testkey" ,
806
- expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field secrets(%v)" , emptyAzureAccountNameMap ),
806
+ expectedError : fmt .Errorf ("could not find accountname or azurestorageaccountname field in secrets" ),
807
807
},
808
808
{
809
809
options : nil ,
@@ -844,19 +844,15 @@ func TestGetContainerReference(t *testing.T) {
844
844
secrets : map [string ]string {
845
845
"accountKey" : fakeAccountKey ,
846
846
},
847
- expectedError : fmt .Errorf ("could not find %s or %s field secrets(%v)" , accountNameField , defaultSecretAccountName , map [string ]string {
848
- "accountKey" : fakeAccountKey ,
849
- }),
847
+ expectedError : fmt .Errorf ("could not find %s or %s field in secrets" , accountNameField , defaultSecretAccountName ),
850
848
},
851
849
{
852
850
name : "failed to retrieve accountKey" ,
853
851
containerName : fakeContainerName ,
854
852
secrets : map [string ]string {
855
853
"accountName" : fakeAccountName ,
856
854
},
857
- expectedError : fmt .Errorf ("could not find %s or %s field in secrets(%v)" , accountKeyField , defaultSecretAccountKey , map [string ]string {
858
- "accountName" : fakeAccountName ,
859
- }),
855
+ expectedError : fmt .Errorf ("could not find %s or %s field in secrets" , accountKeyField , defaultSecretAccountKey ),
860
856
},
861
857
{
862
858
name : "failed to obtain client" ,
0 commit comments