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
5e61e5fc
Commit
5e61e5fc
authored
Feb 02, 2017
by
Michail Kargakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: reduce deployment progress deadline, ensure its rs is up
parent
c84f3abc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
deployment.go
test/e2e/deployment.go
+7
-7
No files found.
test/e2e/deployment.go
View file @
5e61e5fc
...
@@ -1217,16 +1217,16 @@ func testFailedDeployment(f *framework.Framework) {
...
@@ -1217,16 +1217,16 @@ func testFailedDeployment(f *framework.Framework) {
// Create a nginx deployment.
// Create a nginx deployment.
deploymentName
:=
"nginx"
deploymentName
:=
"nginx"
nonExistentImage
:=
"nginx:not-there"
nonExistentImage
:=
"nginx:not-there"
t
hirty
:=
int32
(
3
0
)
t
en
:=
int32
(
1
0
)
d
:=
framework
.
NewDeployment
(
deploymentName
,
replicas
,
podLabels
,
nginxImageName
,
nonExistentImage
,
extensions
.
RecreateDeploymentStrategyType
)
d
:=
framework
.
NewDeployment
(
deploymentName
,
replicas
,
podLabels
,
nginxImageName
,
nonExistentImage
,
extensions
.
RecreateDeploymentStrategyType
)
d
.
Spec
.
ProgressDeadlineSeconds
=
&
t
hirty
d
.
Spec
.
ProgressDeadlineSeconds
=
&
t
en
framework
.
Logf
(
"Creating deployment %q with progressDeadlineSeconds set to %ds and a non-existent image"
,
deploymentName
,
t
hirty
)
framework
.
Logf
(
"Creating deployment %q with progressDeadlineSeconds set to %ds and a non-existent image"
,
deploymentName
,
t
en
)
deployment
,
err
:=
c
.
Extensions
()
.
Deployments
(
ns
)
.
Create
(
d
)
deployment
,
err
:=
c
.
Extensions
()
.
Deployments
(
ns
)
.
Create
(
d
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
framework
.
Logf
(
"Waiting for deployment %q
to be observed by the controller
"
,
deploymentName
)
framework
.
Logf
(
"Waiting for deployment %q
new replica set to come up
"
,
deploymentName
)
Expect
(
framework
.
WaitFor
ObservedDeployment
(
c
,
ns
,
deploymentName
,
deployment
.
Generation
))
.
NotTo
(
HaveOccurred
(
))
Expect
(
framework
.
WaitFor
DeploymentUpdatedReplicasLTE
(
c
,
ns
,
deploymentName
,
1
,
deployment
.
Generation
))
framework
.
Logf
(
"Checking deployment %q for a timeout condition"
,
deploymentName
)
framework
.
Logf
(
"Checking deployment %q for a timeout condition"
,
deploymentName
)
Expect
(
framework
.
WaitForDeploymentWithCondition
(
c
,
ns
,
deploymentName
,
deploymentutil
.
TimedOutReason
,
extensions
.
DeploymentProgressing
))
.
NotTo
(
HaveOccurred
())
Expect
(
framework
.
WaitForDeploymentWithCondition
(
c
,
ns
,
deploymentName
,
deploymentutil
.
TimedOutReason
,
extensions
.
DeploymentProgressing
))
.
NotTo
(
HaveOccurred
())
...
@@ -1237,8 +1237,8 @@ func testFailedDeployment(f *framework.Framework) {
...
@@ -1237,8 +1237,8 @@ func testFailedDeployment(f *framework.Framework) {
})
})
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
framework
.
Logf
(
"Waiting for deployment %q
to be observed by the controller
"
,
deploymentName
)
framework
.
Logf
(
"Waiting for deployment %q
new replica set to come up
"
,
deploymentName
)
Expect
(
framework
.
WaitFor
ObservedDeployment
(
c
,
ns
,
deploymentName
,
deployment
.
Generation
))
.
NotTo
(
HaveOccurred
(
))
Expect
(
framework
.
WaitFor
DeploymentUpdatedReplicasLTE
(
c
,
ns
,
deploymentName
,
1
,
deployment
.
Generation
))
framework
.
Logf
(
"Waiting for deployment %q status"
,
deploymentName
)
framework
.
Logf
(
"Waiting for deployment %q status"
,
deploymentName
)
Expect
(
framework
.
WaitForDeploymentStatusValid
(
c
,
deployment
))
.
NotTo
(
HaveOccurred
())
Expect
(
framework
.
WaitForDeploymentStatusValid
(
c
,
deployment
))
.
NotTo
(
HaveOccurred
())
...
...
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