Skip to content

Commit 4bfa2c0

Browse files
fix: remove Account Config DA from customize DA flow (#108)
1 parent 597d540 commit 4bfa2c0

File tree

2 files changed

+1
-74
lines changed

2 files changed

+1
-74
lines changed

ibm_catalog.json

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,6 @@
229229
}
230230
],
231231
"iam_permissions": [
232-
{
233-
"role_crns": [
234-
"crn:v1:bluemix:public:iam::::role:Administrator"
235-
],
236-
"service_name": "All Account Management services",
237-
"notes": "[Optional] Required to create new resource groups when enabling the Account Configuration integration."
238-
},
239232
{
240233
"role_crns": [
241234
"crn:v1:bluemix:public:iam::::role:Viewer"
@@ -248,7 +241,7 @@
248241
"crn:v1:bluemix:public:iam::::role:Administrator"
249242
],
250243
"service_name": "All Identity and Access enabled services",
251-
"notes": "Required to create an IAM authorization policy between Metrics Router and Cloud Monitoring, and to set up new resource groups with account settings when enabling Account Configuration integration."
244+
"notes": "Required to create an IAM authorization policy between Metrics Router and Cloud Monitoring."
252245
},
253246
{
254247
"role_crns": [
@@ -277,34 +270,6 @@
277270
}
278271
]
279272
},
280-
"dependencies": [
281-
{
282-
"name": "deploy-arch-ibm-account-infra-base",
283-
"description": "Organize your IBM Cloud account with preconfigured resource groups. If not selected, the default resource group is used. Optionally, expand to apply recommended security controls via \"with Account Settings\" variation.",
284-
"id": "63641cec-6093-4b4f-b7b0-98d2f4185cd6-global",
285-
"version": "v3.0.23",
286-
"flavors": [
287-
"resource-group-only",
288-
"resource-groups-with-account-settings"
289-
],
290-
"default_flavor": "resource-group-only",
291-
"catalog_id": "7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3",
292-
"optional": true,
293-
"on_by_default": false,
294-
"input_mapping": [
295-
{
296-
"dependency_input": "prefix",
297-
"version_input": "prefix",
298-
"reference_version": true
299-
},
300-
{
301-
"dependency_output": "observability_resource_group_name",
302-
"version_input": "existing_resource_group_name"
303-
}
304-
]
305-
}
306-
],
307-
"dependency_version_2": true,
308273
"terraform_version": "1.10.5"
309274
},
310275
{

tests/pr_test.go

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import (
55
"math/rand"
66
"testing"
77

8-
"github.com/IBM/go-sdk-core/v5/core"
98
"github.com/stretchr/testify/assert"
10-
"github.com/stretchr/testify/require"
11-
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/cloudinfo"
12-
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testaddons"
139
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper"
1410
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testschematic"
1511
)
@@ -137,37 +133,3 @@ func TestRunAccountSettingsDA(t *testing.T) {
137133
err := options.RunSchematicTest()
138134
assert.Nil(t, err, "This should not have errored")
139135
}
140-
141-
// This DA has no "on-by-default" dependencies defined so hence testing with Account Config DA enabled
142-
func TestAddonWithAccountConfig(t *testing.T) {
143-
t.Parallel()
144-
145-
options := testaddons.TestAddonsOptionsDefault(&testaddons.TestAddonOptions{
146-
Testing: t,
147-
Prefix: "icm-addon",
148-
ResourceGroup: resourceGroup,
149-
QuietMode: true, // Suppress logs except on failure
150-
})
151-
152-
options.AddonConfig = cloudinfo.NewAddonConfigTerraform(
153-
options.Prefix,
154-
"deploy-arch-ibm-cloud-monitoring",
155-
"fully-configurable",
156-
map[string]interface{}{
157-
"prefix": options.Prefix,
158-
"region": validRegions[rand.Intn(len(validRegions))],
159-
},
160-
)
161-
162-
// Enable Account Config DA
163-
options.AddonConfig.Dependencies = []cloudinfo.AddonConfig{
164-
{
165-
OfferingName: "deploy-arch-ibm-account-infra-base",
166-
OfferingFlavor: "resource-groups-with-account-settings",
167-
Enabled: core.BoolPtr(true), // explicitly enable this dependency
168-
},
169-
}
170-
171-
err := options.RunAddonTest()
172-
require.NoError(t, err)
173-
}

0 commit comments

Comments
 (0)