feat: add environment variables

This commit is contained in:
Adrien Waksberg 2022-05-10 10:40:42 +02:00
parent 24bc640fc9
commit f2e3f37201
7 changed files with 48 additions and 0 deletions
molecule/default/tests

View file

@ -4,6 +4,15 @@ def test_packages(host):
package = host.package('gitlab-runner')
assert package.is_installed
def test_env_file(host):
path = host.file('/etc/systemd/system/gitlab-runner.service.d/ansible.conf')
assert path.exists
assert path.is_file
assert path.user == 'root'
assert path.group == 'root'
assert path.mode == 0o644
assert path.contains('Environment="TEST=toto"')
def test_config_file(host):
config = host.file('/etc/gitlab-runner/config.toml')
assert config.exists