Skip to content

Commit

Permalink
remove init config in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo authored and rainest committed Aug 29, 2023
1 parent bf6e2d6 commit 82db2db
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ func TestMain(m *testing.M) {
fmt.Printf("INFO: custom kong image specified via env: %s:%s\n", testenv.KongImage(), testenv.KongTag())
}

kongbuilder = kongbuilder.WithAdditionalValue("dblessConfig.configMap", "initconfig")

kongAddon := kongbuilder.Build()
builder := environments.NewBuilder().WithAddons(kongAddon)

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

// TODO ARF
initconfig := corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Name: "initconfig",
},
Data: map[string]string{
"kong.yml": `_format_version: '3.0'
_transform: false
upstreams:
- name: stub
`,
},
}
if _, err := env.Cluster().Client().CoreV1().ConfigMaps(kongAddon.Namespace()).Create(ctx, &initconfig, metav1.CreateOptions{}); err != nil {
if !apierrors.IsAlreadyExists(err) {
exitOnErr(ctx, err)
}
}

exitOnErr(ctx, DeployAddonsForCluster(ctx, env.Cluster()))
fmt.Printf("INFO: waiting for cluster %s and all addons to become ready\n", env.Cluster().Name())
envReadyCtx, envReadyCancel := context.WithTimeout(ctx, testenv.EnvironmentReadyTimeout())
Expand Down

0 comments on commit 82db2db

Please sign in to comment.