diff --git a/examples/down-profile.yml b/examples/down-profile.yml deleted file mode 100644 index 5087240..0000000 --- a/examples/down-profile.yml +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause ---- -- name: Set {{ profile }} down - hosts: all - vars: - network_connections: - - name: "{{ profile }}" - state: down - roles: - - linux-system-roles.network diff --git a/examples/down-profile.yml b/examples/down-profile.yml new file mode 120000 index 0000000..d5d2ed7 --- /dev/null +++ b/examples/down-profile.yml @@ -0,0 +1 @@ +../tests/down-profile.yml \ No newline at end of file diff --git a/examples/remove-profile.yml b/examples/remove-profile.yml deleted file mode 100644 index 95496aa..0000000 --- a/examples/remove-profile.yml +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause ---- -- name: Remove {{ profile }} - hosts: all - vars: - network_connections: - - name: "{{ profile }}" - state: absent - roles: - - linux-system-roles.network diff --git a/examples/remove-profile.yml b/examples/remove-profile.yml new file mode 120000 index 0000000..f2cf478 --- /dev/null +++ b/examples/remove-profile.yml @@ -0,0 +1 @@ +../tests/remove-profile.yml \ No newline at end of file diff --git a/tests/tasks/make-profile-down.yml b/tests/down-profile.yml similarity index 100% rename from tests/tasks/make-profile-down.yml rename to tests/down-profile.yml diff --git a/tests/remove-profile.yml b/tests/remove-profile.yml deleted file mode 120000 index 4af41c6..0000000 --- a/tests/remove-profile.yml +++ /dev/null @@ -1 +0,0 @@ -../examples/remove-profile.yml \ No newline at end of file diff --git a/tests/remove-profile.yml b/tests/remove-profile.yml new file mode 100644 index 0000000..95496aa --- /dev/null +++ b/tests/remove-profile.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: BSD-3-Clause +--- +- name: Remove {{ profile }} + hosts: all + vars: + network_connections: + - name: "{{ profile }}" + state: absent + roles: + - linux-system-roles.network diff --git a/tests/tasks/make-profile-absent.yml b/tests/tasks/make-profile-absent.yml deleted file mode 100644 index 95496aa..0000000 --- a/tests/tasks/make-profile-absent.yml +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause ---- -- name: Remove {{ profile }} - hosts: all - vars: - network_connections: - - name: "{{ profile }}" - state: absent - roles: - - linux-system-roles.network diff --git a/tests/tests_ethernet.yml b/tests/tests_ethernet.yml index 7ed15d7..55f2ae2 100644 --- a/tests/tests_ethernet.yml +++ b/tests/tests_ethernet.yml @@ -25,7 +25,7 @@ type: ethernet autoconnect: yes ip: - address: 192.0.27.1/24 + address: 192.0.2.1/24 roles: - linux-system-roles.network # FIXME: assert profile present diff --git a/tox.ini b/tox.ini index e6a8363..89c29c0 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ deps = [base] passenv = * setenv = - PYTHONPATH = {toxinidir}/src + PYTHONPATH = {toxinidir}/library LC_ALL = C changedir = {toxinidir}/tests covtarget = network_connections