Skip to content

Commit 0e49e12

Browse files
committed
fix
1 parent 6d0413e commit 0e49e12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/pr_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ type Config struct {
5656
GhTokenSecretId string `yaml:"geretain-public-gh-token-dev-user"`
5757
SubscriptionIdSecretId string `yaml:"geretain-appmod-ease4j-subscription-id"`
5858
MQCapacityInstanceCRN string `yaml:"mq_capacity_crn"`
59+
PrivateOnlySecMgrCRN string `yaml:"privateOnlySecMgrCRN"`
5960
}
6061

6162
var smCRN string
63+
var privSmCRN string
6264
var ghTokenSecretId string
6365
var ghTokenSecretCRN string
6466
var subscriptionIdSecretId string
@@ -84,6 +86,7 @@ func TestMain(m *testing.M) {
8486

8587
// Parse the SM CRN from data and setting combined test input values used in TestRunDefaultExample and TestRunUpgradeExamplen
8688
smCRN = config.SmCRN
89+
privSmCRN = config.PrivateOnlySecMgrCRN
8790
ghTokenSecretId = config.GhTokenSecretId // pragma: allowlist secret
8891
subscriptionIdSecretId = config.SubscriptionIdSecretId // pragma: allowlist secret
8992
mqCapacityInstanceCRN = config.MQCapacityInstanceCRN
@@ -358,7 +361,7 @@ func TestAddonsDefaultConfiguration(t *testing.T) {
358361
OfferingName: "deploy-arch-ibm-secrets-manager",
359362
OfferingFlavor: "fully-configurable",
360363
Inputs: map[string]interface{}{
361-
"existing_secrets_manager_crn": permanentResources["privateOnlySecMgrCRN"],
364+
"existing_secrets_manager_crn": privSmCRN,
362365
"service_plan": "__NULL__", // no plan value needed when using existing SM
363366
"skip_secrets_manager_iam_auth_policy": true, // since using an existing Secrets Manager instance, attempting to re-create auth policy can cause conflicts if the policy already exists
364367
"secret_groups": []string{}, // passing empty array for secret groups as default value is creating general group and it will cause conflicts as we are using an existing SM

0 commit comments

Comments
 (0)