Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 36d5866

Browse files
authored
Merge pull request #841 from SAP-samples/bookshop-tests
Fix: adjust IDs and size of Genre objects for testing
2 parents 600afb7 + f825220 commit 36d5866

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

bookshop/test/genres.http

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,24 @@ GET http://localhost:4004/odata/v4/test/Genres?
1414
POST http://localhost:4004/odata/v4/test/Genres?
1515
Content-Type: application/json
1616

17-
{ "ID":100, "name":"Some Sample Genres...", "children":[
18-
{ "ID":101, "name":"Cat", "children":[
19-
{ "ID":102, "name":"Kitty", "children":[
20-
{ "ID":103, "name":"Kitty Cat", "children":[
21-
{ "ID":104, "name":"Aristocat" } ]},
22-
{ "ID":105, "name":"Kitty Bat" } ]},
23-
{ "ID":106, "name":"Catwoman", "children":[
24-
{ "ID":107, "name":"Catalina" } ]} ]},
25-
{ "ID":108, "name":"Catweazle" }
17+
{ "ID":"100aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Some Sample Genres...", "children":[
18+
{ "ID":"101aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Cat", "children":[
19+
{ "ID":"102aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Kitty", "children":[
20+
{ "ID":"103aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Aristocat" },
21+
{ "ID":"104aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Kitty Bat" } ]},
22+
{ "ID":"105aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Catwoman", "children":[
23+
{ "ID":"106aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Catalina" } ]} ]},
24+
{ "ID":"107aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "name":"Catweazle" }
2625
]}
2726
###
2827

29-
GET http://localhost:4004/odata/v4/test/Genres(100)?
30-
# &$expand=children
31-
# &$expand=children($expand=children($expand=children($expand=children)))
28+
GET http://localhost:4004/odata/v4/test/Genres(100aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa)?
29+
&$expand=children
30+
&$expand=children($expand=children($expand=children($expand=children)))
3231
###
3332

34-
DELETE http://localhost:4004/odata/v4/test/Genres(103)
33+
DELETE http://localhost:4004/odata/v4/test/Genres(103aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa)
3534
###
3635

37-
DELETE http://localhost:4004/odata/v4/test/Genres(100)
36+
DELETE http://localhost:4004/odata/v4/test/Genres(100aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa)
3837
###

bookshop/test/requests.http

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ Authorization: Basic alice:
4040

4141
{
4242
"ID": 112,
43-
"name": "Shakespeeeeere",
44-
"age": 22
43+
"name": "Shakespeeeeere"
4544
}
4645

4746

@@ -56,7 +55,7 @@ Authorization: Basic alice:
5655
"title": "Poems : Pocket Poets",
5756
"descr": "The Everyman's Library Pocket Poets hardcover series is popular for its compact size and reasonable price which does not compromise content. Poems: Bronte contains poems that demonstrate a sensibility elemental in its force with an imaginative discipline and flexibility of the highest order. Also included are an Editor's Note and an index of first lines.",
5857
"author": { "ID": 101 },
59-
"genre": { "ID": 12 },
58+
"genre": { "ID": "12aaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" },
6059
"stock": 5,
6160
"price": "12.05",
6261
"currency": { "code": "USD" }

0 commit comments

Comments
 (0)