Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit f6ac946

Browse files
evanlouiebnookala
authored andcommitted
Added IngressRoute validation for standard and isDefault ring
- Added `validate_file` calls for the `master` ring integration tests (i.e the `isDefault` ring). closes: microsoft/bedrock#1119
1 parent 7aa8838 commit f6ac946

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/validations.sh

+9
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,15 @@ git pull
345345
validate_commit $image_tag
346346
validate_file "$TEST_WORKSPACE/$manifests_dir/prod/$mono_repo_dir/$FrontEndCompliant/master/chart.yaml" "image: $image_repository:$image_tag"
347347

348+
# --------------------------------
349+
# Validate ingress routes
350+
# - Should generate two ingress routes: one with Ring header and one without (because 'master' isDefault)
351+
# --------------------------------
352+
echo "Validating IngressRoutes => Ringed and isDefault"
353+
validate_file "$TEST_WORKSPACE/$manifests_dir/prod/$mono_repo_dir/$FrontEndCompliant/master/static.yaml" "'PathPrefix(\`/$FrontEndCompliant\`) && Headers(\`Ring\`, \`master\`)'"
354+
validate_file "$TEST_WORKSPACE/$manifests_dir/prod/$mono_repo_dir/$FrontEndCompliant/master/static.yaml" "PathPrefix(\`/$FrontEndCompliant\`)$"
355+
356+
348357
# ##################################
349358
# TODO
350359
# Fix issues where image tag update not reflected in manifest yaml

0 commit comments

Comments
 (0)