summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-12-18 01:51:49 +0100
committerMichael DeHaan <michael.dehaan@gmail.com>2012-12-18 01:51:49 +0100
commit4bcdd246884fd3683b1a93df0462d34635f96157 (patch)
tree105303c62515298d086507e776d05151f0e73a94 /test
parentMerge pull request #1782 from candeira/fix-playbook2-documentation (diff)
parentAdds comments on handling quoted group vars (diff)
downloadansible-4bcdd246884fd3683b1a93df0462d34635f96157.tar.xz
ansible-4bcdd246884fd3683b1a93df0462d34635f96157.zip
Merge pull request #1776 from junegunn/inventory-group-var-ws
Allows whitespaces around assignment operators when defining group variables
Diffstat (limited to 'test')
-rw-r--r--test/TestInventory.py4
-rw-r--r--test/complex_hosts6
2 files changed, 9 insertions, 1 deletions
diff --git a/test/TestInventory.py b/test/TestInventory.py
index 50a4c3a728..8b3200852c 100644
--- a/test/TestInventory.py
+++ b/test/TestInventory.py
@@ -142,7 +142,9 @@ class TestInventory(unittest.TestCase):
print vars
expected = dict(
- a='1', b='2', c='3', d='10002', rga='1', rgb='2', rgc='3',
+ a='1', b='2', c='3', d='10002', e='10003', f='10004 != 10005',
+ g=' g ', h=' h ', i="' i \"", j='" j',
+ rga='1', rgb='2', rgc='3',
inventory_hostname='rtp_a', inventory_hostname_short='rtp_a',
group_names=[ 'eastcoast', 'nc', 'redundantgroup', 'redundantgroup2', 'redundantgroup3', 'rtp', 'us' ]
)
diff --git a/test/complex_hosts b/test/complex_hosts
index c6e5e98cf0..5153bf095d 100644
--- a/test/complex_hosts
+++ b/test/complex_hosts
@@ -34,6 +34,12 @@ rgc=3
b=10000
c=10001
d=10002
+e = 10003
+ f = 10004 != 10005
+ g = " g "
+ h = ' h '
+ i = ' i "
+ j = " j
[rtp]
rtp_a