Skip to content

Commit

Permalink
Issue GsDevKit#58: ZnExampleStorageRestServerDelegateTest>>testQuery …
Browse files Browse the repository at this point in the history
…passing
  • Loading branch information
dalehenrich committed Dec 1, 2014
1 parent 641db34 commit 7f47a99
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
testing
testQuery
"Any query parameters are seen as a conjunctive filter.
"Any query parameters are seen as a conjunctive filter.
Here we execute a GET /storage/object?string=five to find a entry where
the key 'string' equals 'five'. Note that the uri is returned."

| data objectUri |
client addPathSegment: 'objects'.
1 to: 10 do: [ :each |
data := Dictionary with: #int -> each with: #string -> each asWords.
client
contents: data;
post.
self assert: client isCreated ].
client resetEntity.
client
queryAt: #string put: 'five';
get.
self assert: client isSuccess.
objectUri := client contents first.
client
url: objectUri;
get.
self assert: client isSuccess.
self assert: (client contents at: #int) equals: 5
| data objectUri |
client addPathSegment: 'objects'.
1 to: 10 do: [ :each |
data := Dictionary with: #'int' -> each with: #'string' -> each asWords.
client
contents: data;
post.
self assert: client isCreated ].
client resetEntity.
client
queryAt: #'string' put: 'five';
get.
self assert: client isSuccess.
objectUri := client contents first.
client
url: objectUri;
get.
self assert: client isSuccess.
self assert: (client contents at: 'int') equals: 5
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"testCreate" : "dkh 11/17/2014 16:45",
"testDelete" : "SvenVanCaekenberghe 12/12/2012 10:26",
"testEmpty" : "SvenVanCaekenberghe 12/10/2012 21:25",
"testQuery" : "SvenVanCaekenberghe 12/12/2012 10:27",
"testQuery" : "dkh 11/30/2014 20:25",
"testUpdate" : "dkh 11/17/2014 16:46" } }
2 changes: 1 addition & 1 deletion repository/Zinc-REST.package/monticello.meta/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(name 'Zinc-REST-dkh.13' message 'Issue #63: remove ZnExampleStorageRestServerDelegateTest>>testQuery ... will be available soonish on the glass master branch' id 'f1306a45-b14b-4db6-92fb-65674d065274' date '11/20/2014' time '18:57:02' author 'dkh' ancestors ((name 'Zinc-REST-dkh.12' message 'Issue #60: NeoJSON loading from http://mc.stfx.eu/Neo, but REST tests were not all passing (Issue #63 records fact that ZnExampleStorageRestServerDelegateTest>>testQuery needs GsDevKit support)' id '253d799b-54aa-4140-b1ab-8668934dcf62' date '11/17/2014' time '16:53:42' author 'dkh' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.11' message 'Added better error logging when not in debug mode' id '64196d64-8689-4ece-b584-63ce2dff0097' date '06/21/2013' time '10:50:33' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.10' message 'remove ZnRestServerDelegate #debug and #server now using the new request server debugMode in #handleRequest' id 'fbbd8a10-ccca-4a5d-9589-5585010ea4be' date '01/10/2013' time '03:57:49' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.9' message 'added a class comment' id '85d90f74-b94c-488f-a8f3-4614a7f14471' date '12/23/2012' time '06:24:46' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.8' message 'tracking new ZnClient API' id '0e9babe6-b26b-44e1-b78f-ebe9ffe6c08c' date '12/12/2012' time '10:41:11' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.7' message 'created ZnJSONRestCall and ZnJSONRestServerDelegate (based on an internal project);added ZnExampleStorage full CRUD JSON Rest example with tests;improved comments' id '398013cb-b25e-4ca9-949f-5c3d62b1c463' date '12/10/2012' time '09:35:55' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.6' message 'first example/test in new Zinc-REST-Tests, ZnExampleSumRestCall[Test];modified ZnAutoMatchedRestCall to look at all subclasses including the root (which can be excluded with the new #isAbstract)' id '2989f3a0-160b-470a-bb14-20d14d241ba4' date '12/09/2012' time '07:59:52' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.5' message 'allow Strings as exceptions in ZnRestServerDelegate>>#serverError:exception:' id '9a035465-aea9-4b02-bd4b-d172dda21d23' date '06/21/2011' time '13:54:50' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.4' message 'modified #on: Error do: to #on: Exception do:' id '51230c65-bbe8-4df8-8c96-a40af0739591' date '06/17/2011' time '15:48:03' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.3' message 'code formatting' id '7af200f1-5069-4396-b289-06f741171373' date '06/16/2011' time '21:53:45' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.2' message 'fleshing out the initial design' id '72125502-95af-47d7-9654-8c69de4d1b71' date '06/16/2011' time '15:24:42' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.1' message 'Start of Zinc-REST-Server sub project;initial design/architecture' id '083c761d-83de-413c-ae2b-b0cca9ab96af' date '06/15/2011' time '16:35:54' author 'SvenVanCaekenberghe' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
(name 'Zinc-REST-dkh.14' message 'Issue #58: ZnExampleStorageRestServerDelegateTest>>testQuery passing' id '201fcdf5-d054-4e6b-b2a4-6f1e3371c049' date '11/30/2014' time '20:26:38' author 'dkh' ancestors ((name 'Zinc-REST-dkh.13' message 'Issue #63: remove ZnExampleStorageRestServerDelegateTest>>testQuery ... will be available soonish on the glass master branch' id 'f1306a45-b14b-4db6-92fb-65674d065274' date '11/20/2014' time '18:57:02' author 'dkh' ancestors ((name 'Zinc-REST-dkh.12' message 'Issue #60: NeoJSON loading from http://mc.stfx.eu/Neo, but REST tests were not all passing (Issue #63 records fact that ZnExampleStorageRestServerDelegateTest>>testQuery needs GsDevKit support)' id '253d799b-54aa-4140-b1ab-8668934dcf62' date '11/17/2014' time '16:53:42' author 'dkh' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.11' message 'Added better error logging when not in debug mode' id '64196d64-8689-4ece-b584-63ce2dff0097' date '06/21/2013' time '10:50:33' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.10' message 'remove ZnRestServerDelegate #debug and #server now using the new request server debugMode in #handleRequest' id 'fbbd8a10-ccca-4a5d-9589-5585010ea4be' date '01/10/2013' time '03:57:49' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.9' message 'added a class comment' id '85d90f74-b94c-488f-a8f3-4614a7f14471' date '12/23/2012' time '06:24:46' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.8' message 'tracking new ZnClient API' id '0e9babe6-b26b-44e1-b78f-ebe9ffe6c08c' date '12/12/2012' time '10:41:11' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.7' message 'created ZnJSONRestCall and ZnJSONRestServerDelegate (based on an internal project);added ZnExampleStorage full CRUD JSON Rest example with tests;improved comments' id '398013cb-b25e-4ca9-949f-5c3d62b1c463' date '12/10/2012' time '09:35:55' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.6' message 'first example/test in new Zinc-REST-Tests, ZnExampleSumRestCall[Test];modified ZnAutoMatchedRestCall to look at all subclasses including the root (which can be excluded with the new #isAbstract)' id '2989f3a0-160b-470a-bb14-20d14d241ba4' date '12/09/2012' time '07:59:52' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.5' message 'allow Strings as exceptions in ZnRestServerDelegate>>#serverError:exception:' id '9a035465-aea9-4b02-bd4b-d172dda21d23' date '06/21/2011' time '13:54:50' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.4' message 'modified #on: Error do: to #on: Exception do:' id '51230c65-bbe8-4df8-8c96-a40af0739591' date '06/17/2011' time '15:48:03' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.3' message 'code formatting' id '7af200f1-5069-4396-b289-06f741171373' date '06/16/2011' time '21:53:45' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.2' message 'fleshing out the initial design' id '72125502-95af-47d7-9654-8c69de4d1b71' date '06/16/2011' time '15:24:42' author 'SvenVanCaekenberghe' ancestors ((name 'Zinc-REST-SvenVanCaekenberghe.1' message 'Start of Zinc-REST-Server sub project;initial design/architecture' id '083c761d-83de-413c-ae2b-b0cca9ab96af' date '06/15/2011' time '16:35:54' author 'SvenVanCaekenberghe' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
Expand Down

0 comments on commit 7f47a99

Please sign in to comment.