Skip to content

Commit 8b5bb94

Browse files
Jordan-Williams2Jordan-Williams2
authored andcommitted
fix: update code
1 parent 59b615f commit 8b5bb94

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.catalog-onboard-pipeline.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ offerings:
99
- name: fully-configurable
1010
mark_ready: true
1111
install_type: fullstack
12-
pre_validation: "tests/scripts/pre-validation-deploy-slz-roks-and-logs-instances.sh"
13-
post_validation: "tests/scripts/post-validation-destroy-slz-roks-and-logs-instances.sh"
12+
pre_validation: "tests/scripts/pre-validation-deploy-ocp-and-logs-instances.sh"
13+
post_validation: "tests/scripts/post-validation-destroy-ocp-and-logs-instances.sh"

tests/pr_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ func TestFullyConfigurableSolution(t *testing.T) {
6767
var region = validRegions[rand.IntN(len(validRegions))]
6868

6969
// ------------------------------------------------------------------------------------------------------
70-
// Deploy SLZ ROKS Cluster and Observability instances since it is needed to deploy Logs Agent
70+
// Deploy OCP Cluster and Logs instance since it is needed to deploy Logs Agent
7171
// ------------------------------------------------------------------------------------------------------
7272

73-
prefix := fmt.Sprintf("slz-%s", strings.ToLower(random.UniqueId()))
73+
prefix := fmt.Sprintf("ocp-%s", strings.ToLower(random.UniqueId()))
7474
realTerraformDir := "./resources"
7575
tempTerraformDir, _ := files.CopyTerraformFolderToTemp(realTerraformDir, fmt.Sprintf(prefix+"-%s", strings.ToLower(random.UniqueId())))
7676

@@ -96,7 +96,7 @@ func TestFullyConfigurableSolution(t *testing.T) {
9696
_, existErr := terraform.InitAndApplyE(t, existingTerraformOptions)
9797

9898
if existErr != nil {
99-
assert.True(t, existErr == nil, "Init and Apply of temp resources (SLZ-ROKS and Observability Instances) failed")
99+
assert.True(t, existErr == nil, "Init and Apply of temp resources (OCP and Logs Instance) failed")
100100
} else {
101101

102102
options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{
@@ -153,10 +153,10 @@ func TestFullyConfigurableUpgradeSolution(t *testing.T) {
153153
var region = validRegions[rand.IntN(len(validRegions))]
154154

155155
// ------------------------------------------------------------------------------------------------------
156-
// Deploy SLZ ROKS Cluster and Observability instances since it is needed to deploy Logs Agent
156+
// Deploy OCP Cluster and Observability instances since it is needed to deploy Logs Agent
157157
// ------------------------------------------------------------------------------------------------------
158158

159-
prefix := fmt.Sprintf("slz-%s", strings.ToLower(random.UniqueId()))
159+
prefix := fmt.Sprintf("ocp-%s", strings.ToLower(random.UniqueId()))
160160
realTerraformDir := "./resources"
161161
tempTerraformDir, _ := files.CopyTerraformFolderToTemp(realTerraformDir, fmt.Sprintf(prefix+"-%s", strings.ToLower(random.UniqueId())))
162162

@@ -182,7 +182,7 @@ func TestFullyConfigurableUpgradeSolution(t *testing.T) {
182182
_, existErr := terraform.InitAndApplyE(t, existingTerraformOptions)
183183

184184
if existErr != nil {
185-
assert.True(t, existErr == nil, "Init and Apply of temp resources (SLZ-ROKS and Observability Instances) failed")
185+
assert.True(t, existErr == nil, "Init and Apply of temp resources (OCP and Logs Instances) failed")
186186
} else {
187187

188188
options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{

tests/resources/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
output "region" {
66
value = var.region
7-
description = "Region where SLZ ROKS Cluster is deployed."
7+
description = "Region where OCP Cluster is deployed."
88
}
99

1010
output "prefix" {

tests/scripts/post-validation-deploy-slz-roks-and-logs-instances.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TF_VARS_FILE="terraform.tfvars"
1111

1212
(
1313
cd ${TERRAFORM_SOURCE_DIR}
14-
echo "Destroying prerequisite SLZ OCP Cluster and Logs instance.."
14+
echo "Destroying prerequisite OCP Cluster and Logs instance.."
1515
terraform destroy -input=false -auto-approve -var-file=${TF_VARS_FILE} || exit 1
1616
rm -f "${TF_VARS_FILE}"
1717

tests/scripts/pre-validation-deploy-slz-roks-and-logs-instances.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ TF_VARS_FILE="terraform.tfvars"
1515
(
1616
cwd=$(pwd)
1717
cd ${TERRAFORM_SOURCE_DIR}
18-
echo "Provisioning prerequisite SLZ ROKS CLUSTER and Logs Instance.."
18+
echo "Provisioning prerequisite OCP Cluster and Logs Instance.."
1919
terraform init || exit 1
2020
# $VALIDATION_APIKEY is available in the catalog runtime
2121
{
2222
echo "ibmcloud_api_key=\"${VALIDATION_APIKEY}\""
23-
echo "prefix=\"slz-$(openssl rand -hex 2)\""
23+
echo "prefix=\"ocp-$(openssl rand -hex 2)\""
2424
} >> ${TF_VARS_FILE}
2525
terraform apply -input=false -auto-approve -var-file=${TF_VARS_FILE} || exit 1
2626

0 commit comments

Comments
 (0)