name: Restart RADIUS services
version: 2
testcases:
- name: restart_radius_services
  steps:
  - type: http
    method: POST
    url: '{{.pfserver_webadmin_url}}/api/v1/service/radiusd-auth/restart'
    ignore_verify_ssl: true
    headers:
      "Authorization": "{{.pfserver_token}}"
      "Content-Type": "application/json"
    assertions:
      - result.statuscode ShouldEqual 200

  - type: http
    method: POST
    url: '{{.pfserver_webadmin_url}}/api/v1/service/pfacct/restart'
    ignore_verify_ssl: true
    headers:
      "Authorization": "{{.pfserver_token}}"
      "Content-Type": "application/json"
    assertions:
      - result.statuscode ShouldEqual 200
