From ef164391e6d6bfb48d1f30668666fbc5275b7ff6 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Wed, 25 Oct 2023 14:30:12 +0530 Subject: [PATCH] update test --- server/features/mgmt_api_companies.feature | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/server/features/mgmt_api_companies.feature b/server/features/mgmt_api_companies.feature index 0ab4d9b..c13cf8d 100644 --- a/server/features/mgmt_api_companies.feature +++ b/server/features/mgmt_api_companies.feature @@ -52,3 +52,33 @@ Feature: Management API - Companies """ {"name": "xyz company"} """ + + Scenario: Create a company with default country + Given empty "companies" + When we post to "/companies" + """ + { + "name": "zzz company", + "contact_name": "zzz company", + "contact_email": "contact@zzz.com", + "phone": "99999999" + } + """ + Then we get response code 201 + When we get "/companies" + Then we get existing resource + """ + { + "_items" : + [ + { + "name": "zzz company", + "contact_name": "zzz company", + "country": "CAN", + "contact_email": "contact@zzz.com", + "phone": "99999999" + } + ] + } + """ + \ No newline at end of file