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
87392993
Commit
87392993
authored
Oct 13, 2017
by
Brad Topol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pod related conformance annotations
Signed-off-by:
Brad Topol
<
btopol@us.ibm.com
>
ran gofmt and rebased
parent
f1d9962f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
pods.go
test/e2e/common/pods.go
+25
-0
No files found.
test/e2e/common/pods.go
View file @
87392993
...
@@ -128,6 +128,11 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -128,6 +128,11 @@ var _ = framework.KubeDescribe("Pods", func() {
podClient
=
f
.
PodClient
()
podClient
=
f
.
PodClient
()
})
})
/*
Testname: pods-created-pod-assigned-hostip
Description: Make sure when a pod is created that it is assigned a host IP
Address.
*/
It
(
"should get a host IP [Conformance]"
,
func
()
{
It
(
"should get a host IP [Conformance]"
,
func
()
{
name
:=
"pod-hostip-"
+
string
(
uuid
.
NewUUID
())
name
:=
"pod-hostip-"
+
string
(
uuid
.
NewUUID
())
testHostIP
(
podClient
,
&
v1
.
Pod
{
testHostIP
(
podClient
,
&
v1
.
Pod
{
...
@@ -145,6 +150,11 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -145,6 +150,11 @@ var _ = framework.KubeDescribe("Pods", func() {
})
})
})
})
/*
Testname: pods-submitted-removed
Description: Makes sure a pod is created, a watch can be setup for the pod,
pod creation was observed, pod is deleted, and pod deletion is observed.
*/
It
(
"should be submitted and removed [Conformance]"
,
func
()
{
It
(
"should be submitted and removed [Conformance]"
,
func
()
{
By
(
"creating the pod"
)
By
(
"creating the pod"
)
name
:=
"pod-submit-remove-"
+
string
(
uuid
.
NewUUID
())
name
:=
"pod-submit-remove-"
+
string
(
uuid
.
NewUUID
())
...
@@ -266,6 +276,10 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -266,6 +276,10 @@ var _ = framework.KubeDescribe("Pods", func() {
Expect
(
len
(
pods
.
Items
))
.
To
(
Equal
(
0
))
Expect
(
len
(
pods
.
Items
))
.
To
(
Equal
(
0
))
})
})
/*
Testname: pods-updated-successfully
Description: Make sure it is possible to successfully update a pod's labels.
*/
It
(
"should be updated [Conformance]"
,
func
()
{
It
(
"should be updated [Conformance]"
,
func
()
{
By
(
"creating the pod"
)
By
(
"creating the pod"
)
name
:=
"pod-update-"
+
string
(
uuid
.
NewUUID
())
name
:=
"pod-update-"
+
string
(
uuid
.
NewUUID
())
...
@@ -315,6 +329,12 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -315,6 +329,12 @@ var _ = framework.KubeDescribe("Pods", func() {
framework
.
Logf
(
"Pod update OK"
)
framework
.
Logf
(
"Pod update OK"
)
})
})
/*
Testname: pods-update-active-deadline-seconds
Description: Make sure it is possible to create a pod, update its
activeDeadlineSecondsValue, and then waits for the deadline to pass
and verifies the pod is terminated.
*/
It
(
"should allow activeDeadlineSeconds to be updated [Conformance]"
,
func
()
{
It
(
"should allow activeDeadlineSeconds to be updated [Conformance]"
,
func
()
{
By
(
"creating the pod"
)
By
(
"creating the pod"
)
name
:=
"pod-update-activedeadlineseconds-"
+
string
(
uuid
.
NewUUID
())
name
:=
"pod-update-activedeadlineseconds-"
+
string
(
uuid
.
NewUUID
())
...
@@ -356,6 +376,11 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -356,6 +376,11 @@ var _ = framework.KubeDescribe("Pods", func() {
framework
.
ExpectNoError
(
f
.
WaitForPodTerminated
(
pod
.
Name
,
"DeadlineExceeded"
))
framework
.
ExpectNoError
(
f
.
WaitForPodTerminated
(
pod
.
Name
,
"DeadlineExceeded"
))
})
})
/*
Testname: pods-contain-services-environment-variables
Description: Make sure that when a pod is created it contains environment
variables for each active service.
*/
It
(
"should contain environment variables for services [Conformance]"
,
func
()
{
It
(
"should contain environment variables for services [Conformance]"
,
func
()
{
// Make a pod that will be a service.
// Make a pod that will be a service.
// This pod serves its hostname via HTTP.
// This pod serves its hostname via HTTP.
...
...
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