Skip to content

Commit 14daa62

Browse files
authored
Merge pull request #21 from terraform-ibm-modules/docupdates
doc: badge update
2 parents 707bd0b + adda93e commit 14daa62

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ jobs:
1515
call-terraform-ci-pipeline:
1616
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-terraform-module-ci.yml@v1.7.3
1717
secrets: inherit
18+
with:
19+
craTarget: "examples/complete"
20+
craGoalIgnoreFile: "cra-tf-validate-ignore-goals.json"
21+
craEnvironmentVariables: "TF_VAR_existing_at_instance_crn=crn:v1:bluemix:public:logdnaat:eu-de:a/abac0df06b644a9cabc6e44f55b3880e:b1ef3365-dfbf-4d8f-8ac8-75f4f84d6f4a::"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Update the title to match the module name and add a description -->
44
# IBM Cloud Databases for ICD Postgresql module
55
<!-- UPDATE BADGE: Update the link for the following badge-->
6-
[![Incubating (Not yet consumable)](https://img.shields.io/badge/status-Incubating%20(Not%20yet%20consumable)-red)](https://terraform-ibm-modules.github.io/documentation/#/badge-status)
6+
[![Stable (With quality checks)](https://img.shields.io/badge/Status-Stable%20(With%20quality%20checks)-green?style=plastic)](https://terraform-ibm-modules.github.io/documentation/#/badge-status)
77
[![Build status](https://github.com/terraform-ibm-modules/terraform-ibm-module-template/actions/workflows/ci.yml/badge.svg)](https://github.com/terraform-ibm-modules/terraform-ibm-module-template/actions/workflows/ci.yml)
88
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
99
[![latest release](https://img.shields.io/github/v/release/terraform-ibm-modules/terraform-ibm-icd-postgresql?logo=GitHub&sort=semver)](https://github.com/terraform-ibm-modules/terraform-ibm-icd-postgresql/releases/latest)

cra-tf-validate-ignore-goals.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"scc_goals": [
3+
{
4+
"scc_goal_id": "3000225",
5+
"description": "Check whether Databases for PostgreSQL network access is restricted to a specific IP range",
6+
"ignore_reason": "Tracking in https://github.ibm.com/GoldenEye/issues/issues/3635",
7+
"is_valid": true
8+
},
9+
{
10+
"scc_goal_id": "3000408",
11+
"description": "Check whether Flow Logs for VPC are enabled",
12+
"ignore_reason": "This is part of the test example and not the current module",
13+
"is_valid": false
14+
}
15+
]
16+
}

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module "postgresql_db" {
8989
resource_tags = var.resource_tags
9090
cbr_rules = [
9191
{
92-
name = "${var.prefix}-${var.pg_version}postgres-zone"
92+
name = var.pg_version == null ? "${var.prefix}-postgres-zone" : "${var.prefix}-${var.pg_version}-postgres-zone"
9393
description = "sample rule"
9494
enforcement_mode = "enabled" #Postgresql does not support report mode
9595
account_id = data.ibm_iam_account_settings.iam_account_settings.account_id

tests/pr_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ func TestRunCompleteExample(t *testing.T) {
7575
func TestRunUpgradeExample(t *testing.T) {
7676
t.Parallel()
7777

78-
// TODO: Remove this line after the first merge to primary branch is complete to enable upgrade test
79-
t.Skip("Skipping upgrade test until initial code is in primary branch")
80-
8178
options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{
8279
Testing: t,
8380
TerraformDir: defaultExampleTerraformDir,

0 commit comments

Comments
 (0)