add tests to ensure expression for atl_startup_restart var in defaults is evaluated to boolean

This commit is contained in:
Lee Goolsbee
2021-02-05 15:44:15 -06:00
parent 1278cc6cf5
commit 520a881310
8 changed files with 121 additions and 5 deletions

View File

@@ -13,3 +13,9 @@ def test_service_file(host):
assert f.user == 'root'
assert f.group == 'root'
assert f.mode == 0o0640
def test_atl_startup_restart(host):
f = host.file('/tmp/ansible-vars.yml')
# value should appear as YAML boolean true (i.e., string 'true' will fail)
assert f.contains(r'^\s*atl_startup_restart: true$')