Skip to content

Commit bca48e4

Browse files
committed
set ip allowlist in a test function and config
1 parent db4d2c3 commit bca48e4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/providersdkv2/resource_vault_cluster_test.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,15 @@ func azureTestSteps(t *testing.T, inp inputT) []resource.TestStep {
196196

197197
// This step tests Vault cluster and admin token resource creation.
198198
func createClusteAndTestAdminTokenGeneration(t *testing.T, in *inputT) resource.TestStep {
199+
newIn := *in
200+
newIn.IPAllowlist = []*vaultmodels.HashicorpCloudVault20201125CidrRange{
201+
{
202+
Address: "172.25.14.0/24",
203+
Description: "some description",
204+
},
205+
}
199206
return resource.TestStep{
200-
Config: testConfig(in.tf),
207+
Config: testConfig(setTestAccVaultClusterConfig(t, updatedVaultClusterPublicProxyObservabilityAndMVU, newIn, in.UpdateTier1)),
201208
Check: resource.ComposeTestCheckFunc(
202209
testAccCheckVaultClusterExists(in.VaultClusterResourceName),
203210
resource.TestCheckResourceAttr(in.VaultClusterResourceName, "cluster_id", in.VaultClusterName),

0 commit comments

Comments
 (0)