diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 4a7d653..75b729b 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -14,3 +14,4 @@ dokku_plugins: - name: global-cert url: https://github.com/josegonzalez/dokku-global-cert + dokku_hostname: test.domain diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index adcd3ab..64dc5b2 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -10,3 +10,13 @@ - name: Check that dokku_global_cert module can parse output dokku_global_cert: state: absent + + - name: Get dokku_hostname # noqa 301 + command: dokku domains + register: dokku_domains + + - name: Check that dokku_hostname is set correctly + assert: + that: + - "'test.domain' in dokku_domains.stdout" + msg: "hostname 'test.domain' not found in output of 'dokku domains'"