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
c4fcb1e8
Commit
c4fcb1e8
authored
Apr 05, 2018
by
nikhiljindal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating kubemci remove-clusters e2e test to use --force to remove from all clusters
parent
9f4b851e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ingress.go
test/e2e/network/ingress.go
+7
-2
No files found.
test/e2e/network/ingress.go
View file @
c4fcb1e8
...
@@ -640,10 +640,15 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
...
@@ -640,10 +640,15 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
name
:=
jig
.
Ingress
.
Name
name
:=
jig
.
Ingress
.
Name
// Verify that the ingress is spread to 1 cluster as expected.
// Verify that the ingress is spread to 1 cluster as expected.
verifyKubemciStatusHas
(
name
,
"is spread across 1 cluster"
)
verifyKubemciStatusHas
(
name
,
"is spread across 1 cluster"
)
// Validate that removing the ingress from all clusters throws an error.
// Reuse the ingress file created while creating the ingress.
// Reuse the ingress file created while creating the ingress.
filePath
:=
filepath
.
Join
(
framework
.
TestContext
.
OutputDir
,
"mci.yaml"
)
filePath
:=
filepath
.
Join
(
framework
.
TestContext
.
OutputDir
,
"mci.yaml"
)
if
_
,
err
:=
framework
.
RunKubemciWithKubeconfig
(
"remove-clusters"
,
name
,
"--ingress="
+
filePath
);
err
!=
nil
{
if
_
,
err
:=
framework
.
RunKubemciWithKubeconfig
(
"remove-clusters"
,
name
,
"--ingress="
+
filePath
);
err
==
nil
{
framework
.
Failf
(
"unexpected error in running kubemci remove-clusters: %s"
,
err
)
framework
.
Failf
(
"expected non-nil error in running kubemci remove-clusters to remove from all clusters"
)
}
// remove-clusters should succeed with --force=true
if
_
,
err
:=
framework
.
RunKubemciWithKubeconfig
(
"remove-clusters"
,
name
,
"--ingress="
+
filePath
,
"--force=true"
);
err
!=
nil
{
framework
.
Failf
(
"unexpected error in running kubemci remove-clusters to remove from all clusters with --force=true: %s"
,
err
)
}
}
verifyKubemciStatusHas
(
name
,
"is spread across 0 cluster"
)
verifyKubemciStatusHas
(
name
,
"is spread across 0 cluster"
)
})
})
...
...
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