Skip to content

Commit

Permalink
update integration
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Aug 1, 2023
1 parent 4b16d0a commit 6ce10f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/integration/kongaddon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ func TestKongAddonWithNamespace(t *testing.T) {
deployments := env.Cluster().Client().AppsV1().Deployments(testNS)
kongDeployment, err := deployments.Get(ctx, "ingress-controller-kong", metav1.GetOptions{})
require.NoError(t, err)
require.Len(t, kongDeployment.Spec.Template.Spec.Containers, 2)
require.Equal(t, kongDeployment.Spec.Template.Spec.Containers[0].Name, "ingress-controller")
require.Equal(t, kongDeployment.Spec.Template.Spec.Containers[1].Name, "proxy")

require.Greater(t, kongDeployment.Status.ReadyReplicas, 0, "should have at least one ready replicas")
require.Equal(t, kongDeployment.Status.Replicas, kongDeployment.Status.ReadyReplicas, "replicas should be all ready")
}

func TestKongAddonWithCustomImage(t *testing.T) {
Expand Down

0 comments on commit 6ce10f0

Please sign in to comment.