Fix test broken by the change in ordering.

This commit is contained in:
Jeffrey Regan
2019-06-18 07:30:29 -07:00
parent 6803cc4788
commit 57eecd7497

View File

@@ -101,6 +101,32 @@ func TestTransformersNoCreateArrays(t *testing.T) {
th.AssertActualEqualsExpected(m, `
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
notIn: arrays
name: test
spec:
replicas: 1
selector:
matchLabels:
app: test
notIn: arrays
serviceName: test
template:
metadata:
labels:
app: test
notIn: arrays
spec:
containers:
- image: k8s.gcr.io/nginx-slim:0.8
name: nginx
ports:
- containerPort: 80
name: web
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
notIn: arrays
@@ -152,31 +178,5 @@ spec:
requests:
storage: 100Gi
storageClassName: my-storage-class
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
notIn: arrays
name: test
spec:
replicas: 1
selector:
matchLabels:
app: test
notIn: arrays
serviceName: test
template:
metadata:
labels:
app: test
notIn: arrays
spec:
containers:
- image: k8s.gcr.io/nginx-slim:0.8
name: nginx
ports:
- containerPort: 80
name: web
`)
}