Skip to content

Commit

Permalink
remove obsolete assert_traefik_crd_established from port forwarding test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Apr 9, 2024
1 parent 0110fb0 commit a02bd3b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions bats/tests/k8s/port-forwarding.bats
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,10 @@ local_setup() {
fi
}

assert_traefik_crd_established() {
local jsonpath="{.status.conditions[?(@.type=='Established')].status}"
run kubectl get crd traefikservices.traefik.containo.us --output jsonpath="$jsonpath"
assert_success || return
assert_output 'True'
}

@test 'start k8s' {
factory_reset
start_kubernetes
wait_for_kubelet

# The manifests in /var/lib/rancher/k3s/server/manifests are processed
# in alphabetical order. So when traefik.yaml has been loaded we know that
# rd-runtime.yaml has already been processed.
try assert_traefik_crd_established
}

@test 'deploy sample app' {
Expand Down

0 comments on commit a02bd3b

Please sign in to comment.