diff --git a/apptests/kustomize/kustomize_test.go b/apptests/kustomize/kustomize_test.go index 378d70d8d..93d5882d9 100644 --- a/apptests/kustomize/kustomize_test.go +++ b/apptests/kustomize/kustomize_test.go @@ -15,8 +15,8 @@ func TestBuild(t *testing.T) { builder := New( filepath.Join(wd, "testdata"), map[string]string{ - "name": "test-name", - "namespace": "kommander", + "name": "test", + "namespace": "test", }, ) err = builder.Build() @@ -26,15 +26,11 @@ func TestBuild(t *testing.T) { assert.NoError(t, err) // define the expected output - expected := `apiVersion: source.toolkit.fluxcd.io/v1beta2 -kind: HelmRepository + expected := `apiVersion: apps/v1 +kind: Deployment metadata: - name: test-name - namespace: kommander -spec: - interval: 10m - timeout: 1m - url: https://charts.bitnami.com/bitnami/ + name: test + namespace: test ` assert.Equal(t, output, expected) diff --git a/apptests/kustomize/testdata/sample.yaml b/apptests/kustomize/testdata/sample.yaml index 966b54da6..270baf3cc 100644 --- a/apptests/kustomize/testdata/sample.yaml +++ b/apptests/kustomize/testdata/sample.yaml @@ -1,10 +1,6 @@ --- -apiVersion: source.toolkit.fluxcd.io/v1beta2 -kind: HelmRepository +apiVersion: apps/v1 +kind: Deployment metadata: name: ${name} namespace: ${namespace} -spec: - interval: 10m - timeout: 1m - url: "${helmMirrorURL:=https://charts.bitnami.com/bitnami/}"