Skip to content

Commit

Permalink
Fix test validator spacing
Browse files Browse the repository at this point in the history
Remove extra newlines between objects in test/validator manifest output.
  • Loading branch information
annasong20 committed Nov 21, 2023
1 parent f6a5c89 commit 7c36d62
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -62,9 +60,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -98,9 +94,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -117,9 +111,7 @@ spec:
app: guestbook
tier: frontend
type: NodePort

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -138,9 +130,7 @@ spec:
app: redis
role: master
tier: backend

---

apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -62,9 +60,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -98,9 +94,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -117,9 +111,7 @@ spec:
app: guestbook
tier: frontend
type: NodePort

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -138,9 +130,7 @@ spec:
app: redis
role: master
tier: backend

---

apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/golden/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (v *validator) Validate(r declarative.Reconciler) {

for i, o := range objects.Items {
if i != 0 {
b.WriteString("\n---\n\n")
b.WriteString("---\n")
}
u := o.UnstructuredObject()
if err := yamlizer.Encode(u, &b); err != nil {
Expand Down

0 comments on commit 7c36d62

Please sign in to comment.