Skip to content

Commit ca6cfd7

Browse files
authored
fix(deps): update DA dependencies (#81)
1 parent c36cc01 commit ca6cfd7

File tree

4 files changed

+94
-25
lines changed

4 files changed

+94
-25
lines changed

ibm_catalog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@
671671
"reference_version": true
672672
}
673673
],
674-
"version": "v3.58.2"
674+
"version": "v3.63.1"
675675
}
676676
],
677677
"dependency_version_2": true,

tests/go.mod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ go 1.24.0
55
toolchain go1.25.1
66

77
require (
8+
github.com/IBM/go-sdk-core/v5 v5.21.0
89
github.com/stretchr/testify v1.11.1
9-
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.6
10+
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.11
1011
)
1112

1213
require (
1314
dario.cat/mergo v1.0.0 // indirect
1415
github.com/IBM-Cloud/bluemix-go v0.0.0-20240719075425-078fcb3a55be // indirect
1516
github.com/IBM-Cloud/power-go-client v1.12.0 // indirect
1617
github.com/IBM/cloud-databases-go-sdk v0.8.0 // indirect
17-
github.com/IBM/go-sdk-core/v5 v5.21.0 // indirect
1818
github.com/IBM/platform-services-go-sdk v0.86.1 // indirect
19-
github.com/IBM/project-go-sdk v0.3.6 // indirect
19+
github.com/IBM/project-go-sdk v0.3.9 // indirect
2020
github.com/IBM/schematics-go-sdk v0.4.0 // indirect
2121
github.com/IBM/vpc-go-sdk v1.0.2 // indirect
2222
github.com/Microsoft/go-winio v0.6.2 // indirect
@@ -52,7 +52,7 @@ require (
5252
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
5353
github.com/google/go-cmp v0.7.0 // indirect
5454
github.com/google/uuid v1.6.0 // indirect
55-
github.com/gruntwork-io/terratest v0.50.0 // indirect
55+
github.com/gruntwork-io/terratest v0.51.0 // indirect
5656
github.com/hashicorp/errwrap v1.1.0 // indirect
5757
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
5858
github.com/hashicorp/go-getter/v2 v2.2.3 // indirect
@@ -90,6 +90,7 @@ require (
9090
go.opentelemetry.io/otel v1.35.0 // indirect
9191
go.opentelemetry.io/otel/metric v1.35.0 // indirect
9292
go.opentelemetry.io/otel/trace v1.35.0 // indirect
93+
go.yaml.in/yaml/v2 v2.4.2 // indirect
9394
golang.org/x/crypto v0.41.0 // indirect
9495
golang.org/x/mod v0.26.0 // indirect
9596
golang.org/x/net v0.42.0 // indirect
@@ -100,5 +101,5 @@ require (
100101
gopkg.in/warnings.v0 v0.1.2 // indirect
101102
gopkg.in/yaml.v2 v2.4.0 // indirect
102103
gopkg.in/yaml.v3 v3.0.1 // indirect
103-
sigs.k8s.io/yaml v1.4.0 // indirect
104+
sigs.k8s.io/yaml v1.6.0 // indirect
104105
)

tests/go.sum

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ github.com/IBM/go-sdk-core/v5 v5.21.0 h1:DUnYhvC4SoC8T84rx5omnhY3+xcQg/Whyoa3mDP
1111
github.com/IBM/go-sdk-core/v5 v5.21.0/go.mod h1:Q3BYO6iDA2zweQPDGbNTtqft5tDcEpm6RTuqMlPcvbw=
1212
github.com/IBM/platform-services-go-sdk v0.86.1 h1:ngBpaXvUF3gmLvbU1Z4lX1wowOSYgGoKBEBaR/urt30=
1313
github.com/IBM/platform-services-go-sdk v0.86.1/go.mod h1:aGD045m6I8pfcB77wft8w2cHqWOJjcM3YSSV55BX0Js=
14-
github.com/IBM/project-go-sdk v0.3.6 h1:DRiANKnAePevFsIKSvR89SUaMa2xsd7YKK71Ka1eqKI=
15-
github.com/IBM/project-go-sdk v0.3.6/go.mod h1:FOJM9ihQV3EEAY6YigcWiTNfVCThtdY8bLC/nhQHFvo=
14+
github.com/IBM/project-go-sdk v0.3.9 h1:D/UfMMn+vMQyvYf9EfocV6HrD3HcVpeIVoUSjNKuROo=
15+
github.com/IBM/project-go-sdk v0.3.9/go.mod h1:FOJM9ihQV3EEAY6YigcWiTNfVCThtdY8bLC/nhQHFvo=
1616
github.com/IBM/schematics-go-sdk v0.4.0 h1:x01f/tPquYJYLQzJLGuxWfCbV/EdSMXRikOceNy/JLM=
1717
github.com/IBM/schematics-go-sdk v0.4.0/go.mod h1:Xe7R7xgwmXBHu09w2CbBe8lkWZaYxNQo19bS4dpLrUA=
1818
github.com/IBM/vpc-go-sdk v1.0.2 h1:WhI1Cb8atA8glUdFg0SEUh9u8afjnKHxZAj9onQBi04=
@@ -147,8 +147,8 @@ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
147147
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
148148
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
149149
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
150-
github.com/gruntwork-io/terratest v0.50.0 h1:AbBJ7IRCpLZ9H4HBrjeoWESITv8nLjN6/f1riMNcAsw=
151-
github.com/gruntwork-io/terratest v0.50.0/go.mod h1:see0lbKvAqz6rvzvN2wyfuFQQG4PWcAb2yHulF6B2q4=
150+
github.com/gruntwork-io/terratest v0.51.0 h1:RCXlCwWlHqhUoxgF6n3hvywvbvrsTXqoqt34BrnLekw=
151+
github.com/gruntwork-io/terratest v0.51.0/go.mod h1:evZHXb8VWDgv5O5zEEwfkwMhkx9I53QR/RB11cISrpg=
152152
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
153153
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
154154
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
@@ -295,8 +295,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
295295
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
296296
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
297297
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
298-
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.6 h1:Tr7AlrQ+s1Nc9VOwB+It8sItnDOXhfXTxKqI2KtdyFA=
299-
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.6/go.mod h1:YBrRYc+5y5Pr9CXmY35lOqTQdlIjA4x4+3iVObXGOCE=
298+
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.11 h1:+ATsuqFoHUg/EWpBfF7o8wzxibSan8hG5DJV2NIgrO4=
299+
github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper v1.60.11/go.mod h1:9QXyZWo0MotbNavJDyeEdpTj1YKoI6IT1wOPJnI1ahI=
300300
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
301301
github.com/tmccombs/hcl2json v0.6.4 h1:/FWnzS9JCuyZ4MNwrG4vMrFrzRgsWEOVi+1AyYUVLGw=
302302
github.com/tmccombs/hcl2json v0.6.4/go.mod h1:+ppKlIW3H5nsAsZddXPy2iMyvld3SHxyjswOZhavRDk=
@@ -331,6 +331,8 @@ go.opentelemetry.io/otel/sdk v1.29.0 h1:vkqKjk7gwhS8VaWb0POZKmIEDimRCMsopNYnriHy
331331
go.opentelemetry.io/otel/sdk v1.29.0/go.mod h1:pM8Dx5WKnvxLCb+8lG1PRNIDxu9g9b9g59Qr7hfAAok=
332332
go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs=
333333
go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc=
334+
go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI=
335+
go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU=
334336
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
335337
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
336338
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
@@ -500,8 +502,8 @@ google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2
500502
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
501503
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
502504
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
503-
google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA=
504-
google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
505+
google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM=
506+
google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
505507
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
506508
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
507509
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
@@ -524,5 +526,5 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
524526
gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
525527
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
526528
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
527-
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
528-
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=
529+
sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs=
530+
sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4=

tests/pr_test.go

Lines changed: 75 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ import (
99
"os"
1010
"testing"
1111

12+
"github.com/IBM/go-sdk-core/v5/core"
1213
"github.com/stretchr/testify/assert"
14+
"github.com/stretchr/testify/require"
15+
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/cloudinfo"
1316
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/common"
17+
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testaddons"
1418
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper"
1519
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testschematic"
1620
)
@@ -20,6 +24,7 @@ const resourceGroup = "geretain-test-resources"
2024

2125
const fullyConfigurableTerraformDir = "solutions/fully-configurable"
2226
const quickStartTerraformDir = "solutions/quickstart"
27+
const terraformVersion = "terraform_v1.10" // This should match the version in the ibm_catalog.json
2328

2429
// Define a struct with fields that match the structure of the YAML data
2530
const yamlLocation = "../common-dev-assets/common-go-assets/common-permanent-resources.yaml"
@@ -44,10 +49,11 @@ func TestMain(m *testing.M) {
4449

4550
func setupOptions(t *testing.T, prefix string, dir string) *testhelper.TestOptions {
4651
options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{
47-
Testing: t,
48-
TerraformDir: dir,
49-
Prefix: prefix,
50-
ResourceGroup: resourceGroup,
52+
Testing: t,
53+
TerraformDir: dir,
54+
Prefix: prefix,
55+
ResourceGroup: resourceGroup,
56+
CheckApplyResultForUpgrade: true,
5157
})
5258
return options
5359
}
@@ -67,11 +73,13 @@ func setupQuickstartOptions(t *testing.T, prefix string) *testschematic.TestSche
6773
quickStartTerraformDir + "/*.tf",
6874
},
6975

70-
TemplateFolder: quickStartTerraformDir,
71-
Tags: []string{"test-schematic"},
72-
DeleteWorkspaceOnFail: false,
73-
WaitJobCompleteMinutes: 360,
74-
Region: region,
76+
TemplateFolder: quickStartTerraformDir,
77+
Tags: []string{"test-schematic"},
78+
DeleteWorkspaceOnFail: false,
79+
WaitJobCompleteMinutes: 360,
80+
Region: region,
81+
TerraformVersion: terraformVersion,
82+
CheckApplyResultForUpgrade: true,
7583
})
7684
options.TerraformVars = []testschematic.TestSchematicTerraformVar{
7785
{Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true},
@@ -133,3 +141,61 @@ func TestRunQuickstartUpgradeSchematics(t *testing.T) {
133141
assert.Nil(t, err, "This should not have errored")
134142
}
135143
}
144+
145+
/*******************************************************************
146+
* Addons test *
147+
********************************************************************/
148+
149+
func TestAddonDefaultConfiguration(t *testing.T) {
150+
t.Parallel()
151+
152+
options := testaddons.TestAddonsOptionsDefault(&testaddons.TestAddonOptions{
153+
Testing: t,
154+
Prefix: "ai-add",
155+
ResourceGroup: resourceGroup,
156+
QuietMode: false, // Suppress logs except on failure
157+
})
158+
159+
options.AddonConfig = cloudinfo.NewAddonConfigTerraform(
160+
options.Prefix,
161+
"deploy-arch-ibm-ocp-ai",
162+
"fully-configurable",
163+
map[string]interface{}{
164+
"prefix": options.Prefix,
165+
},
166+
)
167+
168+
options.AddonConfig.Dependencies = []cloudinfo.AddonConfig{
169+
// use existing secrets manager instance to help prevent hitting trial instance limit in account
170+
{
171+
OfferingName: "deploy-arch-ibm-secrets-manager",
172+
OfferingFlavor: "fully-configurable",
173+
Inputs: map[string]interface{}{
174+
"existing_secrets_manager_crn": permanentResources["privateOnlySecMgrCRN"],
175+
"service_plan": "__NULL__", // no plan value needed when using existing SM
176+
"skip_secrets_manager_iam_auth_policy": true, // since using an existing Secrets Manager instance, attempting to re-create auth policy can cause conflicts if the policy already exists
177+
"secret_groups": []string{}, // passing empty array for secret groups as default value is creating general group and it will cause conflicts as we are using an existing SM
178+
},
179+
},
180+
// Disable target / route creation to prevent hitting quota in account
181+
{
182+
OfferingName: "deploy-arch-ibm-cloud-monitoring",
183+
OfferingFlavor: "fully-configurable",
184+
Inputs: map[string]interface{}{
185+
"enable_metrics_routing_to_cloud_monitoring": false,
186+
},
187+
Enabled: core.BoolPtr(true),
188+
},
189+
{
190+
OfferingName: "deploy-arch-ibm-activity-tracker",
191+
OfferingFlavor: "fully-configurable",
192+
Inputs: map[string]interface{}{
193+
"enable_activity_tracker_event_routing_to_cloud_logs": false,
194+
},
195+
Enabled: core.BoolPtr(true),
196+
},
197+
}
198+
199+
err := options.RunAddonTest()
200+
require.NoError(t, err)
201+
}

0 commit comments

Comments
 (0)