# Fixture for hack/run-kubernetes-install-wait_test.bats. # Not executed: read as text by the guard's matchers. Each block pairs a shape # with the line the test expects a matcher to return for it. ## # `git diff --check` flags the trailing space on that line, deliberately: # the space is the subject here, not an accident, and a case reds if it is # stripped. Nothing suppresses the warning -- a suppression would cover the # next file written here too, where a stray space would be an accident. # Decoys come first because every matcher here stops at its first hit. A decoy # placed after the real thing is never reached and pins nothing. # Same group, different kind. kubectl apply -f - < /dev/null <<'HEREDOC_WAIT' HEREDOC_WAITING: a data line that starts with the delimiter. Matched as a prefix it would end the heredoc here and hand the lines below back as commands. kubectl wait hr -n tenant-test "kubernetes-${test_name}" --timeout=9m --for=condition=ready HEREDOC_WAIT # A here-string and a comment naming a heredoc, both immediately before the # real wait. Neither opens a heredoc: `<<<` is a here-string, and a `<