forked from mirrors/nixpkgs
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
--- flux/cmd/flux/create_secret_git_test.go.orig 2021-12-07 13:46:21.196278468 +0100
|
|
+++ flux/cmd/flux/create_secret_git_test.go 2021-12-07 13:49:51.668566955 +0100
|
|
@@ -20,16 +20,6 @@
|
|
args: "create secret git podinfo-auth --url=https://github.com/stefanprodan/podinfo --username=my-username --password=my-password --namespace=my-namespace --export",
|
|
assert: assertGoldenFile("./testdata/create_secret/git/secret-git-basic.yaml"),
|
|
},
|
|
- {
|
|
- name: "ssh key",
|
|
- args: "create secret git podinfo-auth --url=ssh://git@github.com/stefanprodan/podinfo --private-key-file=./testdata/create_secret/git/ecdsa.private --namespace=my-namespace --export",
|
|
- assert: assertGoldenFile("testdata/create_secret/git/git-ssh-secret.yaml"),
|
|
- },
|
|
- {
|
|
- name: "ssh key with password",
|
|
- args: "create secret git podinfo-auth --url=ssh://git@github.com/stefanprodan/podinfo --private-key-file=./testdata/create_secret/git/ecdsa-password.private --password=password --namespace=my-namespace --export",
|
|
- assert: assertGoldenFile("testdata/create_secret/git/git-ssh-secret-password.yaml"),
|
|
- },
|
|
}
|
|
|
|
for _, tt := range tests {
|