zahodi.ansible-mikrotik/tests/integration/tests.yml

160 lines
3.4 KiB
YAML

---
- name: Tests
hosts: all
gather_facts: no
connection: local
vars:
# these should be defined at the inventory level
# but must be here until the action plugin is working
mt_hostname: '127.0.0.1'
mt_user: 'admin'
mt_pass: ''
tasks:
- name: Test login
mt_login_test:
hostname: "{{ mt_hostname }}"
username: "{{ mt_user }}"
password: "{{ mt_pass }}"
tags: test_login
###############################
# Interfaces
#################################
- block:
###################
### vlan block
###################
- include: tasks/test-interface-vlan.yml
tags: interfaces-vlan
########################
### ethernet block
########################
- include: tasks/test-interface-ethernet.yml
tags: interfaces-ethernet
tags: interfaces
###################
### ip-pool
###################
- include: tasks/test-ip-pool.yml
tags: ip-pool
##################
### dhcp-server
###################
- include: tasks/test-dhcp-server.yml
tags: dhcp-server
###################
### ovpn-client
###################
- include: tasks/test-ovpn-client.yml
tags: ovpn-client
###################
### radius
###################
- include: tasks/radius-tests.yml
tags: radius
###################
### address-list
###################
- include: tasks/test-address-list.yml
tags: address-list
###################
### ip_address
###################
- include: tasks/test-ip-address.yml
tags: ip-address
###################
### firewall block
###################
- block:
# filter block
- include: tasks/test-firewall-filter.yml
tags: firewall-filter
# nat
- include: tasks/test-firewall-nat.yml
tags: firewall-nat
tags: firewall
###################
### end firewall block
###################
###################
### ip service
###################
- include: tasks/test-service.yml
tags: service
###################
### interface bridge
###################
- include: tasks/test-bridge.yml
tags: bridge
###########################
### system scheduler
##########################
- include: tasks/test-scheduler.yml
tags: scheduler
###########################
### system command
##########################
- include: tasks/test-command.yml
tags: command
###################
### system
###################
- include: tasks/test-system.yml
tags: system
###################
### tool
###################
- include: tasks/test-tool.yml
tags: tool
###################
### snmp
###################
- include: tasks/test-snmp.yml
tags: snmp
###################
### hotspot
###################
- include: tasks/hotspot-tests.yml
tags: hotspot
###################
### neighbor
###################
- include: tasks/test-neighbor.yml
tags: neighbor
###################
### user
###################
- include: tasks/test-user.yml
tags: user
###################
### interface wireless
###################
- include: tasks/test-interface-wireless.yml
tags: interface-wireless
- include: tasks/test-facts.yml
tags: get-facts