When as user 'None:None' I GET 'http://127.0.0.1:8085/customer'
Then I expect HTTP code 200
...
...
@@ -24,19 +24,19 @@ Feature: REST App
"""
[
{
"addresses": [],
"addresses": {},
"customerId": "d2",
"firstName": "John",
"lastName": "Doe2"
},
{
"addresses": [],
"addresses": {},
"customerId": "d3",
"firstName": "John",
"lastName": "Doe3"
},
{
"addresses": [],
"addresses": {},
"customerId": "d1",
"firstName": "John",
"lastName": "Doe1"
...
...
@@ -51,7 +51,7 @@ Feature: REST App
And I expect JSON content
"""
{
"addresses": [],
"addresses": {},
"customerId": "c1",
"firstName": "John",
"lastName": "Doe"
...
...
@@ -65,7 +65,7 @@ Feature: REST App
And I expect JSON content
"""
{
"addresses": [],
"addresses": {},
"customerId": "c1",
"firstName": "Jill",
"lastName": "Jones"
...
...
@@ -86,3 +86,26 @@ Feature: REST App
[]
"""
@customer_address
Scenario: Full Customer Address lifecycle
When as user 'None:None' I GET 'http://127.0.0.1:8085/customer/d1/address'
Then I expect HTTP code 200
And I expect JSON content
"""
{}
"""
# add 1
When as user 'None:None' I POST 'http://127.0.0.1:8085/customer/d1/address'with'addressId=HOME&streetNumber=100&streetName=MyStreet&stateCode=CA&countryCode=US'
Then I expect HTTP code 201
When as user 'None:None' I GET 'http://127.0.0.1:8085/customer/d1/address/HOME'