Explorar el Código

Format long test case with nice whitespace

Michael Dresser hace 3 años
padre
commit
3543b3032e
Se han modificado 1 ficheros con 19 adiciones y 1 borrados
  1. 19 1
      pkg/util/allocationfilterutil/v2/parser_test.go

+ 19 - 1
pkg/util/allocationfilterutil/v2/parser_test.go

@@ -197,7 +197,25 @@ func TestParse(t *testing.T) {
 			}},
 		},
 		{
-			input: `namespace:"kubecost"+label[app]:"cost_analyzer"+annotation[a1]:"b2"+cluster:"cluster-one"+node!:"node-123","node-456"+controllerName:"kubecost-cost-analyzer","kubecost-prometheus-server"+controllerKind!:"daemonset","statefulset","job"+container!:"123-abc_foo"+pod!:"aaaaaaaaaaaaaaaaaaaaaaaaa"+services!:"abc123"`,
+			input: `
+namespace:"kubecost" +
+label[app]:"cost_analyzer" +
+annotation[a1]:"b2" +
+cluster:"cluster-one" +
+node!:
+  "node-123",
+  "node-456" +
+controllerName:
+  "kubecost-cost-analyzer",
+  "kubecost-prometheus-server" +
+controllerKind!:
+  "daemonset",
+  "statefulset",
+  "job" +
+container!:"123-abc_foo" +
+pod!:"aaaaaaaaaaaaaaaaaaaaaaaaa" +
+services!:"abc123"
+`,
 			expected: kubecost.AllocationFilterAnd{[]kubecost.AllocationFilter{
 				kubecost.AllocationFilterOr{[]kubecost.AllocationFilter{
 					kubecost.AllocationFilterCondition{