Skip to content
Snippets Groups Projects
Commit ce76a584 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Fix tests

- add lab_route_test variable required for testing
- fix sudo test (strip needed)
parent 7f892e2e
No related branches found
No related tags found
No related merge requests found
Pipeline #31892 passed
......@@ -11,6 +11,10 @@ provisioner:
name: ansible-lint
playbooks:
converge: ../../playbook.yml
inventory:
host_vars:
ics-ans-gpn-config-default:
lab_route_test: true
scenario:
name: default
verifier:
......@@ -24,7 +28,7 @@ driver:
platforms:
- name: ics-ans-gpn-config-default
box: centos/7
memory: 512
memory: 2048
cpus: 1
instance_raw_config_args:
- "vbguest.auto_update = false"
......
......@@ -22,7 +22,7 @@ def test_route_exist(host):
def test_sudoers_files(host):
with host.sudo():
assert host.file("/etc/sudoers.d/csi").content_string == "csi ALL=(ALL) NOPASSWD:ALL"
assert host.file("/etc/sudoers.d/csi").content_string.strip() == "csi ALL=(ALL) NOPASSWD:ALL"
def test_sudo_with_csi(host):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment