Browse Source

reversing changes to simpledatasync

Kian Kordtomeikel 4 years ago
parent
commit
621f5fbefd
1 changed files with 3 additions and 12 deletions
  1. 3 12
      e2e/suite/common/common.go

+ 3 - 12
e2e/suite/common/common.go

@@ -2,9 +2,7 @@
 Licensed under the Apache License, Version 2.0 (the "License");
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 You may obtain a copy of the License at
-
     http://www.apache.org/licenses/LICENSE-2.0
     http://www.apache.org/licenses/LICENSE-2.0
-
 Unless required by applicable law or agreed to in writing, software
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -28,8 +26,7 @@ func SimpleDataSync(f *framework.Framework) (string, func(*framework.TestCase))
 	return "[common] should sync simple secrets from .Data[]", func(tc *framework.TestCase) {
 	return "[common] should sync simple secrets from .Data[]", func(tc *framework.TestCase) {
 		secretKey1 := fmt.Sprintf("%s-%s", f.Namespace.Name, "one")
 		secretKey1 := fmt.Sprintf("%s-%s", f.Namespace.Name, "one")
 		secretKey2 := fmt.Sprintf("%s-%s", f.Namespace.Name, "other")
 		secretKey2 := fmt.Sprintf("%s-%s", f.Namespace.Name, "other")
-		//secretValue := "bar"
-		secretValue := "{\"foo1\":\"foo1-val\",\"bar1\":\"bar1-val\"}"
+		secretValue := "bar"
 		tc.Secrets = map[string]string{
 		tc.Secrets = map[string]string{
 			secretKey1: secretValue,
 			secretKey1: secretValue,
 			secretKey2: secretValue,
 			secretKey2: secretValue,
@@ -37,10 +34,8 @@ func SimpleDataSync(f *framework.Framework) (string, func(*framework.TestCase))
 		tc.ExpectedSecret = &v1.Secret{
 		tc.ExpectedSecret = &v1.Secret{
 			Type: v1.SecretTypeOpaque,
 			Type: v1.SecretTypeOpaque,
 			Data: map[string][]byte{
 			Data: map[string][]byte{
-				secretKey1: []byte("foo1-val"),
-				secretKey2: []byte("bar1-val"),
-				/*secretKey1: []byte(secretValue),
-				secretKey2: []byte(secretValue),*/
+				secretKey1: []byte(secretValue),
+				secretKey2: []byte(secretValue),
 			},
 			},
 		}
 		}
 		tc.ExternalSecret.Spec.Data = []esv1alpha1.ExternalSecretData{
 		tc.ExternalSecret.Spec.Data = []esv1alpha1.ExternalSecretData{
@@ -48,16 +43,12 @@ func SimpleDataSync(f *framework.Framework) (string, func(*framework.TestCase))
 				SecretKey: secretKey1,
 				SecretKey: secretKey1,
 				RemoteRef: esv1alpha1.ExternalSecretDataRemoteRef{
 				RemoteRef: esv1alpha1.ExternalSecretDataRemoteRef{
 					Key: secretKey1,
 					Key: secretKey1,
-					//
-					Property: "foo1",
 				},
 				},
 			},
 			},
 			{
 			{
 				SecretKey: secretKey2,
 				SecretKey: secretKey2,
 				RemoteRef: esv1alpha1.ExternalSecretDataRemoteRef{
 				RemoteRef: esv1alpha1.ExternalSecretDataRemoteRef{
 					Key: secretKey2,
 					Key: secretKey2,
-					//
-					Property: "bar1",
 				},
 				},
 			},
 			},
 		}
 		}