Fix ingress class checks in Contour tests

Signed-off-by: Sergey Ptashnik <nnz1024@gmail.com>
This commit is contained in:
Sergey Ptashnik
2026-04-16 23:42:15 +05:30
committed by Sanskar Jaiswal
parent 33142a4dec
commit fa5cc7634c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func TestContourRouter_Reconcile(t *testing.T) {
require.Len(t, services, 2)
assert.Equal(t, int64(100), services[0].Weight)
assert.Equal(t, int64(0), services[1].Weight)
assert.Equal(t, "contour", proxy.Annotations["projectcontour.io/ingress.class"])
assert.Equal(t, "contour", proxy.Spec.IngressClassName)
// test update
cd, err := mocks.flaggerClient.FlaggerV1beta1().Canaries("default").Get(context.TODO(), "podinfo", metav1.GetOptions{})
+2 -2
View File
@@ -90,7 +90,7 @@ until ${ok}; do
fi
done
kubectl -n test get httpproxy podinfo -oyaml | grep 'projectcontour.io/ingress.class: contour'
kubectl -n test get httpproxy podinfo -oyaml | grep 'ingressClassName: contour'
echo '✔ Canary initialization test passed'
@@ -269,4 +269,4 @@ echo '✔ A/B testing promotion test passed'
kubectl -n projectcontour logs deployment/flagger
echo '✔ All tests passed'
echo '✔ All tests passed'