Skip to content

Commit

Permalink
add regression coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sethpollack committed Jun 5, 2018
1 parent 6e54814 commit 501e1a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/app/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
func setupTest(t *testing.T) loader.Loader {
kustomizationContent := []byte(`
namePrefix: foo-
namespace: foo
commonLabels:
app: nginx
commonAnnotations:
Expand Down Expand Up @@ -82,7 +83,8 @@ func TestResources(t *testing.T) {
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": map[string]interface{}{
"name": "foo-dply1",
"name": "foo-dply1",
"namespace": "foo",
"labels": map[string]interface{}{
"app": "nginx",
},
Expand Down Expand Up @@ -115,7 +117,8 @@ func TestResources(t *testing.T) {
"apiVersion": "v1",
"kind": "ConfigMap",
"metadata": map[string]interface{}{
"name": "foo-literalConfigMap-mc92bgcbh5",
"name": "foo-literalConfigMap-mc92bgcbh5",
"namespace": "foo",
"labels": map[string]interface{}{
"app": "nginx",
},
Expand All @@ -136,7 +139,8 @@ func TestResources(t *testing.T) {
"apiVersion": "v1",
"kind": "Secret",
"metadata": map[string]interface{}{
"name": "foo-secret-877fcfhgt5",
"name": "foo-secret-877fcfhgt5",
"namespace": "foo",
"labels": map[string]interface{}{
"app": "nginx",
},
Expand Down

0 comments on commit 501e1a4

Please sign in to comment.