From 8ae5e34127216bf56544ccfd54cc48979741ad48 Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 6 Jan 2020 16:20:36 +0530 Subject: [PATCH] pre cleanup services (#66188) Signed-off-by: rohitthakur2590 --- .../targets/vyos_config/tests/cli/simple.yaml | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/test/integration/targets/vyos_config/tests/cli/simple.yaml b/test/integration/targets/vyos_config/tests/cli/simple.yaml index 376d0b94bbd..d9185affa8b 100644 --- a/test/integration/targets/vyos_config/tests/cli/simple.yaml +++ b/test/integration/targets/vyos_config/tests/cli/simple.yaml @@ -25,6 +25,12 @@ that: - "result.changed == false" +- name: Delete services + vyos_config: &del + lines: + - delete service lldp + - delete protocols static + - name: Configuring when commands starts with whitespaces vyos_config: src: "{{ role_path }}/tests/cli/config.cfg" @@ -36,18 +42,8 @@ - '"set service lldp" in result.commands' - '"set protocols static" in result.commands' -- name: Delete description - vyos_config: - lines: - - delete service lldp - - delete protocols static - register: result - -- assert: - that: - - "result.changed == true" - - '"delete service lldp" in result.commands' - - '"delete protocols static" in result.commands' +- name: Delete services + vyos_config: *del - name: teardown vyos_config: