From 14668d93ff152da31e73e9a238b78419df63cd91 Mon Sep 17 00:00:00 2001 From: Arya Girish K Date: Thu, 16 Oct 2025 12:52:12 +0530 Subject: [PATCH 1/4] feat: Add UI regex valiadation --- ibm_catalog.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ibm_catalog.json b/ibm_catalog.json index 5f7133d..9575a94 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -254,7 +254,14 @@ }, { "key": "instance_crn", - "required": true + "required": true, + "value_constraints": [ + { + "type": "regex", + "description": "The value provided for 'existing_monitoring_crn' is not valid.", + "value": "^crn:(.*:){3}sysdig-monitor:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" + } + ] }, { "key": "access_key", From 0b2d117e55a18b21e53dba60870e0efe084524ef Mon Sep 17 00:00:00 2001 From: Arya Girish K Date: Thu, 16 Oct 2025 14:45:22 +0530 Subject: [PATCH 2/4] fix: Updated the vrn name in description --- ibm_catalog.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibm_catalog.json b/ibm_catalog.json index 9575a94..67206ca 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -258,7 +258,7 @@ "value_constraints": [ { "type": "regex", - "description": "The value provided for 'existing_monitoring_crn' is not valid.", + "description": "The value provided for 'instance_crn' is not valid.", "value": "^crn:(.*:){3}sysdig-monitor:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" } ] From 25c39e21f5eb39c69293573a7bfeee4c793028c3 Mon Sep 17 00:00:00 2001 From: Arya Girish K Date: Thu, 16 Oct 2025 14:51:21 +0530 Subject: [PATCH 3/4] fix: Updated crn pattern --- ibm_catalog.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibm_catalog.json b/ibm_catalog.json index 67206ca..1a24102 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -259,7 +259,7 @@ { "type": "regex", "description": "The value provided for 'instance_crn' is not valid.", - "value": "^crn:(.*:){3}sysdig-monitor:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" + "value": "^crn:(.*:){3}(sysdig-monitor|sysdig-secure):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" } ] }, From 91d0d935833e7fbe3971d588aa7bde9b59505b35 Mon Sep 17 00:00:00 2001 From: Arya Girish K Date: Fri, 17 Oct 2025 15:23:33 +0530 Subject: [PATCH 4/4] update terratest version --- tests/go.mod | 2 +- tests/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/go.mod b/tests/go.mod index 8278448..17aa49d 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -7,7 +7,7 @@ toolchain go1.25.3 require ( github.com/gruntwork-io/terratest v0.51.0 github.com/stretchr/testify v1.11.1 - github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.13 + github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.14 ) require ( diff --git a/tests/go.sum b/tests/go.sum index 768f442..b30b6e0 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -296,8 +296,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.13 h1:jINbZDyvKbtUimsqF4XMTb5l4QWiGNUazvRBQiGmCX8= -github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.13/go.mod h1:bKjJy3Hk26Vc++TmB5PDlTzDb312YemSkZdznAR51Wc= +github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.14 h1:glsxlvkJ3aEehvdWQi/g3sqDFA5XtJumwEieN+TfGzo= +github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.14/go.mod h1:o0c7STGyke4WOA45ddxNRMJu8JdPw07uICKMJQc1hNg= 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=