mirror of
https://github.com/fluxcd/flagger.git
synced 2026-09-05 02:47:17 +00:00
Fix ingress class checks in Contour tests
Signed-off-by: Sergey Ptashnik <nnz1024@gmail.com>
This commit is contained in:
@@ -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{})
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user