summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/omit
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2018-11-26 18:14:46 +0100
committerGitHub <noreply@github.com>2018-11-26 18:14:46 +0100
commit48ffd8789f4f930e2e330ab62781c43fe57ee022 (patch)
tree6662d70411ba5c4aabea181fe49ea59973168dee /test/integration/targets/omit
parentFix metadata comparison (#49133) (diff)
downloadansible-48ffd8789f4f930e2e330ab62781c43fe57ee022.tar.xz
ansible-48ffd8789f4f930e2e330ab62781c43fe57ee022.zip
Properly handle FieldAttribute.default if callable (#48992)
* Properly handle FieldAttribute.default if callable Fixes #48673 * Add changelog... * Add integration test * Add aliases file
Diffstat (limited to 'test/integration/targets/omit')
-rw-r--r--test/integration/targets/omit/48673.yml4
-rw-r--r--test/integration/targets/omit/aliases1
-rwxr-xr-xtest/integration/targets/omit/runme.sh5
3 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/omit/48673.yml b/test/integration/targets/omit/48673.yml
new file mode 100644
index 0000000000..b6d4f31b10
--- /dev/null
+++ b/test/integration/targets/omit/48673.yml
@@ -0,0 +1,4 @@
+- hosts: localhost
+ serial: "{{ testing_omitted_variable | default(omit) }}"
+ tasks:
+ - debug:
diff --git a/test/integration/targets/omit/aliases b/test/integration/targets/omit/aliases
new file mode 100644
index 0000000000..b59832142f
--- /dev/null
+++ b/test/integration/targets/omit/aliases
@@ -0,0 +1 @@
+shippable/posix/group3
diff --git a/test/integration/targets/omit/runme.sh b/test/integration/targets/omit/runme.sh
new file mode 100755
index 0000000000..962e1f0409
--- /dev/null
+++ b/test/integration/targets/omit/runme.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -eux
+
+ansible-playbook 48673.yml -i ../../inventory -v "$@"