name: Restart pfsso service
testcases:
- name: get_login_token
  steps:
  - type: get_login_token

- name: restart_pfsso_service
  steps:
  - type: http
    method: POST
    url: '{{.pfserver_webadmin_url}}/api/v1/service/pfsso/restart'
    ignore_verify_ssl: true
    headers:
      "Authorization": "{{.get_login_token.json.result.token}}"
      "Content-Type": "application/json"
    assertions:
      - result.statuscode ShouldEqual 200