Skip to content

Commit 1b81d64

Browse files
authored
ci: update the pre commit hook symlink (#268)
1 parent e92366c commit 1b81d64

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
common-dev-assets/stack-assets/.pre-commit-config.yaml
1+
common-dev-assets/module-assets/.pre-commit-config.yaml

ibm_catalog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
},
150150
{
151151
"title": "Creates an IBM Cloud App Configuration instance with Configuration Aggregator",
152-
"description": "Facilitate a Cloud Governance SME with up-to-date configuration data of IBM Cloud resources in one place so that comprehensive information is available for goverance and compliance initiatives."
152+
"description": "Facilitate a Cloud Governance SME with up-to-date configuration data of IBM Cloud resources in one place so that comprehensive information is available for governance and compliance initiatives."
153153
},
154154
{
155155
"title": "Creates a IBM Cloud Security and Compliance Center Workload Protection instance",

tests/pr_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package tests
33
import (
44
"fmt"
55
"log"
6-
"math/rand"
76
"os"
87
"strings"
98
"testing"
@@ -53,7 +52,7 @@ func TestProjectsFullTest(t *testing.T) {
5352

5453
options.StackInputs = map[string]interface{}{
5554
"prefix": options.Prefix,
56-
"region": validRegions[rand.Intn(len(validRegions))],
55+
"region": validRegions[common.CryptoIntn(len(validRegions))],
5756
"existing_resource_group_name": resourceGroup,
5857
"secrets_manager_service_plan": "trial",
5958
"ibmcloud_api_key": options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], // always required by the stack
@@ -76,7 +75,7 @@ func TestProjectsExistingResourcesTest(t *testing.T) {
7675
// Provision RG and EN
7776
// ------------------------------------------------------------------------------------
7877

79-
region := validRegions[rand.Intn(len(validRegions))]
78+
region := validRegions[common.CryptoIntn(len(validRegions))]
8079
prefix := fmt.Sprintf("css-ext-%s", strings.ToLower(random.UniqueId()))
8180
realTerraformDir := "./resources"
8281
tempTerraformDir, _ := files.CopyTerraformFolderToTemp(realTerraformDir, fmt.Sprintf(prefix+"-%s", strings.ToLower(random.UniqueId())))

tests/resources/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ module "event_notifications" {
3030
##############################################################################
3131

3232
module "key_protect" {
33-
source = "terraform-ibm-modules/kms-all-inclusive/ibm"
34-
version= "5.5.0"
33+
source = "terraform-ibm-modules/kms-all-inclusive/ibm"
34+
version = "5.5.0"
3535
resource_group_id = module.resource_group.resource_group_id
36-
region = var.region
36+
region = var.region
3737
}

tests/resources/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ output "event_notification_instance_crn" {
2424
}
2525

2626
output "key_project_instance_crn" {
27-
value = module.key_protect.key_protect_crn
27+
value = module.key_protect.key_protect_crn
2828
description = "CRN of created Key Protect instance"
2929
}

0 commit comments

Comments
 (0)