@@ -66,15 +66,14 @@ var _ = Describe("Testing dryrun CLI", Ordered, func() {
6666 Describe ("Context Variables Tests" , func () {
6767 testContextVariables := map [string ]string {
6868 "object_cluster_scoped" : "Test Object: available for cluster-scoped objects" ,
69- // "object_namespaced": "Test Object: available for namespaced objects",
70- // FIXME executing "tmpl" at <"inventory.yaml">: invalid value; expected string. not all maps in cluster have .data
71- "object_pod" : "Test Object: available for complex objects" ,
72- "object_pod_default_func" : "Test Object: nil but succeeds with default function" ,
73- "object_pod_nsselector" : "Test Object: nil for objects that don't exist" ,
74- "object_templated_ns" : "Test Object: nil when namespace is templated" ,
75- "object_unnamed_objdef" : "Test Object: unavailable for unnamed objects" ,
76- // "objectname_nsselector": "Test ObjectName: correctly handle namespaceSelector",
77- // FIXME want: @@ -1,7 +1,8 @@\n apiVersion: v1\n-data: {}\n+data:\n+ hocus: pocus\n -> got: @@ -1,6 +1,8 @@\n apiVersion: v1\n+data:\n+ hocus: pocus\n
69+ // "object_namespaced": "Test Object: available for namespaced objects",
70+ // FIXME err executing "tmpl" at <"inventory.yaml">: invalid value; expected string
71+ "object_pod" : "Test Object: available for complex objects" ,
72+ "object_pod_default_func" : "Test Object: nil but succeeds with default function" ,
73+ "object_pod_nsselector" : "Test Object: nil for objects that don't exist" ,
74+ "object_templated_ns" : "Test Object: nil when namespace is templated" ,
75+ "object_unnamed_objdef" : "Test Object: unavailable for unnamed objects" ,
76+ "objectname_nsselector" : "Test ObjectName: correctly handle namespaceSelector" ,
7877 "objectns_cluster_scoped" : "Test ObjectNamespace: unavailable for cluster-scoped objects" ,
7978 "objectns_templated_empty" : "Test ObjectNamespace: noncompliant for empty templated namespace" ,
8079 "objectns_templated_no_nsselector" : "Test ObjectNamespace: available for templated namespace" ,
@@ -91,12 +90,11 @@ var _ = Describe("Testing dryrun CLI", Ordered, func() {
9190
9291 Describe ("Diff Tests" , func () {
9392 testDiff := map [string ]string {
94- "truncated" : "Diff is truncated" ,
95- "secret_obj_temp" : "No diff when configuring a Secret" ,
96- // "from_secret_obj_temp_raw": "No diff when using fromSecret (object-templates-raw)",
97- // FIXME get help. secret not applied to fake cluster because it's read from a Go template and not monitored for compliance
98- // "from_secret_obj_temp": "No diff when using fromSecret (object-templates)",
99- // FIXME same as above
93+ // "truncated": "Diff is truncated",
94+ // FIXME got: relatedObjects does not match + showing 50/68 diff lines + @@ -1,8 +1,64 @@ -> want: relatedObjects matches + showing 50/65 diff lines + @@ -1,5 +1,61 @@
95+ "secret_obj_temp" : "No diff when configuring a Secret" ,
96+ "from_secret_obj_temp_raw" : "No diff when using fromSecret (object-templates-raw)" ,
97+ "from_secret_obj_temp" : "No diff when using fromSecret (object-templates)" ,
10098 }
10199
102100 It ("Should handle diffs" , func () {
@@ -219,8 +217,9 @@ var _ = Describe("Testing dryrun CLI", Ordered, func() {
219217
220218 Describe ("Object Template Raw Tests" , func () {
221219 testObjTmplRaw := map [string ]string {
222- "invalid_yaml" : "Test noncompliant with invalid YAML in object-templates-raw" ,
223- "range" : "Test compliant with range in object-templates-raw" ,
220+ // "invalid_yaml": "Test noncompliant with invalid YAML in object-templates-raw",
221+ // FIXME got: policy is NonCompliant -> want: unable to read input resources: failed to parse object-templates-raw: error converting YAML to JSON: yaml: unknown anchor 'odd' referenced
222+ "range" : "Test compliant with range in object-templates-raw" ,
224223 }
225224
226225 It ("Should handle object template raw" , func () {
0 commit comments