Commit 165e071d authored by xichengliudui's avatar xichengliudui

Using const() defines constants together (part:2)

Signed-off-by: 's avatarxichengliudui <1693291525@qq.com>

update pull request
Signed-off-by: 's avatarxichengliudui <1693291525@qq.com>
parent 8494d133
......@@ -26,7 +26,8 @@ import (
rls "k8s.io/helm/pkg/proto/hapi/services"
)
const cmInputTemplate = `kind: ConfigMap
const (
cmInputTemplate = `kind: ConfigMap
apiVersion: v1
metadata:
name: example
......@@ -34,7 +35,7 @@ data:
Release:
{{.Release | toYaml | indent 4}}
`
const cmOutputTemplate = `
cmOutputTemplate = `
---
# Source: installChart/templates/cm.yaml
kind: ConfigMap
......@@ -53,6 +54,7 @@ data:
seconds: 242085845
`
)
var installChart *chart.Chart
......
......@@ -37,7 +37,8 @@ import (
tillerEnv "k8s.io/helm/pkg/tiller/environment"
)
const manifestWithTestSuccessHook = `
const (
manifestWithTestSuccessHook = `
apiVersion: v1
kind: Pod
metadata:
......@@ -51,7 +52,7 @@ spec:
cmd: fake-command
`
const manifestWithTestFailureHook = `
manifestWithTestFailureHook = `
apiVersion: v1
kind: Pod
metadata:
......@@ -64,7 +65,7 @@ spec:
image: fake-gold-finding-image
cmd: fake-gold-finding-command
`
const manifestWithInstallHooks = `apiVersion: v1
manifestWithInstallHooks = `apiVersion: v1
kind: ConfigMap
metadata:
name: test-cm
......@@ -73,6 +74,7 @@ metadata:
data:
name: value
`
)
func TestNewTestSuite(t *testing.T) {
rel := releaseStub()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment