Skip to content

Commit

Permalink
test: don't run kubelet restart test if ssh is blocked (Azure#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis authored and penggu committed Oct 28, 2020
1 parent bad9d79 commit 1a71bcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/kubernetes/kubernetes_test.go
Expand Up @@ -1445,7 +1445,9 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu

Describe("with a windows agent pool", func() {
It("kubelet service should be able to recover when the docker service is stopped", func() {
if !eng.ExpandedDefinition.Properties.HasNonRegularPriorityScaleset() {
if cfg.BlockSSHPort {
Skip("SSH port is blocked")
} else if !eng.ExpandedDefinition.Properties.HasNonRegularPriorityScaleset() {
if eng.HasWindowsAgents() {
if eng.ExpandedDefinition.Properties.WindowsProfile != nil && eng.ExpandedDefinition.Properties.WindowsProfile.GetSSHEnabled() {
nodes, err := node.GetReadyWithRetry(1*time.Second, cfg.Timeout)
Expand Down

0 comments on commit 1a71bcb

Please sign in to comment.