Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
870e21d0
Unverified
Commit
870e21d0
authored
6 years ago
by
Matthew Fisher
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #5607 from xichengliudui/update-go-const-park2
Using const() defines constants together (part:2)
parents
ea9c27c7
165e071d
release-2.17
dev-v2
release-2.14
release-2.15
release-2.16
v2.17.0
v2.17.0-rc.1
v2.16.12
v2.16.11
v2.16.10
v2.16.9
v2.16.8
v2.16.7
v2.16.6
v2.16.5
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.16.0
v2.16.0-rc.2
v2.16.0-rc.1
v2.15.2
v2.15.1
v2.15.0
v2.15.0-rc.2
v2.15.0-rc.1
v2.14.3
v2.14.2
v2.14.1
v2.14.0
v2.14.0-rc.2
v2.14.0-rc.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/helm/fake_test.go
+4
-2
pkg/helm/fake_test.go
pkg/releasetesting/test_suite_test.go
+5
-3
pkg/releasetesting/test_suite_test.go
with
9 additions
and
5 deletions
+9
-5
pkg/helm/fake_test.go
+
4
−
2
View file @
870e21d0
...
@@ -26,7 +26,8 @@ import (
...
@@ -26,7 +26,8 @@ import (
rls
"k8s.io/helm/pkg/proto/hapi/services"
rls
"k8s.io/helm/pkg/proto/hapi/services"
)
)
const
cmInputTemplate
=
`kind: ConfigMap
const
(
cmInputTemplate
=
`kind: ConfigMap
apiVersion: v1
apiVersion: v1
metadata:
metadata:
name: example
name: example
...
@@ -34,7 +35,7 @@ data:
...
@@ -34,7 +35,7 @@ data:
Release:
Release:
{{.Release | toYaml | indent 4}}
{{.Release | toYaml | indent 4}}
`
`
const
cmOutputTemplate
=
`
cmOutputTemplate
=
`
---
---
# Source: installChart/templates/cm.yaml
# Source: installChart/templates/cm.yaml
kind: ConfigMap
kind: ConfigMap
...
@@ -53,6 +54,7 @@ data:
...
@@ -53,6 +54,7 @@ data:
seconds: 242085845
seconds: 242085845
`
`
)
var
installChart
*
chart
.
Chart
var
installChart
*
chart
.
Chart
...
...
This diff is collapsed.
Click to expand it.
pkg/releasetesting/test_suite_test.go
+
5
−
3
View file @
870e21d0
...
@@ -37,7 +37,8 @@ import (
...
@@ -37,7 +37,8 @@ import (
tillerEnv
"k8s.io/helm/pkg/tiller/environment"
tillerEnv
"k8s.io/helm/pkg/tiller/environment"
)
)
const
manifestWithTestSuccessHook
=
`
const
(
manifestWithTestSuccessHook
=
`
apiVersion: v1
apiVersion: v1
kind: Pod
kind: Pod
metadata:
metadata:
...
@@ -51,7 +52,7 @@ spec:
...
@@ -51,7 +52,7 @@ spec:
cmd: fake-command
cmd: fake-command
`
`
const
manifestWithTestFailureHook
=
`
manifestWithTestFailureHook
=
`
apiVersion: v1
apiVersion: v1
kind: Pod
kind: Pod
metadata:
metadata:
...
@@ -64,7 +65,7 @@ spec:
...
@@ -64,7 +65,7 @@ spec:
image: fake-gold-finding-image
image: fake-gold-finding-image
cmd: fake-gold-finding-command
cmd: fake-gold-finding-command
`
`
const
manifestWithInstallHooks
=
`apiVersion: v1
manifestWithInstallHooks
=
`apiVersion: v1
kind: ConfigMap
kind: ConfigMap
metadata:
metadata:
name: test-cm
name: test-cm
...
@@ -73,6 +74,7 @@ metadata:
...
@@ -73,6 +74,7 @@ metadata:
data:
data:
name: value
name: value
`
`
)
func
TestNewTestSuite
(
t
*
testing
.
T
)
{
func
TestNewTestSuite
(
t
*
testing
.
T
)
{
rel
:=
releaseStub
()
rel
:=
releaseStub
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets