[TASK] add more product to testdata
This commit is contained in:
parent
cb7396061c
commit
0e068f1c4c
|
@ -86,7 +86,7 @@ func TestGetGoodAvailable(t *testing.T) {
|
|||
Comment: "blub",
|
||||
})
|
||||
|
||||
result, w = session.JSONRequest("GET", "/api/good/availablity/4", nil)
|
||||
result, w = session.JSONRequest("GET", "/api/good/availablity/7", nil)
|
||||
assertion.Equal(http.StatusNotFound, w.StatusCode)
|
||||
|
||||
test.CloseServer()
|
||||
|
|
|
@ -33,7 +33,7 @@ func TestAddGood(t *testing.T) {
|
|||
_, w = session.JSONRequest("POST", "/api/good/a", good)
|
||||
assertion.Equal(http.StatusNotAcceptable, w.StatusCode)
|
||||
|
||||
_, w = session.JSONRequest("POST", "/api/good/4", good)
|
||||
_, w = session.JSONRequest("POST", "/api/good/7", good)
|
||||
assertion.Equal(http.StatusNotFound, w.StatusCode)
|
||||
|
||||
_, w = session.JSONRequest("POST", "/api/good/1", good)
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"id": 4,
|
||||
"title": "Blueberry"
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"id": 5,
|
||||
"title": "Kaki"
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"id": 6,
|
||||
"title": "Kiwi"
|
||||
}
|
|
@ -1,5 +1,8 @@
|
|||
[
|
||||
{"id":1, "title": "Apple"},
|
||||
{"id":2, "title": "Pear"},
|
||||
{"id":3, "title": "Strawberry"}
|
||||
{"id":3, "title": "Strawberry"},
|
||||
{"id":4, "title": "Blueberry"},
|
||||
{"id":5, "title": "Kaki"},
|
||||
{"id":6, "title": "Kiwi"}
|
||||
]
|
||||
|
|
Reference in New Issue