|
|
9b1269 |
From 4b1a8a87e7d297fd6669d653af7308dd9c1a513a Mon Sep 17 00:00:00 2001
|
|
|
5611eb |
From: Rich Megginson <rmeggins@redhat.com>
|
|
|
9b1269 |
Date: Thu, 6 May 2021 13:52:38 -0600
|
|
|
9b1269 |
Subject: [PATCH] tag 802-1x test as expfail; make sure bridge test cleans up
|
|
|
9b1269 |
properly
|
|
|
5611eb |
|
|
|
9b1269 |
The 802-1x test will fail on platforms where `hostapd` is not available,
|
|
|
9b1269 |
so tag that test to make it skippable.
|
|
|
9b1269 |
|
|
|
9b1269 |
The initscripts bridge test does not clean up properly, leaving the
|
|
|
9b1269 |
device around which causes the nm test to fail. Explicitly remove
|
|
|
9b1269 |
the device for cleanup.
|
|
|
5611eb |
---
|
|
|
9b1269 |
tests/playbooks/tests_802_1x.yml | 2 ++
|
|
|
9b1269 |
tests/playbooks/tests_bridge.yml | 10 ++++++++++
|
|
|
9b1269 |
2 files changed, 12 insertions(+)
|
|
|
5611eb |
|
|
|
921f83 |
diff --git a/tests/playbooks/tests_802_1x.yml b/tests/playbooks/tests_802_1x.yml
|
|
|
9b1269 |
index 9cce1ae..4ceebb1 100644
|
|
|
921f83 |
--- a/tests/playbooks/tests_802_1x.yml
|
|
|
921f83 |
+++ b/tests/playbooks/tests_802_1x.yml
|
|
|
9b1269 |
@@ -3,6 +3,8 @@
|
|
|
921f83 |
- hosts: all
|
|
|
921f83 |
vars:
|
|
|
921f83 |
interface: 802-1x-test
|
|
|
9b1269 |
+ tags:
|
|
|
9b1269 |
+ - tests::expfail
|
|
|
9b1269 |
tasks:
|
|
|
9b1269 |
- name: "INIT: 802.1x tests"
|
|
|
9b1269 |
debug:
|
|
|
921f83 |
diff --git a/tests/playbooks/tests_bridge.yml b/tests/playbooks/tests_bridge.yml
|
|
|
9b1269 |
index d79d6ad..14b1225 100644
|
|
|
921f83 |
--- a/tests/playbooks/tests_bridge.yml
|
|
|
921f83 |
+++ b/tests/playbooks/tests_bridge.yml
|
|
|
9b1269 |
@@ -49,6 +49,16 @@
|
|
|
921f83 |
profile: "{{ interface }}"
|
|
|
9b1269 |
task: tasks/assert_profile_absent.yml
|
|
|
921f83 |
|
|
|
921f83 |
+- name: Remove test bridge
|
|
|
921f83 |
+ hosts: all
|
|
|
921f83 |
+ tags:
|
|
|
9b1269 |
+ - tests::cleanup
|
|
|
921f83 |
+ tasks:
|
|
|
9b1269 |
+ - name: Remove the test interface
|
|
|
9b1269 |
+ command: ip link delete {{ interface | quote }}
|
|
|
921f83 |
+ ignore_errors: yes
|
|
|
9b1269 |
+ changed_when: false
|
|
|
921f83 |
+
|
|
|
9b1269 |
# FIXME: Devices might still be left when profile is absent
|
|
|
9b1269 |
# - import_playbook: run_tasks.yml
|
|
|
9b1269 |
# vars:
|
|
|
5611eb |
--
|
|
|
5611eb |
2.30.2
|
|
|
5611eb |
|