summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/register/runme.sh
blob: 8adc5047551be3712bf25f54c717f0926ef17701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

set -eux

# does it work?
ansible-playbook can_register.yml -i ../../inventory -v "$@"

# ensure we do error when it its apprpos
set +e
result="$(ansible-playbook invalid.yml -i ../../inventory -v "$@" 2>&1)"
set -e
grep -q "Invalid variable name in " <<< "${result}"