When as user 'None:None' I GET 'http://127.0.0.1:8085/customer'
When as user 'None:None' I GET 'http://127.0.0.1:8085/customer'
Then I expect HTTP code 200
Then I expect HTTP code 200
...
@@ -24,19 +24,19 @@ Feature: REST App
...
@@ -24,19 +24,19 @@ Feature: REST App
"""
"""
[
[
{
{
"addresses": [],
"addresses": {},
"customerId": "d2",
"customerId": "d2",
"firstName": "John",
"firstName": "John",
"lastName": "Doe2"
"lastName": "Doe2"
},
},
{
{
"addresses": [],
"addresses": {},
"customerId": "d3",
"customerId": "d3",
"firstName": "John",
"firstName": "John",
"lastName": "Doe3"
"lastName": "Doe3"
},
},
{
{
"addresses": [],
"addresses": {},
"customerId": "d1",
"customerId": "d1",
"firstName": "John",
"firstName": "John",
"lastName": "Doe1"
"lastName": "Doe1"
...
@@ -51,7 +51,7 @@ Feature: REST App
...
@@ -51,7 +51,7 @@ Feature: REST App
And I expect JSON content
And I expect JSON content
"""
"""
{
{
"addresses": [],
"addresses": {},
"customerId": "c1",
"customerId": "c1",
"firstName": "John",
"firstName": "John",
"lastName": "Doe"
"lastName": "Doe"
...
@@ -65,7 +65,7 @@ Feature: REST App
...
@@ -65,7 +65,7 @@ Feature: REST App
And I expect JSON content
And I expect JSON content
"""
"""
{
{
"addresses": [],
"addresses": {},
"customerId": "c1",
"customerId": "c1",
"firstName": "Jill",
"firstName": "Jill",
"lastName": "Jones"
"lastName": "Jones"
...
@@ -85,4 +85,27 @@ Feature: REST App
...
@@ -85,4 +85,27 @@ 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'