Skip to content

Commit a82db00

Browse files
feat: Add UI regex valiadation (#229)
1 parent d49fbee commit a82db00

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

ibm_catalog.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,14 @@
254254
},
255255
{
256256
"key": "instance_crn",
257-
"required": true
257+
"required": true,
258+
"value_constraints": [
259+
{
260+
"type": "regex",
261+
"description": "The value provided for 'instance_crn' is not valid.",
262+
"value": "^crn:(.*:){3}(sysdig-monitor|sysdig-secure):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$"
263+
}
264+
]
258265
},
259266
{
260267
"key": "access_key",

tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.25.3
77
require (
88
github.com/gruntwork-io/terratest v0.51.0
99
github.com/stretchr/testify v1.11.1
10-
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.13
10+
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.14
1111
)
1212

1313
require (

tests/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
296296
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
297297
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
298298
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
299-
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.13 h1:jINbZDyvKbtUimsqF4XMTb5l4QWiGNUazvRBQiGmCX8=
300-
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.13/go.mod h1:bKjJy3Hk26Vc++TmB5PDlTzDb312YemSkZdznAR51Wc=
299+
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.14 h1:glsxlvkJ3aEehvdWQi/g3sqDFA5XtJumwEieN+TfGzo=
300+
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.14/go.mod h1:o0c7STGyke4WOA45ddxNRMJu8JdPw07uICKMJQc1hNg=
301301
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
302302
github.com/tmccombs/hcl2json v0.6.4 h1:/FWnzS9JCuyZ4MNwrG4vMrFrzRgsWEOVi+1AyYUVLGw=
303303
github.com/tmccombs/hcl2json v0.6.4/go.mod h1:+ppKlIW3H5nsAsZddXPy2iMyvld3SHxyjswOZhavRDk=

0 commit comments

Comments
 (0)