From 68238494e53020e1c7cd856d95124abe834a1513 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Mon, 16 Mar 2020 13:35:12 +0100 Subject: [PATCH] Refactoring Auth Tests --- .idea/runConfigurations/Auth_Tests.xml | 24 ++++++++++++++++++++++++ src/test/resources/feature/auth.feature | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .idea/runConfigurations/Auth_Tests.xml diff --git a/.idea/runConfigurations/Auth_Tests.xml b/.idea/runConfigurations/Auth_Tests.xml new file mode 100644 index 0000000..21c536b --- /dev/null +++ b/.idea/runConfigurations/Auth_Tests.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/feature/auth.feature b/src/test/resources/feature/auth.feature index 199d490..9ff7e3e 100644 --- a/src/test/resources/feature/auth.feature +++ b/src/test/resources/feature/auth.feature @@ -1,3 +1,4 @@ +@auth Feature: Auth routes Scenario: The route for create citizen must response a 200 and return object @@ -34,10 +35,11 @@ Feature: Auth routes Then the response status code should be 400 Scenario: The route for create citizen must response a 200 and return object + Given I have citizen Niels Bohr When I send a POST request to "/login" with body: """ { - "name": "username-1", + "name": "niels-bohr", "password": "azerty" } """