Skip to content

Commit

Permalink
test: add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Oct 10, 2022
1 parent a6d10d4 commit 032a453
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/provider/azure_storageaccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ func TestEnsureStorageAccount(t *testing.T) {
SubnetPropertiesFormatNil bool
mockStorageAccountsClient bool
setAccountOptions bool
accessTier string
requireInfrastructureEncryption *bool
keyVaultURL *string
accountName string
Expand All @@ -391,6 +392,7 @@ func TestEnsureStorageAccount(t *testing.T) {
requireInfrastructureEncryption: to.BoolPtr(true),
keyVaultURL: to.StringPtr("keyVaultURL"),
resourceGroup: "rg",
accessTier: "AccessTierHot",
accountName: "",
expectedErr: "",
},
Expand Down Expand Up @@ -479,6 +481,7 @@ func TestEnsureStorageAccount(t *testing.T) {
Name: test.accountName,
CreateAccount: test.createAccount,
SubscriptionID: test.subscriptionID,
AccessTier: test.accessTier,
}
}

Expand Down

0 comments on commit 032a453

Please sign in to comment.