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

Commit 39eb9fd

Browse files
committed
inspektor-gadget: add simple daemonset test
It checks that the daemonset is created and converges.
1 parent c497040 commit 39eb9fd

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 The Lokomotive Authors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// +build aws aws_edge packet aks
16+
// +build e2e
17+
18+
package inspektorgadget_test
19+
20+
import (
21+
"testing"
22+
23+
testutil "github.com/kinvolk/lokomotive/test/components/util"
24+
)
25+
26+
const (
27+
daemonset = "inspektor-gadget"
28+
namespace = "kube-system"
29+
)
30+
31+
func TestInspektorGadgetDeployment(t *testing.T) {
32+
client := testutil.CreateKubeClient(t)
33+
34+
testutil.WaitForDaemonSet(t, client, namespace, daemonset, testutil.RetryInterval, testutil.Timeout)
35+
}

0 commit comments

Comments
 (0)