diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2020-03-24 16:12:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 16:12:39 +0100 |
commit | 0815543375419c6e15ac67d57d19578dfcf2b290 (patch) | |
tree | 0773be49aed217cebe9e600c4acb0b7cc49921df /tests | |
parent | 13602abcc2f50d0ad5b3eff47e5719bfa8b77ecd (diff) | |
parent | c99eb17850e51327449e6fac5572c6cfc436d21c (diff) | |
download | ansible-clever-0815543375419c6e15ac67d57d19578dfcf2b290.tar.gz ansible-clever-0815543375419c6e15ac67d57d19578dfcf2b290.tar.zst ansible-clever-0815543375419c6e15ac67d57d19578dfcf2b290.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')
-rwxr-xr-x | tests/fake.sh | 14 | ||||
-rw-r--r-- | tests/inventory | 2 | ||||
-rw-r--r-- | tests/test.yml | 6 |
3 files changed, 20 insertions, 2 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 | |||
3 | binary="${0/*\/}" | ||
4 | fakeCommit="aaa000aaa000aaa000aaa000aaa000aaa000aaa0" | ||
5 | |||
6 | if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then | ||
7 | echo "1.6.3" | ||
8 | elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then | ||
9 | echo "2020-02-02T20:20:02+02:00 OK DEPLOY ${fakeCommit} Git" | ||
10 | elif [ "${binary}" = "git" ]; then | ||
11 | echo "${fakeCommit}" | ||
12 | else | ||
13 | echo "${binary} called with arguments: ${*}" | ||
14 | fi | ||
diff --git a/tests/inventory b/tests/inventory index 878877b..49d4fe2 100644 --- a/tests/inventory +++ b/tests/inventory | |||
@@ -1,2 +1,2 @@ | |||
1 | localhost | 1 | localhost ansible_connection=local |
2 | 2 | ||
diff --git a/tests/test.yml b/tests/test.yml index 3e3c57f..663bc6b 100644 --- a/tests/test.yml +++ b/tests/test.yml | |||
@@ -2,4 +2,8 @@ | |||
2 | - hosts: localhost | 2 | - hosts: localhost |
3 | remote_user: root | 3 | remote_user: root |
4 | roles: | 4 | roles: |
5 | - clever \ No newline at end of file | 5 | - role: clever |
6 | vars: | ||
7 | clever_token: 123abc | ||
8 | clever_secret: cba321 | ||
9 | clever_app: app_00000000-0000-0000-0000-000000000000 | ||