Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Oct 25, 2023
1 parent 2a7450d commit ef16439
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions server/features/mgmt_api_companies.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]",
"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": "[email protected]",
"phone": "99999999"
}
]
}
"""

0 comments on commit ef16439

Please sign in to comment.