Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d761fe84
Unverified
Commit
d761fe84
authored
Feb 28, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72774 from globervinodhn/conformance-emptyconfigmapkey-addition
Promote emptyconfigmap key e2e test to conformance test
parents
caaad1be
a2078bd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
conformance.txt
test/conformance/testdata/conformance.txt
+1
-0
configmap.go
test/e2e/common/configmap.go
+9
-3
No files found.
test/conformance/testdata/conformance.txt
View file @
d761fe84
...
@@ -37,6 +37,7 @@ test/e2e/auth/service_accounts.go: "should mount an API token into pods"
...
@@ -37,6 +37,7 @@ test/e2e/auth/service_accounts.go: "should mount an API token into pods"
test/e2e/auth/service_accounts.go: "should allow opting out of API token automount"
test/e2e/auth/service_accounts.go: "should allow opting out of API token automount"
test/e2e/common/configmap.go: "should be consumable via environment variable"
test/e2e/common/configmap.go: "should be consumable via environment variable"
test/e2e/common/configmap.go: "should be consumable via the environment"
test/e2e/common/configmap.go: "should be consumable via the environment"
test/e2e/common/configmap.go: "should fail to create ConfigMap with empty key"
test/e2e/common/configmap_volume.go: "should be consumable from pods in volume"
test/e2e/common/configmap_volume.go: "should be consumable from pods in volume"
test/e2e/common/configmap_volume.go: "should be consumable from pods in volume with defaultMode set"
test/e2e/common/configmap_volume.go: "should be consumable from pods in volume with defaultMode set"
test/e2e/common/configmap_volume.go: "should be consumable from pods in volume as non-root"
test/e2e/common/configmap_volume.go: "should be consumable from pods in volume as non-root"
...
...
test/e2e/common/configmap.go
View file @
d761fe84
...
@@ -19,13 +19,14 @@ package common
...
@@ -19,13 +19,14 @@ package common
import
(
import
(
"fmt"
"fmt"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/gomega"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/framework"
imageutils
"k8s.io/kubernetes/test/utils/image"
imageutils
"k8s.io/kubernetes/test/utils/image"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"[sig-node] ConfigMap"
,
func
()
{
var
_
=
Describe
(
"[sig-node] ConfigMap"
,
func
()
{
...
@@ -124,7 +125,12 @@ var _ = Describe("[sig-node] ConfigMap", func() {
...
@@ -124,7 +125,12 @@ var _ = Describe("[sig-node] ConfigMap", func() {
})
})
})
})
It
(
"should fail to create configMap in volume due to empty configmap key"
,
func
()
{
/*
Release : v1.14
Testname: ConfigMap, with empty-key
Description: Attempt to create a ConfigMap with an empty key. The creation MUST fail.
*/
framework
.
ConformanceIt
(
"should fail to create ConfigMap with empty key"
,
func
()
{
configMap
,
err
:=
newConfigMapWithEmptyKey
(
f
)
configMap
,
err
:=
newConfigMapWithEmptyKey
(
f
)
Expect
(
err
)
.
To
(
HaveOccurred
(),
"created configMap %q with empty key in namespace %q"
,
configMap
.
Name
,
f
.
Namespace
.
Name
)
Expect
(
err
)
.
To
(
HaveOccurred
(),
"created configMap %q with empty key in namespace %q"
,
configMap
.
Name
,
f
.
Namespace
.
Name
)
})
})
...
...
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