Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update test capacity #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ Compatibility
-------------

This role was tested successfully with:
* LEDE 17.01 (manually)
* OpenWRT 18.06
* OpenWRT 19.07
* OpenWRT 21.02
* OpenWRT 22.03
* OpenWRT 23.05

Requirements
------------
Expand Down
7 changes: 7 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ galaxy_info:
min_ansible_version: '2.4'
platforms:
- name: GenericLinux
- name: OpenWrt
versions:
- "19.07"
- "21.02"
- "22.03"
- "23.05"
# platforms:
# - name: LEDE
# versions:
Expand All @@ -25,3 +31,4 @@ galaxy_info:
dependencies: []

# code: language=yaml tabSize=2

27 changes: 16 additions & 11 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,39 @@ dependency:
driver:
name: docker
platforms:
- name: instance_latest
image: openwrtorg/rootfs:latest
- name: openwrt_latest
image: openwrt/rootfs:latest
command: sleep infinity
pre_build_image: true
network_mode: host
groups:
- openwrt
- name: instance_x86_64-22.03.2
image: openwrtorg/rootfs:x86_64-22.03.2
- name: openwrt_x86_64-23.05.3
image: openwrt/rootfs:x86_64-23.05.3
command: sleep infinity
pre_build_image: true
network_mode: host
groups:
- openwrt
- name: instance_x86_64-21.02.5
image: openwrtorg/rootfs:x86_64-21.02.5
- name: openwrt_x86_64-22.03.2
image: openwrt/rootfs:x86_64-22.03.2
command: sleep infinity
pre_build_image: true
network_mode: host
groups:
- openwrt
- name: instance_x86_64-19.07.10
image: openwrtorg/rootfs:x86_64-19.07.10
command: "sh -c 'while true; do sleep 10000; done'"
- name: openwrt_x86_64-21.02.5
image: openwrt/rootfs:x86_64-21.02.5
command: sleep infinity
pre_build_image: true
network_mode: host
groups:
- openwrt
- name: instance_x86-64-18.06.6
image: openwrtorg/rootfs:x86-64-18.06.6
- name: openwrt_x86_64-19.07.10
image: openwrt/rootfs:x86_64-19.07.10
command: "sh -c 'while true; do sleep 10000; done'"
pre_build_image: true
network_mode: host
groups:
- openwrt
provisioner:
Expand Down
7 changes: 4 additions & 3 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- name: Run simple command
command:
cmd: "echo Holy canole, it\\'s {{ os_release.name }}"
changed_when: false
register: holy_canole

- name: Assert Canole
Expand All @@ -40,10 +41,10 @@
- name: Read UCI
uci:
command: get
key: network.wan.ifname
register: uci_wan_ifname
key: dhcp.lan.interface
register: uci_dhcp_lan_interface

- name: Assert WAN network interface name (UCI)
ansible.builtin.assert:
that:
- uci_wan_ifname.result == "eth0"
- uci_dhcp_lan_interface.result == "lan"
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
molecule[docker,lint]
molecule[lint]
molecule-plugins[docker]
docker
yamllint
ansible-lint