Loading .gitlab/ci/chart.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ chart:test: - go version - helm repo add stable https://charts.helm.sh/stable - helm dependency build . - cd test && GO111MODULE=auto go test . - cd test && GO111MODULE=auto go test ./... # auto-deploy-image doesn't need to release the chart to https://charts.gitlab.io/, # as it bundles a chart by default. Loading assets/auto-deploy-app/CONTRIBUTING.md +1 −1 Original line number Diff line number Diff line Loading @@ -49,5 +49,5 @@ To run the tests, run the following commands from the root of your copy of `auto helm repo add stable https://charts.helm.sh/stable # required only once helm dependency build . # required any time the dependencies change cd test GO111MODULE=auto go test . # required for every change to the tests or the template GO111MODULE=auto go test ./... # required for every change to the tests or the template ``` assets/auto-deploy-app/test/templates/ingress_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ SecRule REQUEST_HEADERS:Content-Type \"text/plain\" \"log,deny,id:\'20010\',stat }, { name: "with custom secRules", valueFiles: []string{"./testdata/modsecurity-ingress.yaml"}, valueFiles: []string{"../testdata/modsecurity-ingress.yaml"}, meta: metav1.ObjectMeta{Annotations: secRulesAnnotations}, }, } Loading assets/auto-deploy-app/test/templates/networkpolicy_test.go +2 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ func TestNetworkPolicy(t *testing.T) { }, { name: "with custom policy", valueFiles: []string{"./testdata/custom-policy.yaml"}, valueFiles: []string{"../testdata/custom-policy.yaml"}, meta: metav1.ObjectMeta{Name: releaseName + "-auto-deploy", Labels: expectedLabels}, podSelector: metav1.LabelSelector{MatchLabels: map[string]string{"foo": "bar"}}, ingress: []netV1.NetworkPolicyIngressRule{ Loading @@ -75,7 +75,7 @@ func TestNetworkPolicy(t *testing.T) { }, { name: "with full spec policy", valueFiles: []string{"./testdata/full-spec-policy.yaml"}, valueFiles: []string{"../testdata/full-spec-policy.yaml"}, meta: metav1.ObjectMeta{Name: releaseName + "-auto-deploy", Labels: expectedLabels}, podSelector: metav1.LabelSelector{MatchLabels: map[string]string{}}, policyTypes: []netV1.PolicyType{"Ingress", "Egress"}, Loading assets/auto-deploy-app/test/test_helpers.go→assets/auto-deploy-app/test/templates/test_helpers.go +2 −2 Original line number Diff line number Diff line Loading @@ -13,8 +13,8 @@ import ( ) const ( chartName = "auto-deploy-app-2.3.0" helmChartPath = ".." chartName = "auto-deploy-app-2.4.0" helmChartPath = "../.." ) func renderTemplate(t *testing.T, values map[string]string, releaseName string, templates []string, expectedErrorRegexp *regexp.Regexp) (string, bool) { Loading Loading
.gitlab/ci/chart.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ chart:test: - go version - helm repo add stable https://charts.helm.sh/stable - helm dependency build . - cd test && GO111MODULE=auto go test . - cd test && GO111MODULE=auto go test ./... # auto-deploy-image doesn't need to release the chart to https://charts.gitlab.io/, # as it bundles a chart by default. Loading
assets/auto-deploy-app/CONTRIBUTING.md +1 −1 Original line number Diff line number Diff line Loading @@ -49,5 +49,5 @@ To run the tests, run the following commands from the root of your copy of `auto helm repo add stable https://charts.helm.sh/stable # required only once helm dependency build . # required any time the dependencies change cd test GO111MODULE=auto go test . # required for every change to the tests or the template GO111MODULE=auto go test ./... # required for every change to the tests or the template ```
assets/auto-deploy-app/test/templates/ingress_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ SecRule REQUEST_HEADERS:Content-Type \"text/plain\" \"log,deny,id:\'20010\',stat }, { name: "with custom secRules", valueFiles: []string{"./testdata/modsecurity-ingress.yaml"}, valueFiles: []string{"../testdata/modsecurity-ingress.yaml"}, meta: metav1.ObjectMeta{Annotations: secRulesAnnotations}, }, } Loading
assets/auto-deploy-app/test/templates/networkpolicy_test.go +2 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ func TestNetworkPolicy(t *testing.T) { }, { name: "with custom policy", valueFiles: []string{"./testdata/custom-policy.yaml"}, valueFiles: []string{"../testdata/custom-policy.yaml"}, meta: metav1.ObjectMeta{Name: releaseName + "-auto-deploy", Labels: expectedLabels}, podSelector: metav1.LabelSelector{MatchLabels: map[string]string{"foo": "bar"}}, ingress: []netV1.NetworkPolicyIngressRule{ Loading @@ -75,7 +75,7 @@ func TestNetworkPolicy(t *testing.T) { }, { name: "with full spec policy", valueFiles: []string{"./testdata/full-spec-policy.yaml"}, valueFiles: []string{"../testdata/full-spec-policy.yaml"}, meta: metav1.ObjectMeta{Name: releaseName + "-auto-deploy", Labels: expectedLabels}, podSelector: metav1.LabelSelector{MatchLabels: map[string]string{}}, policyTypes: []netV1.PolicyType{"Ingress", "Egress"}, Loading
assets/auto-deploy-app/test/test_helpers.go→assets/auto-deploy-app/test/templates/test_helpers.go +2 −2 Original line number Diff line number Diff line Loading @@ -13,8 +13,8 @@ import ( ) const ( chartName = "auto-deploy-app-2.3.0" helmChartPath = ".." chartName = "auto-deploy-app-2.4.0" helmChartPath = "../.." ) func renderTemplate(t *testing.T, values map[string]string, releaseName string, templates []string, expectedErrorRegexp *regexp.Regexp) (string, bool) { Loading