remove dot imports in e2e/node

This commit is contained in:
danielqsj
2019-05-10 12:32:08 +08:00
parent d01c015346
commit 087bc1369e
13 changed files with 200 additions and 200 deletions

View File

@@ -24,7 +24,7 @@ import (
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
e2essh "k8s.io/kubernetes/test/e2e/framework/ssh"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo"
)
const maxNodes = 100
@@ -33,7 +33,7 @@ var _ = SIGDescribe("SSH", func() {
f := framework.NewDefaultFramework("ssh")
BeforeEach(func() {
ginkgo.BeforeEach(func() {
// When adding more providers here, also implement their functionality in e2essh.GetSigner(...).
framework.SkipUnlessProviderIs(framework.ProvidersWithSSH...)
@@ -42,9 +42,9 @@ var _ = SIGDescribe("SSH", func() {
framework.SkipUnlessSSHKeyPresent()
})
It("should SSH to all nodes and run commands", func() {
ginkgo.It("should SSH to all nodes and run commands", func() {
// Get all nodes' external IPs.
By("Getting all nodes' SSH-able IP addresses")
ginkgo.By("Getting all nodes' SSH-able IP addresses")
hosts, err := e2essh.NodeSSHHosts(f.ClientSet)
if err != nil {
framework.Failf("Error getting node hostnames: %v", err)
@@ -76,7 +76,7 @@ var _ = SIGDescribe("SSH", func() {
nodes = maxNodes
}
testhosts := hosts[:nodes]
By(fmt.Sprintf("SSH'ing to %d nodes and running %s", len(testhosts), testCase.cmd))
ginkgo.By(fmt.Sprintf("SSH'ing to %d nodes and running %s", len(testhosts), testCase.cmd))
for _, host := range testhosts {
result, err := e2essh.SSH(testCase.cmd, host, framework.TestContext.Provider)
@@ -104,7 +104,7 @@ var _ = SIGDescribe("SSH", func() {
}
// Quickly test that SSH itself errors correctly.
By("SSH'ing to a nonexistent host")
ginkgo.By("SSH'ing to a nonexistent host")
if _, err = e2essh.SSH(`echo "hello"`, "i.do.not.exist", framework.TestContext.Provider); err == nil {
framework.Failf("Expected error trying to SSH to nonexistent host.")
}