From f9c6a3bfee9d5d9dae9580d02f2751a46a6861a8 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Wed, 29 Apr 2020 03:50:26 +0200 Subject: [PATCH] fix tests --- .../087_read_and_write_posts_as_xml.log | 28 +++++++++---------- ...8_read_and_write_multiple_posts_as_xml.log | 8 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/functional/001_records/087_read_and_write_posts_as_xml.log b/tests/functional/001_records/087_read_and_write_posts_as_xml.log index 366ba03..c7f7134 100644 --- a/tests/functional/001_records/087_read_and_write_posts_as_xml.log +++ b/tests/functional/001_records/087_read_and_write_posts_as_xml.log @@ -12,61 +12,61 @@ GET /records/posts?limit=2 === 200 Content-Type: application/json -Content-Length: 134 +Content-Length: 690 -{"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]} +{"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"},{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"},{"id":7,"user_id":1,"category_id":1,"content":"#3"},{"id":8,"user_id":1,"category_id":1,"content":"#4"},{"id":9,"user_id":1,"category_id":1,"content":"#5"},{"id":10,"user_id":1,"category_id":1,"content":"#6"},{"id":11,"user_id":1,"category_id":1,"content":"#7"},{"id":12,"user_id":1,"category_id":1,"content":"#8"}]} === GET /records/posts?limit=2&format=xml === 200 Content-Type: text/xml -Content-Length: 296 +Content-Length: 1204 -111blog started212It works! +111blog started212🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте511#1611#2711#3811#4911#51011#61111#71211#8 === GET /records/posts/1?join=users&format=xml === 200 Content-Type: text/xml -Content-Length: 217 +Content-Length: 243 -11user1pass11blog started +11user1testtest2POINT(30 20)1blog started === GET /records/posts/1?join=users&join=comments,categories === 200 Content-Type: application/json -Content-Length: 321 +Content-Length: 335 -{"id":1,"user_id":{"id":1,"username":"user1","password":"pass1","location":null},"category_id":1,"content":"blog started","comments":[{"id":1,"post_id":1,"message":"great","category_id":{"id":3,"name":"comment","icon":null}},{"id":2,"post_id":1,"message":"fantastic","category_id":{"id":3,"name":"comment","icon":null}}]} +{"id":1,"user_id":{"id":1,"username":"user1","password":"testtest2","location":"POINT(30 20)"},"category_id":1,"content":"blog started","comments":[{"id":1,"post_id":1,"message":"great","category_id":{"id":3,"name":"comment","icon":null}},{"id":2,"post_id":1,"message":"fantastic","category_id":{"id":3,"name":"comment","icon":null}}]} === GET /records/posts/1?join=users&join=comments,categories&format=xml === 200 Content-Type: text/xml -Content-Length: 524 +Content-Length: 550 -11user1pass11blog started11great3comment21fantastic3comment +11user1testtest2POINT(30 20)1blog started11great3comment21fantastic3comment === GET /records/posts?page=2,1 === 200 Content-Type: application/json -Content-Length: 84 +Content-Length: 222 -{"records":[{"id":2,"user_id":1,"category_id":2,"content":"It works!"}],"results":2} +{"records":[{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}],"results":12} === GET /records/posts?page=2,1&format=xml === 200 Content-Type: text/xml -Content-Length: 210 +Content-Length: 348 -212It works!2 +212🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте12 === POST /records/posts?format=xml Content-Type: application/xml diff --git a/tests/functional/001_records/088_read_and_write_multiple_posts_as_xml.log b/tests/functional/001_records/088_read_and_write_multiple_posts_as_xml.log index 1cccacb..9055148 100644 --- a/tests/functional/001_records/088_read_and_write_multiple_posts_as_xml.log +++ b/tests/functional/001_records/088_read_and_write_multiple_posts_as_xml.log @@ -3,18 +3,18 @@ GET /records/posts/1,2 === 200 Content-Type: application/json -Content-Length: 122 +Content-Length: 259 -[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}] +[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}] === GET /records/posts/1,2?format=xml === 200 Content-Type: text/xml -Content-Length: 277 +Content-Length: 414 -111blog started212It works! +111blog started212🦀€ Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте === PUT /records/posts/1,2?format=xml