Skip to content

Commit 82db2db

Browse files
czeslavorainest
authored andcommitted
remove init config in integration tests
1 parent bf6e2d6 commit 82db2db

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/integration/suite_test.go

-21
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ func TestMain(m *testing.M) {
6363
fmt.Printf("INFO: custom kong image specified via env: %s:%s\n", testenv.KongImage(), testenv.KongTag())
6464
}
6565

66-
kongbuilder = kongbuilder.WithAdditionalValue("dblessConfig.configMap", "initconfig")
67-
6866
kongAddon := kongbuilder.Build()
6967
builder := environments.NewBuilder().WithAddons(kongAddon)
7068

@@ -122,25 +120,6 @@ func TestMain(m *testing.M) {
122120
clusterVersion, err = env.Cluster().Version()
123121
exitOnErr(ctx, err)
124122

125-
// TODO ARF
126-
initconfig := corev1.ConfigMap{
127-
ObjectMeta: metav1.ObjectMeta{
128-
Name: "initconfig",
129-
},
130-
Data: map[string]string{
131-
"kong.yml": `_format_version: '3.0'
132-
_transform: false
133-
upstreams:
134-
- name: stub
135-
`,
136-
},
137-
}
138-
if _, err := env.Cluster().Client().CoreV1().ConfigMaps(kongAddon.Namespace()).Create(ctx, &initconfig, metav1.CreateOptions{}); err != nil {
139-
if !apierrors.IsAlreadyExists(err) {
140-
exitOnErr(ctx, err)
141-
}
142-
}
143-
144123
exitOnErr(ctx, DeployAddonsForCluster(ctx, env.Cluster()))
145124
fmt.Printf("INFO: waiting for cluster %s and all addons to become ready\n", env.Cluster().Name())
146125
envReadyCtx, envReadyCancel := context.WithTimeout(ctx, testenv.EnvironmentReadyTimeout())

0 commit comments

Comments
 (0)