Skip to content

Commit

Permalink
Update tests for clone/lock files in hostname subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsd6 committed May 6, 2019
1 parent fbf039c commit 025aa04
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ def test_config(gilt_config_file):
assert 'https://github.com/retr0h/ansible-etcd.git' == r.git
assert 'master' == r.version
assert 'retr0h.ansible-etcd' == r.name
assert (gilt_root, 'clone', 'retr0h.ansible-etcd') == os_split(r.src)[-3:]
assert (gilt_root, 'lock',
'retr0h.ansible-etcd') == os_split(r.lock_file)[-3:]
assert (gilt_root, 'clone', 'github.com',
'retr0h.ansible-etcd') == os_split(r.src)[-4:]
assert (gilt_root, 'lock', 'github.com',
'retr0h.ansible-etcd') == os_split(r.lock_file)[-4:]
assert ('roles', 'retr0h.ansible-etcd', '') == os_split(r.dst)[-3:]
assert [] == r.files

Expand All @@ -52,8 +53,9 @@ def test_config(gilt_config_file):
assert r.dst is None

f = r.files[0]
x = (gilt_root, 'clone', 'lorin.openstack-ansible-modules', '*_manage')
assert x == os_split(f.src)[-4:]
x = (gilt_root, 'clone', 'github.com',
'lorin.openstack-ansible-modules', '*_manage')
assert x == os_split(f.src)[-5:]
assert ('library', '') == os_split(f.dst)[-2:]


Expand Down

0 comments on commit 025aa04

Please sign in to comment.