mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-15 17:51:01 +00:00
Changing secret types to match test
This commit is contained in:
parent
6f3adf91d5
commit
6feafe9043
1 changed files with 3 additions and 3 deletions
|
@ -305,7 +305,7 @@ func DataPropertyDockerconfigJSON(f *framework.Framework) (string, func(*framewo
|
|||
}
|
||||
}
|
||||
|
||||
// This case adds an ssh private key secret and sybcs it.
|
||||
// This case adds an ssh private key secret and synchronizes it.
|
||||
// Not supported by: vault. Json parsing error.
|
||||
func SSHKeySync(f *framework.Framework) (string, func(*framework.TestCase)) {
|
||||
return "[common] should sync ssh key secret", func(tc *framework.TestCase) {
|
||||
|
@ -354,7 +354,7 @@ func SSHKeySync(f *framework.Framework) (string, func(*framework.TestCase)) {
|
|||
}
|
||||
|
||||
tc.ExpectedSecret = &v1.Secret{
|
||||
Type: v1.SecretTypeOpaque,
|
||||
Type: v1.SecretTypeSSHAuth,
|
||||
Data: map[string][]byte{
|
||||
"ssh-privatekey": []byte(sshSecretValue),
|
||||
},
|
||||
|
@ -370,6 +370,7 @@ func SSHKeySync(f *framework.Framework) (string, func(*framework.TestCase)) {
|
|||
}
|
||||
|
||||
tc.ExternalSecret.Spec.Target.Template = &esv1alpha1.ExternalSecretTemplate{
|
||||
Type: v1.SecretTypeSSHAuth,
|
||||
Data: map[string]string{
|
||||
"ssh-privatekey": "{{ .mysecret | toString }}",
|
||||
},
|
||||
|
@ -378,7 +379,6 @@ func SSHKeySync(f *framework.Framework) (string, func(*framework.TestCase)) {
|
|||
}
|
||||
|
||||
// This case adds an ssh private key secret and syncs it.
|
||||
// Supported by vault. But does not work with any form of line breaks as standard ssh key.
|
||||
func SSHKeySyncDataProperty(f *framework.Framework) (string, func(*framework.TestCase)) {
|
||||
return "[common] should sync ssh key with provider.", func(tc *framework.TestCase) {
|
||||
cloudSecretName := fmt.Sprintf("%s-%s", f.Namespace.Name, "docker-config-example")
|
||||
|
|
Loading…
Reference in a new issue