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{})