File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,52 @@ func TestSelect(t *testing.T) {
9494 },
9595 ))
9696
97+ t .Run ("secret-immutable-false" , run_TestSelect (
98+ map [string ]interface {}{
99+ "apiVersion" : "v1" ,
100+ "kind" : "Secret" ,
101+ "immutable" : false ,
102+ "metadata" : map [string ]interface {}{
103+ "name" : "with-immutable-false" ,
104+ "namespace" : "example" ,
105+ },
106+ "type" : "Opaque" ,
107+ },
108+ SecretSelectedFields ,
109+ map [string ]interface {}{
110+ "apiVersion" : "v1" ,
111+ "kind" : "Secret" ,
112+ "immutable" : false ,
113+ "metadata" : map [string ]interface {}{
114+ "name" : "with-immutable-false" ,
115+ "namespace" : "example" ,
116+ },
117+ "type" : "Opaque" ,
118+ },
119+ ))
120+
121+ t .Run ("secret-immutable-absent" , run_TestSelect (
122+ map [string ]interface {}{
123+ "apiVersion" : "v1" ,
124+ "kind" : "Secret" ,
125+ "metadata" : map [string ]interface {}{
126+ "name" : "immutable-absent" ,
127+ "namespace" : "example" ,
128+ },
129+ "type" : "Opaque" ,
130+ },
131+ SecretSelectedFields ,
132+ map [string ]interface {}{
133+ "apiVersion" : "v1" ,
134+ "kind" : "Secret" ,
135+ "metadata" : map [string ]interface {}{
136+ "name" : "immutable-absent" ,
137+ "namespace" : "example" ,
138+ },
139+ "type" : "Opaque" ,
140+ },
141+ ))
142+
97143 t .Run ("route" , run_TestSelect (
98144 map [string ]interface {}{
99145 "apiVersion" : "v1" ,
You can’t perform that action at this time.
0 commit comments