diff --git a/molecule/resources/converge.yml b/molecule/resources/converge.yml index c91955d6..a721af4f 100644 --- a/molecule/resources/converge.yml +++ b/molecule/resources/converge.yml @@ -12,6 +12,13 @@ openwisp2_uwsgi_extra_conf: | single-interpreter=True openwisp2_usage_metric_collection: false + freeradius_eap_orgs: + - name: openwisp + uuid: 00000000-0000-0000-0000-000000000000 + radius_token: secret-radius-token + auth_port: 1822 + acct_port: 1823 + inner_tunnel_auth_port: 18230 pre_tasks: - name: Update apt cache @@ -20,6 +27,11 @@ cache_valid_time: 600 when: ansible_os_family == 'Debian' + - name: Install net-tools + apt: + name: + - net-tools + - name: Remove the .dockerenv file file: path: /.dockerenv diff --git a/molecule/resources/verify.yml b/molecule/resources/verify.yml index f8804fc2..5cffad38 100644 --- a/molecule/resources/verify.yml +++ b/molecule/resources/verify.yml @@ -60,3 +60,9 @@ - name: Show OpenWisp log debug: var: openwisp_log + + - name: Check if FreeRADIUS is listening on WPA Enterprise site ports + shell: "netstat -tuln | grep -Eq '1822|1823|18230'" + register: freeradius_eap_ports # Register the output and return code + failed_when: freeradius_eap_ports.rc + changed_when: false