Skip to content

Commit

Permalink
update e2e unittest
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiang1989 <[email protected]>
  • Loading branch information
dongjiang1989 committed Jan 8, 2024
1 parent 400c0c4 commit d8411a0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,24 @@ func testInsertAgent(ctx context.Context) func(t *testing.T) {
Annotations: map[string]string{},
},
Spec: appsv1.DaemonSetSpec{
Selector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"name": "test-agent",
},
},
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{
"name": "test-agent",
},
},
Spec: corev1.PodSpec{
Containers: []corev1.Container{
{
Name: "agent",
Image: testframework.Image,
},
},
RestartPolicy: corev1.RestartPolicyOnFailure,
},
},
},
Expand Down

0 comments on commit d8411a0

Please sign in to comment.