mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-25 20:03:49 +00:00
Remove manual tests
These couldn't be easily automated.
This commit is contained in:
parent
69134b7cb7
commit
0305e7e55b
5 changed files with 0 additions and 145 deletions
2
TEST/.gitignore
vendored
2
TEST/.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
/*.retry
|
||||
/inventory
|
||||
|
|
@ -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 <<EOF > ./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
|
||||
```
|
||||
|
|
@ -1 +0,0 @@
|
|||
../..
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue