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
a6b69710
Commit
a6b69710
authored
Jul 22, 2015
by
Vish Kannan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11607 from mbforbes/addonClarify
Clarify bits of addon e2e test
parents
2e3841ef
518ddd62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
addon_update.go
test/e2e/addon_update.go
+18
-9
No files found.
test/e2e/addon_update.go
View file @
a6b69710
...
...
@@ -196,8 +196,11 @@ var _ = Describe("Addon update", func() {
var
namespace
*
api
.
Namespace
BeforeEach
(
func
()
{
// This test requires SSH, so the provider check should be identical to
// those tests.
// This test requires:
// - SSH
// - master access
// ... so the provider check should be identical to the intersection of
// providers that provide those capabilities.
if
!
providerIs
(
"gce"
)
{
return
}
...
...
@@ -205,7 +208,7 @@ var _ = Describe("Addon update", func() {
c
,
err
=
loadClient
()
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
sshClient
,
err
=
getSSHClient
()
sshClient
,
err
=
get
Master
SSHClient
()
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
namespace
,
err
=
createTestingNS
(
"addon-update-test"
,
c
)
...
...
@@ -218,8 +221,11 @@ var _ = Describe("Addon update", func() {
})
AfterEach
(
func
()
{
// This test requires SSH, so the provider check should be identical to
// those tests.
// This test requires:
// - SSH
// - master access
// ... so the provider check should be identical to the intersection of
// providers that provide those capabilities.
if
!
providerIs
(
"gce"
)
{
return
}
...
...
@@ -238,8 +244,11 @@ var _ = Describe("Addon update", func() {
// WARNING: the test is not parallel-friendly!
It
(
"should propagate add-on file changes"
,
func
()
{
// This test requires SSH, so the provider check should be identical to
// those tests.
// This test requires:
// - SSH
// - master access
// ... so the provider check should be identical to the intersection of
// providers that provide those capabilities.
SkipUnlessProviderIs
(
"gce"
)
//these tests are long, so I squeezed several cases in one scenario
...
...
@@ -344,7 +353,7 @@ func waitForReplicationControllerInAddonTest(c *client.Client, addonNamespace, n
// TODO marekbiskup 2015-06-11: merge the ssh code into pkg/util/ssh.go after
// kubernetes v1.0 is released. In particular the code of sshExec.
func
getSSHClient
()
(
*
ssh
.
Client
,
error
)
{
func
get
Master
SSHClient
()
(
*
ssh
.
Client
,
error
)
{
// Get a signer for the provider.
signer
,
err
:=
getSigner
(
testContext
.
Provider
)
if
err
!=
nil
{
...
...
@@ -371,7 +380,7 @@ func sshExecAndVerify(client *ssh.Client, cmd string) {
}
func
sshExec
(
client
*
ssh
.
Client
,
cmd
string
)
(
string
,
string
,
int
,
error
)
{
Logf
(
fmt
.
Sprintf
(
"Executing '%s' on %v"
,
cmd
,
client
.
RemoteAddr
()
))
Logf
(
"Executing '%s' on %v"
,
cmd
,
client
.
RemoteAddr
(
))
session
,
err
:=
client
.
NewSession
()
if
err
!=
nil
{
return
""
,
""
,
0
,
fmt
.
Errorf
(
"error creating session to host %s: '%v'"
,
client
.
RemoteAddr
(),
err
)
...
...
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