Skip to content

Commit 9d866a0

Browse files
committed
Fix ingress class checks in Contour tests
1 parent 4a7b0c0 commit 9d866a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/router/contour_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestContourRouter_Reconcile(t *testing.T) {
5050
require.Len(t, services, 2)
5151
assert.Equal(t, int64(100), services[0].Weight)
5252
assert.Equal(t, int64(0), services[1].Weight)
53-
assert.Equal(t, "contour", proxy.Annotations["projectcontour.io/ingress.class"])
53+
assert.Equal(t, "contour", proxy.Spec.IngressClassName)
5454

5555
// test update
5656
cd, err := mocks.flaggerClient.FlaggerV1beta1().Canaries("default").Get(context.TODO(), "podinfo", metav1.GetOptions{})

test/contour/test-canary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ until ${ok}; do
9090
fi
9191
done
9292

93-
kubectl -n test get httpproxy podinfo -oyaml | grep 'projectcontour.io/ingress.class: contour'
93+
kubectl -n test get httpproxy podinfo -oyaml | grep 'ingressClassName: contour'
9494

9595
echo '✔ Canary initialization test passed'
9696

@@ -269,4 +269,4 @@ echo '✔ A/B testing promotion test passed'
269269

270270
kubectl -n projectcontour logs deployment/flagger
271271

272-
echo '✔ All tests passed'
272+
echo '✔ All tests passed'

0 commit comments

Comments
 (0)