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
b1ae20fd
Commit
b1ae20fd
authored
May 09, 2018
by
Jan Safranek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run FSGroup tests by default.
There is no special feature flag for FSGroup and the tests can run in all test suites.
parent
b976ebd5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
configmap_volume.go
test/e2e/common/configmap_volume.go
+3
-3
downwardapi_volume.go
test/e2e/common/downwardapi_volume.go
+2
-2
projected.go
test/e2e/common/projected.go
+5
-5
No files found.
test/e2e/common/configmap_volume.go
View file @
b1ae20fd
...
...
@@ -51,7 +51,7 @@ var _ = Describe("[sig-storage] ConfigMap", func() {
doConfigMapE2EWithoutMappings
(
f
,
0
,
0
,
&
defaultMode
)
})
It
(
"should be consumable from pods in volume as non-root with defaultMode and fsGroup set
[Feature:FSGroup]
"
,
func
()
{
It
(
"should be consumable from pods in volume as non-root with defaultMode and fsGroup set"
,
func
()
{
defaultMode
:=
int32
(
0440
)
/* setting fsGroup sets mode to at least 440 */
doConfigMapE2EWithoutMappings
(
f
,
1000
,
1001
,
&
defaultMode
)
})
...
...
@@ -65,7 +65,7 @@ var _ = Describe("[sig-storage] ConfigMap", func() {
doConfigMapE2EWithoutMappings
(
f
,
1000
,
0
,
nil
)
})
It
(
"should be consumable from pods in volume as non-root with FSGroup
[Feature:FSGroup]
"
,
func
()
{
It
(
"should be consumable from pods in volume as non-root with FSGroup"
,
func
()
{
doConfigMapE2EWithoutMappings
(
f
,
1000
,
1001
,
nil
)
})
...
...
@@ -97,7 +97,7 @@ var _ = Describe("[sig-storage] ConfigMap", func() {
doConfigMapE2EWithMappings
(
f
,
1000
,
0
,
nil
)
})
It
(
"should be consumable from pods in volume with mappings as non-root with FSGroup
[Feature:FSGroup]
"
,
func
()
{
It
(
"should be consumable from pods in volume with mappings as non-root with FSGroup"
,
func
()
{
doConfigMapE2EWithMappings
(
f
,
1000
,
1001
,
nil
)
})
...
...
test/e2e/common/downwardapi_volume.go
View file @
b1ae20fd
...
...
@@ -83,7 +83,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
It
(
"should provide podname as non-root with fsgroup
[Feature:FSGroup]
"
,
func
()
{
It
(
"should provide podname as non-root with fsgroup"
,
func
()
{
podName
:=
"metadata-volume-"
+
string
(
uuid
.
NewUUID
())
uid
:=
int64
(
1001
)
gid
:=
int64
(
1234
)
...
...
@@ -97,7 +97,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
It
(
"should provide podname as non-root with fsgroup and defaultMode
[Feature:FSGroup]
"
,
func
()
{
It
(
"should provide podname as non-root with fsgroup and defaultMode"
,
func
()
{
podName
:=
"metadata-volume-"
+
string
(
uuid
.
NewUUID
())
uid
:=
int64
(
1001
)
gid
:=
int64
(
1234
)
...
...
test/e2e/common/projected.go
View file @
b1ae20fd
...
...
@@ -419,7 +419,7 @@ var _ = Describe("[sig-storage] Projected", func() {
doProjectedConfigMapE2EWithoutMappings
(
f
,
0
,
0
,
&
defaultMode
)
})
It
(
"should be consumable from pods in volume as non-root with defaultMode and fsGroup set
[Feature:FSGroup]
"
,
func
()
{
It
(
"should be consumable from pods in volume as non-root with defaultMode and fsGroup set"
,
func
()
{
defaultMode
:=
int32
(
0440
)
/* setting fsGroup sets mode to at least 440 */
doProjectedConfigMapE2EWithoutMappings
(
f
,
1000
,
1001
,
&
defaultMode
)
})
...
...
@@ -433,7 +433,7 @@ var _ = Describe("[sig-storage] Projected", func() {
doProjectedConfigMapE2EWithoutMappings
(
f
,
1000
,
0
,
nil
)
})
It
(
"should be consumable from pods in volume as non-root with FSGroup
[Feature:FSGroup]
"
,
func
()
{
It
(
"should be consumable from pods in volume as non-root with FSGroup"
,
func
()
{
doProjectedConfigMapE2EWithoutMappings
(
f
,
1000
,
1001
,
nil
)
})
...
...
@@ -466,7 +466,7 @@ var _ = Describe("[sig-storage] Projected", func() {
doProjectedConfigMapE2EWithMappings
(
f
,
1000
,
0
,
nil
)
})
It
(
"should be consumable from pods in volume with mappings as non-root with FSGroup
[Feature:FSGroup]
"
,
func
()
{
It
(
"should be consumable from pods in volume with mappings as non-root with FSGroup"
,
func
()
{
doProjectedConfigMapE2EWithMappings
(
f
,
1000
,
1001
,
nil
)
})
...
...
@@ -904,7 +904,7 @@ var _ = Describe("[sig-storage] Projected", func() {
})
})
It
(
"should provide podname as non-root with fsgroup
[Feature:FSGroup]
"
,
func
()
{
It
(
"should provide podname as non-root with fsgroup"
,
func
()
{
podName
:=
"metadata-volume-"
+
string
(
uuid
.
NewUUID
())
uid
:=
int64
(
1001
)
gid
:=
int64
(
1234
)
...
...
@@ -918,7 +918,7 @@ var _ = Describe("[sig-storage] Projected", func() {
})
})
It
(
"should provide podname as non-root with fsgroup and defaultMode
[Feature:FSGroup]
"
,
func
()
{
It
(
"should provide podname as non-root with fsgroup and defaultMode"
,
func
()
{
podName
:=
"metadata-volume-"
+
string
(
uuid
.
NewUUID
())
uid
:=
int64
(
1001
)
gid
:=
int64
(
1234
)
...
...
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