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
a68e0848
Commit
a68e0848
authored
Sep 29, 2015
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor out providers which support SSH in e2e tests
parent
b9cfab87
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
core.go
test/e2e/core.go
+1
-1
service.go
test/e2e/service.go
+1
-1
ssh.go
test/e2e/ssh.go
+1
-1
util.go
test/e2e/util.go
+3
-0
No files found.
test/e2e/core.go
View file @
a68e0848
...
...
@@ -38,7 +38,7 @@ func CoreDump(dir string) {
provider
:=
testContext
.
Provider
// requires ssh
if
!
providerIs
(
"gce"
,
"gke"
)
{
if
!
providerIs
(
providersWithSSH
...
)
{
fmt
.
Printf
(
"Skipping SSH core dump, which is not implemented for %s"
,
provider
)
return
}
...
...
test/e2e/service.go
View file @
a68e0848
...
...
@@ -238,7 +238,7 @@ var _ = Describe("Services", func() {
It
(
"should be able to up and down services"
,
func
()
{
// this test uses NodeSSHHosts that does not work if a Node only reports LegacyHostIP
SkipUnlessProviderIs
(
"gce"
,
"gke"
,
"aws"
)
SkipUnlessProviderIs
(
providersWithSSH
...
)
ns
:=
namespaces
[
0
]
numPods
,
servicePort
:=
3
,
80
...
...
test/e2e/ssh.go
View file @
a68e0848
...
...
@@ -35,7 +35,7 @@ var _ = Describe("SSH", func() {
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
// When adding more providers here, also implement their functionality in util.go's getSigner(...).
SkipUnlessProviderIs
(
"gce"
,
"gke"
)
SkipUnlessProviderIs
(
providersWithSSH
...
)
})
It
(
"should SSH to all nodes and run commands"
,
func
()
{
...
...
test/e2e/util.go
View file @
a68e0848
...
...
@@ -241,6 +241,9 @@ func providerIs(providers ...string) bool {
return
false
}
// providersWithSSH are those providers where each node is accessible with SSH
var
providersWithSSH
=
[]
string
{
"gce"
,
"gke"
,
"aws"
}
type
podCondition
func
(
pod
*
api
.
Pod
)
(
bool
,
error
)
// podReady returns whether pod has a condition of Ready with a status of true.
...
...
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