From 9612ab9c844122c2976406f1fc9da1fb010e6410 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 7 Nov 2023 12:20:49 +0100 Subject: [PATCH] robot.test if type is a string in route,internal,custom --- tests/20_traefik_certificates_api.robot | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/20_traefik_certificates_api.robot b/tests/20_traefik_certificates_api.robot index c7dc7ab..c529458 100644 --- a/tests/20_traefik_certificates_api.robot +++ b/tests/20_traefik_certificates_api.robot @@ -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 @@ -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"}