From 0305e7e55ba8cf2c02708aadee379d6bc5a402b9 Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Fri, 28 Apr 2017 17:33:45 +0200 Subject: [PATCH] Remove manual tests These couldn't be easily automated. --- TEST/.gitignore | 2 - TEST/README.md | 21 ----------- TEST/roles/network | 1 - TEST/test-playbook-3.yml | 41 -------------------- TEST/test-playbook.yml | 80 ---------------------------------------- 5 files changed, 145 deletions(-) delete mode 100644 TEST/.gitignore delete mode 100644 TEST/README.md delete mode 120000 TEST/roles/network delete mode 100644 TEST/test-playbook-3.yml delete mode 100644 TEST/test-playbook.yml diff --git a/TEST/.gitignore b/TEST/.gitignore deleted file mode 100644 index cb7340c..0000000 --- a/TEST/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/*.retry -/inventory diff --git a/TEST/README.md b/TEST/README.md deleted file mode 100644 index 5e29947..0000000 --- a/TEST/README.md +++ /dev/null @@ -1,21 +0,0 @@ -TEST ----- - -```sh -git clone git://github.com/ansible/ansible.git --recursive -. ./ansible/hacking/env-setup - -git clone git@github.com:NetworkManager/ansible-network-role.git - -cd ./ansible-network-role/ - -cat < ./TEST/inventory -[network-test] -v-rhel6 ansible_user=root network_iphost=196 network_mac=52:54:00:44:9f:ba -v-rhel7 ansible_user=root network_iphost=97 network_mac=52:54:00:05:f5:b3 -EOF - -../ansible/hacking/test-module -m ./library/network_connections.py -a 'provider=nm name=t-eth0 state=present type=ethernet' --check - -ansible-playbook -i ./TEST/inventory -l '*rhel*' ./TEST/test-playbook-3.yml --verbose --check -``` diff --git a/TEST/roles/network b/TEST/roles/network deleted file mode 120000 index c25bddb..0000000 --- a/TEST/roles/network +++ /dev/null @@ -1 +0,0 @@ -../.. \ No newline at end of file diff --git a/TEST/test-playbook-3.yml b/TEST/test-playbook-3.yml deleted file mode 100644 index 3b421ba..0000000 --- a/TEST/test-playbook-3.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -- hosts: network-test - vars: - network: - connections: - - name: p-3-auto - autoconnect: no - interface_name: eth0 - type: ethernet - - name: p-3-auto - - - wait: 10 - - - name: p-3-manual - autoconnect: no - interface_name: eth0 - type: ethernet - mac: "{{ network_mac | default(omit) }}" - ip: - dhcp4: no - gateway4: 192.168.122.1 - address: - - "192.168.122.{{ network_iphost }}/24" - - name: p-3-manual - - - wait: 10 - - - name: p-3-br0 - autoconnect: no - interface_name: br0 - type: bridge - - name: p-3-br0-eth0 - autoconnect: no - interface_name: eth0 - type: ethernet - slave_type: bridge - master: p-3-br0 - - name: p-3-br0-eth0 - - roles: - - network diff --git a/TEST/test-playbook.yml b/TEST/test-playbook.yml deleted file mode 100644 index 80013ab..0000000 --- a/TEST/test-playbook.yml +++ /dev/null @@ -1,80 +0,0 @@ ---- -- hosts: network-test - vars: - network: - connections: - - - name: 'eth2' - state: 'absent' - - - name: 'eth1' - #state: 'present' # 'present' is implied by 'type' - type: 'ethernet' - autoconnect: no - interface_name: 'eth1' # restrict the connection to the interface 'eth1' - #mac: '52:54:00:2c:5f:34' # restrict the connection to the interface by MAC address - ip: - dhcp4: yes - dhcp4_send_hostname: no - route_metric4: 103 - gateway4: 192.168.5.1 - auto6: no - route_metric6: -1 - gateway6: fc00::1 - address: - - 192.168.5.3/24 - - 10.0.10.3/16 - - fc00::80/7 - - - name: br0 - interface_name: br0 - type: 'bridge' - autoconnect: no - ip: - address: - - 192.168.10.7/24 - - - name: bond0 - #interface_name: bond0 # the interface-name for virtual devices default to the profile name. - type: 'bond' - autoconnect: no - - - name: team0 # team is not supported on RHEL6 - type: 'team' - interface_name: team0 - autoconnect: no - - - name: eth1.7 - type: vlan - interface_name: eth1.7 - autoconnect: no - parent: eth1 - vlan_id: 7 - ip: - address: - - 192.168.11.7/24 - - - name: br0.5 - type: vlan - #interface_name: br0.5 - autoconnect: no - parent: br0 - vlan_id: 5 - - - name: 'br0-eth1' - type: 'ethernet' - autoconnect: no - interface_name: eth1 - slave_type: bridge - master: br0 - - - name: 'eth1' - state: 'up' - wait: 0 - - #- name: 'ens4' - # state: 'down' - # wait: 0 - - roles: - - network