Skip to content

Commit

Permalink
robot.test if type is a string in route,internal,custom
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Nov 7, 2023
1 parent 88781dd commit 9612ab9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/20_traefik_certificates_api.robot
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Get invalid cerficate status
${response} = Run task module/traefik1/get-certificate {"fqdn": "example.com"}
Should Be Equal As Strings ${response['fqdn']} example.com
Should Be Equal As Strings ${response['obtained']} False
Should Be String ${response['type']}
Should Be In ${response['type']} route internal custom

Get certificate list
${response} = Run task module/traefik1/list-certificates null
Expand All @@ -35,6 +37,8 @@ Get expanded certificate list
${response} = Run task module/traefik1/list-certificates {"expand_list": true}
Should Be Equal As Strings ${response[0]['fqdn']} example.com
Should Be Equal As Strings ${response[0]['obtained']} False
Should Be String ${response['type']}
Should Be In ${response['type']} route internal custom

Delete certificate
Run task module/traefik1/delete-certificate {"fqdn": "example.com"}
Expand Down

0 comments on commit 9612ab9

Please sign in to comment.