Skip to content

Commit

Permalink
[req-changes] Added EAP configuration in the test playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed May 24, 2024
1 parent 6ad58a1 commit 098b58d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions molecule/resources/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions molecule/resources/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 098b58d

Please sign in to comment.