Преглед изворни кода

Fix TestSetSecret

Signed-off-by: Amr Fawzy <amr.fawzy@container-solutions.com>
Co-authored-by: Lilly Daniell <lilly.daniell@engineerbetter.com>
Co-authored-by: Marcus Dantas <marcus.dantas@engineerbetter.com>
Co-authored-by: Will Young <will.young@container-solutions.com>
Co-authored-by: Adrienne Galloway <adrienne.galloway@engineerbetter.com>
amr fawzy пре 3 година
родитељ
комит
437fcdafba
1 измењених фајлова са 2 додато и 6 уклоњено
  1. 2 6
      pkg/provider/vault/vault_test.go

+ 2 - 6
pkg/provider/vault/vault_test.go

@@ -1556,13 +1556,9 @@ func TestSetSecret(t *testing.T) {
 				store: makeValidSecretStoreWithVersion(esv1beta1.VaultKVStoreV2).Spec.Provider.Vault,
 				vLogical: &fake.Logical{
 					ReadWithDataWithContextFn: fake.NewReadWithContextFn(map[string]interface{}{
-						"data": map[string]interface{}{
-							"fake-key": "fake-value",
-							"custom_metadata": map[string]interface{}{ //Needs to have data for key
-								"managed-by": "external-secrets",
-							},
-						},
+						"data": map[string]interface{}{},
 					}, nil),
+					WriteWithContextFn: fake.NewWriteWithContextFn(nil, nil),
 				},
 			},
 			want: want{