use proper paths for committing

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
pull/3403/head
Somtochi Onyekwere 2 years ago
parent dc2a4c267b
commit 6924a16ac7

@ -283,7 +283,7 @@ func TestAzureDevOpsCloning(t *testing.T) {
name: foobar
namespace: %s
`, tt.name)
name := fmt.Sprintf("./cloning-test/%s/configmap.yaml", tt.name)
name := fmt.Sprintf("cloning-test/%s/configmap.yaml", tt.name)
files[name] = strings.NewReader(manifest)
}
@ -554,7 +554,7 @@ stringData:
require.NoError(t, err)
files := make(map[string]io.Reader)
files["./key-vault-sops/secret.enc.yaml"] = r
files["key-vault-sops/secret.enc.yaml"] = r
err = commitAndPushAll(repo, files, name)
require.NoError(t, err)

@ -168,9 +168,9 @@ patchesStrategicMerge:
`
files := make(map[string]io.Reader)
files["./clusters/e2e/flux-system/kustomization.yaml"] = strings.NewReader(kustomizeYaml)
files["./clusters/e2e/flux-system/gotk-components.yaml"] = strings.NewReader("")
files["./clusters/e2e/flux-system/gotk-sync.yaml"] = strings.NewReader("")
files["clusters/e2e/flux-system/kustomization.yaml"] = strings.NewReader(kustomizeYaml)
files["clusters/e2e/flux-system/gotk-components.yaml"] = strings.NewReader("")
files["clusters/e2e/flux-system/gotk-sync.yaml"] = strings.NewReader("")
err = commitAndPushAll(repo, files, defaultBranch)
if err != nil {
return err

Loading…
Cancel
Save