Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Dec 22, 2022
1 parent ebb7580 commit d77bb95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/provider/azure_storageaccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ func TestEnsureStorageAccount(t *testing.T) {
mockStorageAccountsClient bool
setAccountOptions bool
accessTier string
storageType StorageType
requireInfrastructureEncryption *bool
keyVaultURL *string
accountName string
Expand All @@ -390,6 +391,7 @@ func TestEnsureStorageAccount(t *testing.T) {
createPrivateEndpoint: true,
mockStorageAccountsClient: true,
setAccountOptions: true,
storageType: StorageTypeFile,
requireInfrastructureEncryption: to.BoolPtr(true),
keyVaultURL: to.StringPtr("keyVaultURL"),
resourceGroup: "rg",
Expand All @@ -404,6 +406,7 @@ func TestEnsureStorageAccount(t *testing.T) {
SubnetPropertiesFormatNil: true,
mockStorageAccountsClient: true,
setAccountOptions: true,
storageType: StorageTypeFile,
resourceGroup: "rg",
accountName: "accountname",
expectedErr: "could not get storage key for storage account",
Expand Down Expand Up @@ -485,6 +488,7 @@ func TestEnsureStorageAccount(t *testing.T) {
CreateAccount: test.createAccount,
SubscriptionID: test.subscriptionID,
AccessTier: test.accessTier,
StorageType: test.storageType,
}
}

Expand Down

0 comments on commit d77bb95

Please sign in to comment.