Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
e2e test: Fix controller manager and coredns test
Browse files Browse the repository at this point in the history
These tests were earlier run on deployment but now they should be run on
daemonset, since these components are deployed as ones.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed Oct 12, 2020
1 parent 0a2f02c commit 4f6cebf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions test/components/coredns/coredns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ import (
testutil "github.com/kinvolk/lokomotive/test/components/util"
)

func TestCoreDNSDeployment(t *testing.T) {
func TestCoreDNSDaemonSet(t *testing.T) {
t.Parallel()

namespace := "kube-system"
deployment := "coredns"
daemonset := "coredns"

client := testutil.CreateKubeClient(t)

testutil.WaitForDeployment(t, client, namespace, deployment, testutil.RetryInterval, testutil.Timeout)
testutil.WaitForDaemonSet(t, client, namespace, daemonset, testutil.RetryInterval, testutil.Timeout)
}
6 changes: 3 additions & 3 deletions test/components/kubernetes/controller-manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import (
testutil "github.com/kinvolk/lokomotive/test/components/util"
)

func TestControllerManagerDeployment(t *testing.T) {
func TestControllerManagerDaemonSet(t *testing.T) {
t.Parallel()

namespace := "kube-system"
deployment := "kube-controller-manager"
daemonset := "kube-controller-manager"

client := testutil.CreateKubeClient(t)

testutil.WaitForDeployment(t, client, namespace, deployment, testutil.RetryInterval, testutil.Timeout)
testutil.WaitForDaemonSet(t, client, namespace, daemonset, testutil.RetryInterval, testutil.Timeout)
}

0 comments on commit 4f6cebf

Please sign in to comment.