aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/fake.sh
diff options
context:
space:
mode:
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>2020-03-24 16:12:39 +0100
committerGitHub <noreply@github.com>2020-03-24 16:12:39 +0100
commit0815543375419c6e15ac67d57d19578dfcf2b290 (patch)
tree0773be49aed217cebe9e600c4acb0b7cc49921df /tests/fake.sh
parent13602abcc2f50d0ad5b3eff47e5719bfa8b77ecd (diff)
parentc99eb17850e51327449e6fac5572c6cfc436d21c (diff)
downloadansible-clever-2.3.tar.gz
ansible-clever-2.3.tar.zst
ansible-clever-2.3.zip
Merge pull request #60 from paulrbr-fl/fix-base-envv2.3
fix `clever_base_env` by removing a variable if not necessary
Diffstat (limited to 'tests/fake.sh')
-rwxr-xr-xtests/fake.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/fake.sh b/tests/fake.sh
new file mode 100755
index 0000000..2835e85
--- /dev/null
+++ b/tests/fake.sh
@@ -0,0 +1,14 @@
1#!/usr/bin/env bash
2
3binary="${0/*\/}"
4fakeCommit="aaa000aaa000aaa000aaa000aaa000aaa000aaa0"
5
6if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then
7 echo "1.6.3"
8elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then
9 echo "2020-02-02T20:20:02+02:00 OK DEPLOY ${fakeCommit} Git"
10elif [ "${binary}" = "git" ]; then
11 echo "${fakeCommit}"
12else
13 echo "${binary} called with arguments: ${*}"
14fi