Add test for null value

This commit is contained in:
Phani Teja Marupaka
2021-08-21 15:58:49 -07:00
parent cd94cb13c6
commit 8f00d3fd53

View File

@@ -183,6 +183,27 @@ pipeline:
configPath: setters.yaml
- image: set-namespace:v0.1
configPath: ns.yaml
`,
},
{
name: "sort fields with null value",
from: `apiVersion: v1
kind: ConfigMap
metadata:
creationTimestamp: null
name: workspaces.app.terraform.io
`,
to: `apiVersion: v1
kind: ConfigMap
metadata:
name: workspaces.app.terraform.io
creationTimestamp: null
`,
expected: `apiVersion: v1
kind: ConfigMap
metadata:
creationTimestamp: null
name: workspaces.app.terraform.io
`,
},
{