mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Correctly skip daemon restart tests unless running on GCE
This commit is contained in:
parent
18ad5f8cdf
commit
f419f407c2
@ -199,11 +199,8 @@ var _ = Describe("DaemonRestart", func() {
|
|||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
|
||||||
// These tests require SSH
|
// These tests require SSH
|
||||||
// TODO: Enable on gke after testing (#11834)
|
// TODO(11834): Enable this test in GKE once experimental API there is switched on
|
||||||
if !providerIs("gce") {
|
SkipUnlessProviderIs("gce")
|
||||||
By(fmt.Sprintf("Skipping test, which is not implemented for %s", testContext.Provider))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
framework.beforeEach()
|
framework.beforeEach()
|
||||||
ns = framework.Namespace.Name
|
ns = framework.Namespace.Name
|
||||||
|
|
||||||
@ -285,9 +282,6 @@ var _ = Describe("DaemonRestart", func() {
|
|||||||
|
|
||||||
It("Scheduler should continue assigning pods to nodes across restart", func() {
|
It("Scheduler should continue assigning pods to nodes across restart", func() {
|
||||||
|
|
||||||
// TODO: Enabale this test in GKE once experimental API there is switched on
|
|
||||||
SkipIfProviderIs("gke")
|
|
||||||
|
|
||||||
restarter := NewRestartConfig(
|
restarter := NewRestartConfig(
|
||||||
getMasterHost(), "kube-scheduler", ports.SchedulerPort, restartPollInterval, restartTimeout)
|
getMasterHost(), "kube-scheduler", ports.SchedulerPort, restartPollInterval, restartTimeout)
|
||||||
|
|
||||||
@ -304,9 +298,6 @@ var _ = Describe("DaemonRestart", func() {
|
|||||||
|
|
||||||
It("Kubelet should not restart containers across restart", func() {
|
It("Kubelet should not restart containers across restart", func() {
|
||||||
|
|
||||||
// TODO: Enabale this test in GKE once experimental API there is switched on
|
|
||||||
SkipIfProviderIs("gke")
|
|
||||||
|
|
||||||
nodeIPs, err := getNodePublicIps(framework.Client)
|
nodeIPs, err := getNodePublicIps(framework.Client)
|
||||||
expectNoError(err)
|
expectNoError(err)
|
||||||
preRestarts, badNodes := getContainerRestarts(framework.Client, ns, labelSelector)
|
preRestarts, badNodes := getContainerRestarts(framework.Client, ns, labelSelector)
|
||||||
|
Loading…
Reference in New Issue
Block a user