@@ -21,7 +21,7 @@ import (
2121 "reflect"
2222 "testing"
2323
24- "k8s.io/api/core/v1"
24+ v1 "k8s.io/api/core/v1"
2525 "k8s.io/utils/pointer"
2626)
2727
@@ -163,6 +163,7 @@ func TestConfigVarStringMarshallingAndUnmarshalling(t *testing.T) {
163163
164164 testCases := []ConfigVarString {
165165 {Value : "val" },
166+ {Value : "spe<ialv&lue" },
166167 {SecretKeyRef : GlobalSecretKeySelector {ObjectReference : v1.ObjectReference {Namespace : "ns" , Name : "name" }, Key : "key" }},
167168 {Value : "val" , SecretKeyRef : GlobalSecretKeySelector {ObjectReference : v1.ObjectReference {Namespace : "ns" , Name : "name" }, Key : "key" }},
168169 {ConfigMapKeyRef : GlobalConfigMapKeySelector {ObjectReference : v1.ObjectReference {Namespace : "ns" , Name : "name" }, Key : "key" }},
@@ -175,6 +176,11 @@ func TestConfigVarStringMarshallingAndUnmarshalling(t *testing.T) {
175176 ConfigMapKeyRef : GlobalConfigMapKeySelector {ObjectReference : v1.ObjectReference {Namespace : "ns" , Name : "name" }, Key : "key" },
176177 SecretKeyRef : GlobalSecretKeySelector {ObjectReference : v1.ObjectReference {Namespace : "ns" , Name : "name" }, Key : "key" },
177178 },
179+ {
180+ Value : "spe<ialv&lue" ,
181+ ConfigMapKeyRef : GlobalConfigMapKeySelector {ObjectReference : v1.ObjectReference {Namespace : "ns" , Name : "name" }, Key : "key" },
182+ SecretKeyRef : GlobalSecretKeySelector {ObjectReference : v1.ObjectReference {Namespace : "ns" , Name : "name" }, Key : "key" },
183+ },
178184 }
179185
180186 for _ , cvs := range testCases {
0 commit comments