From f95e2dcc4719398530a13b2e8fb95b3a03766078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Conall=20=C3=93=20Cofaigh?= Date: Mon, 29 Sep 2025 17:30:01 +0100 Subject: [PATCH 1/2] test: disable metrics route creation --- tests/pr_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/pr_test.go b/tests/pr_test.go index ecc3ce6..e7cfcb5 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -277,6 +277,18 @@ func TestActivityTrackerDefaultConfiguration(t *testing.T) { }, ) + // Disable target / route creation to prevent hitting quota in account + options.AddonConfig.Dependencies = []cloudinfo.AddonConfig{ + { + OfferingName: "deploy-arch-ibm-cloud-monitoring", + OfferingFlavor: "fully-configurable", + Inputs: map[string]interface{}{ + "enable_metrics_routing_to_cloud_monitoring": false, + }, + Enabled: core.BoolPtr(true), + }, + } + err := options.RunAddonTest() require.NoError(t, err) } From 8d59855187202dd06d8072e38ca9e150645ec3cc Mon Sep 17 00:00:00 2001 From: ocofaigh Date: Mon, 29 Sep 2025 19:12:40 +0100 Subject: [PATCH 2/2] fix tests --- tests/go.mod | 4 ++-- tests/go.sum | 4 ++-- tests/pr_test.go | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/go.mod b/tests/go.mod index 263e029..5288f42 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -5,9 +5,10 @@ go 1.24.0 toolchain go1.25.1 require ( + github.com/IBM/go-sdk-core/v5 v5.21.0 github.com/gruntwork-io/terratest v0.50.0 github.com/stretchr/testify v1.11.1 - github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.6 + github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.9 ) require ( @@ -15,7 +16,6 @@ require ( github.com/IBM-Cloud/bluemix-go v0.0.0-20240719075425-078fcb3a55be // indirect github.com/IBM-Cloud/power-go-client v1.12.0 // indirect github.com/IBM/cloud-databases-go-sdk v0.8.0 // indirect - github.com/IBM/go-sdk-core/v5 v5.21.0 // indirect github.com/IBM/platform-services-go-sdk v0.86.1 // indirect github.com/IBM/project-go-sdk v0.3.6 // indirect github.com/IBM/schematics-go-sdk v0.4.0 // indirect diff --git a/tests/go.sum b/tests/go.sum index b0b26b3..38ef9ad 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -295,8 +295,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= -github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.6 h1:Tr7AlrQ+s1Nc9VOwB+It8sItnDOXhfXTxKqI2KtdyFA= -github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.6/go.mod h1:YBrRYc+5y5Pr9CXmY35lOqTQdlIjA4x4+3iVObXGOCE= +github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.9 h1:ntigNnXy4Ut6eVMfBUjQ5yoIZR5Rt419+pwfle4MO5c= +github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.9/go.mod h1:YBrRYc+5y5Pr9CXmY35lOqTQdlIjA4x4+3iVObXGOCE= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tmccombs/hcl2json v0.6.4 h1:/FWnzS9JCuyZ4MNwrG4vMrFrzRgsWEOVi+1AyYUVLGw= github.com/tmccombs/hcl2json v0.6.4/go.mod h1:+ppKlIW3H5nsAsZddXPy2iMyvld3SHxyjswOZhavRDk= diff --git a/tests/pr_test.go b/tests/pr_test.go index e7cfcb5..3b0c264 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -9,6 +9,7 @@ import ( "strings" "testing" + "github.com/IBM/go-sdk-core/v5/core" "github.com/gruntwork-io/terratest/modules/files" "github.com/gruntwork-io/terratest/modules/logger" "github.com/gruntwork-io/terratest/modules/random"