Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Clean up log grepping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Nov 7, 2019
1 parent 534bef2 commit ffb4260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/e2e/12_sync.bats
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function setup() {
git -c '[email protected]' -c 'user.name=Foo' commit -am "Bump podinfo and duplicate it to cause an error"
git push
# Wait until we find the duplicate failure in the logs
poll_until_true "duplicate resource in Flux logs" "kubectl logs -n $FLUX_NAMESPACE -l name=flux | grep -q \"duplicate definition of 'demo:deployment/podinfo'\""
poll_until_true "duplicate resource in Flux logs" "kubectl logs -n $FLUX_NAMESPACE -l deploy/flux | grep -q \"duplicate definition of 'demo:deployment/podinfo'\""
# Make sure that the version of podinfo wasn't bumped
local podinfo_image_now
podinfo_image_now=$(kubectl get pod -n demo -l app=podinfo -o"jsonpath={['items'][0]['spec']['containers'][0]['image']}")
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/20_commit_verification.bats
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function setup() {
install_flux_with_fluxctl '20_gpg/flux' 'template_values'

# Wait for Flux to report that it sees an invalid commit
poll_until_true 'invalid GPG signature log' "kubectl logs -n ${FLUX_NAMESPACE} deploy/flux | grep -e 'found invalid GPG signature for commit'"
poll_until_true 'invalid GPG signature log' "kubectl logs -n ${FLUX_NAMESPACE} deploy/flux | grep -q -e 'found invalid GPG signature for commit'"

# Attempt to lock a resource, and confirm it returns an error.
run fluxctl --k8s-fwd-ns "${FLUX_NAMESPACE}" lock --workload demo:deployment/podinfo
Expand Down

0 comments on commit ffb4260

Please sign in to comment.