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
51de999d
Commit
51de999d
authored
Nov 02, 2017
by
Brad Topol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty dir and host related conformance annotations
Signed-off-by:
Brad Topol
<
btopol@us.ibm.com
>
parent
40212c17
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
0 deletions
+94
-0
empty_dir.go
test/e2e/common/empty_dir.go
+83
-0
host_path.go
test/e2e/common/host_path.go
+6
-0
kubelet_etc_hosts.go
test/e2e/common/kubelet_etc_hosts.go
+5
-0
No files found.
test/e2e/common/empty_dir.go
View file @
51de999d
...
...
@@ -67,58 +67,141 @@ var _ = Describe("[sig-storage] EmptyDir volumes", func() {
})
})
/*
Testname: volume-emptydir-mode-tmpfs
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
of 'Memory', ensure the volume has 0777 unix file permissions and tmpfs
mount type.
*/
framework
.
ConformanceIt
(
"volume on tmpfs should have the correct mode"
,
func
()
{
doTestVolumeMode
(
f
,
testImageRootUid
,
v1
.
StorageMediumMemory
)
})
/*
Testname: volume-emptydir-root-0644-tmpfs
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
of 'Memory', ensure a root owned file with 0644 unix file permissions
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
framework
.
ConformanceIt
(
"should support (root,0644,tmpfs)"
,
func
()
{
doTest0644
(
f
,
testImageRootUid
,
v1
.
StorageMediumMemory
)
})
/*
Testname: volume-emptydir-root-0666-tmpfs
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
of 'Memory', ensure a root owned file with 0666 unix file permissions
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
framework
.
ConformanceIt
(
"should support (root,0666,tmpfs)"
,
func
()
{
doTest0666
(
f
,
testImageRootUid
,
v1
.
StorageMediumMemory
)
})
/*
Testname: volume-emptydir-root-0777-tmpfs
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
of 'Memory', ensure a root owned file with 0777 unix file permissions
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
framework
.
ConformanceIt
(
"should support (root,0777,tmpfs)"
,
func
()
{
doTest0777
(
f
,
testImageRootUid
,
v1
.
StorageMediumMemory
)
})
/*
Testname: volume-emptydir-user-0644-tmpfs
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
of 'Memory', ensure a user owned file with 0644 unix file permissions
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
framework
.
ConformanceIt
(
"should support (non-root,0644,tmpfs)"
,
func
()
{
doTest0644
(
f
,
testImageNonRootUid
,
v1
.
StorageMediumMemory
)
})
/*
Testname: volume-emptydir-user-0666-tmpfs
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
of 'Memory', ensure a user owned file with 0666 unix file permissions
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
framework
.
ConformanceIt
(
"should support (non-root,0666,tmpfs)"
,
func
()
{
doTest0666
(
f
,
testImageNonRootUid
,
v1
.
StorageMediumMemory
)
})
/*
Testname: volume-emptydir-user-0777-tmpfs
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
of 'Memory', ensure a user owned file with 0777 unix file permissions
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
framework
.
ConformanceIt
(
"should support (non-root,0777,tmpfs)"
,
func
()
{
doTest0777
(
f
,
testImageNonRootUid
,
v1
.
StorageMediumMemory
)
})
/*
Testname: volume-emptydir-mode
Description: For a Pod created with an 'emptyDir' Volume, ensure the
volume has 0777 unix file permissions.
*/
framework
.
ConformanceIt
(
"volume on default medium should have the correct mode"
,
func
()
{
doTestVolumeMode
(
f
,
testImageRootUid
,
v1
.
StorageMediumDefault
)
})
/*
Testname: volume-emptydir-root-0644
Description: For a Pod created with an 'emptyDir' Volume, ensure a
root owned file with 0644 unix file permissions is created and enforced
correctly.
*/
framework
.
ConformanceIt
(
"should support (root,0644,default)"
,
func
()
{
doTest0644
(
f
,
testImageRootUid
,
v1
.
StorageMediumDefault
)
})
/*
Testname: volume-emptydir-root-0666
Description: For a Pod created with an 'emptyDir' Volume, ensure a
root owned file with 0666 unix file permissions is created and enforced
correctly.
*/
framework
.
ConformanceIt
(
"should support (root,0666,default)"
,
func
()
{
doTest0666
(
f
,
testImageRootUid
,
v1
.
StorageMediumDefault
)
})
/*
Testname: volume-emptydir-root-0777
Description: For a Pod created with an 'emptyDir' Volume, ensure a
root owned file with 0777 unix file permissions is created and enforced
correctly.
*/
framework
.
ConformanceIt
(
"should support (root,0777,default)"
,
func
()
{
doTest0777
(
f
,
testImageRootUid
,
v1
.
StorageMediumDefault
)
})
/*
Testname: volume-emptydir-user-0644
Description: For a Pod created with an 'emptyDir' Volume, ensure a
user owned file with 0644 unix file permissions is created and enforced
correctly.
*/
framework
.
ConformanceIt
(
"should support (non-root,0644,default)"
,
func
()
{
doTest0644
(
f
,
testImageNonRootUid
,
v1
.
StorageMediumDefault
)
})
/*
Testname: volume-emptydir-user-0666
Description: For a Pod created with an 'emptyDir' Volume, ensure a
user owned file with 0666 unix file permissions is created and enforced
correctly.
*/
framework
.
ConformanceIt
(
"should support (non-root,0666,default)"
,
func
()
{
doTest0666
(
f
,
testImageNonRootUid
,
v1
.
StorageMediumDefault
)
})
/*
Testname: volume-emptydir-user-0777
Description: For a Pod created with an 'emptyDir' Volume, ensure a
user owned file with 0777 unix file permissions is created and enforced
correctly.
*/
framework
.
ConformanceIt
(
"should support (non-root,0777,default)"
,
func
()
{
doTest0777
(
f
,
testImageNonRootUid
,
v1
.
StorageMediumDefault
)
})
...
...
test/e2e/common/host_path.go
View file @
51de999d
...
...
@@ -40,6 +40,12 @@ var _ = Describe("[sig-storage] HostPath", func() {
_
=
os
.
Remove
(
"/tmp/test-file"
)
})
/*
Testname: volume-hostpath-mode
Description: For a Pod created with a 'HostPath' Volume, ensure the
volume is a directory with 0777 unix file permissions and that is has
the sticky bit (mode flag t) set.
*/
framework
.
ConformanceIt
(
"should give a volume the correct mode"
,
func
()
{
source
:=
&
v1
.
HostPathVolumeSource
{
Path
:
"/tmp"
,
...
...
test/e2e/common/kubelet_etc_hosts.go
View file @
51de999d
...
...
@@ -48,6 +48,11 @@ var _ = framework.KubeDescribe("KubeletManagedEtcHosts", func() {
f
:
f
,
}
/*
Testname: kubelet-managed-etc-hosts
Description: Make sure Kubelet correctly manages /etc/hosts and mounts
it into the container.
*/
framework
.
ConformanceIt
(
"should test kubelet managed /etc/hosts file "
,
func
()
{
By
(
"Setting up the test"
)
config
.
setup
()
...
...
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