Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
870e21d0
Unverified
Commit
870e21d0
authored
Apr 17, 2019
by
Matthew Fisher
Committed by
GitHub
Apr 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5607 from xichengliudui/update-go-const-park2
Using const() defines constants together (part:2)
parents
ea9c27c7
165e071d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
fake_test.go
pkg/helm/fake_test.go
+4
-2
test_suite_test.go
pkg/releasetesting/test_suite_test.go
+5
-3
No files found.
pkg/helm/fake_test.go
View file @
870e21d0
...
...
@@ -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
...
...
pkg/releasetesting/test_suite_test.go
View file @
870e21d0
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment