Skip to content

Commit bdace7a

Browse files
authored
test: base test secret group name on prefix (#275)
1 parent 245d67f commit bdace7a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/pr_test.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ import (
66
"encoding/base64"
77
"encoding/json"
88
"fmt"
9+
"io/fs"
10+
"log"
11+
mathrand "math/rand"
12+
"os"
13+
"path/filepath"
14+
"strings"
15+
"testing"
16+
917
"github.com/gruntwork-io/terratest/modules/files"
1018
"github.com/gruntwork-io/terratest/modules/logger"
1119
"github.com/gruntwork-io/terratest/modules/random"
@@ -16,13 +24,6 @@ import (
1624
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/common"
1725
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper"
1826
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testschematic"
19-
"io/fs"
20-
"log"
21-
mathrand "math/rand"
22-
"os"
23-
"path/filepath"
24-
"strings"
25-
"testing"
2627
)
2728

2829
const standardSolutionTerraformDir = "solutions/standard"
@@ -178,6 +179,7 @@ func TestRunStandardSolutionSchematics(t *testing.T) {
178179
{Name: "service_credential_secrets", Value: serviceCredentialSecrets, DataType: "list(object)"},
179180
{Name: "service_credential_names", Value: string(serviceCredentialNamesJSON), DataType: "map(string)"},
180181
{Name: "admin_pass", Value: GetRandomAdminPassword(t), DataType: "string"},
182+
{Name: "admin_pass_secrets_manager_secret_group", Value: fmt.Sprintf("mysql-%s-admin-secrets", options.Prefix), DataType: "string"},
181183
}
182184
err = options.RunSchematicTest()
183185
assert.Nil(t, err, "This should not have errored")

0 commit comments

Comments
 (0)