greptilian logo

IRC log for #rest, 2015-07-08

#rest on freenode has been logged here from May 2014 until end of July 2018 but logging has been suspended because the channel has been riddled with spam since August 2018 with no end in site. See the following blog posts about the problem:

Until the spam problem has been dealt with and logging can resume, please visit our wiki at https://trygvis.io/rest-wiki/

Thanks.

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:19 fuzzyhorns joined #rest
01:57 fuzzyhorns joined #rest
02:06 fuzzyhorns joined #rest
02:21 wsiqueir joined #rest
02:22 fuzzyhorns joined #rest
02:52 baweaver joined #rest
02:55 fumanchu joined #rest
03:25 fuzzyhorns joined #rest
03:57 huckleberry78 joined #rest
04:06 fearnothing joined #rest
06:51 huckleberry78 joined #rest
07:34 graste joined #rest
07:43 fumanchu joined #rest
08:05 fumanchu joined #rest
08:34 interop_madness joined #rest
08:50 quimrstorres joined #rest
09:22 quimrstorres joined #rest
09:24 quimrstorres joined #rest
09:46 quimrstorres joined #rest
09:48 prologic left #rest
10:58 quimrstorres joined #rest
13:02 quimrstorres joined #rest
13:29 Coldblackice joined #rest
13:50 wsiqueir joined #rest
14:03 quimrstorres joined #rest
14:08 quimrstorres joined #rest
14:34 Coldblackice joined #rest
14:46 mgomezch joined #rest
15:06 bigbluehat what's the current favorite for localhost-friendly HTTP API testing?
15:10 saml load test?
15:11 fumanchu code
15:13 saml joined #rest
15:13 bigbluehat code
15:14 bigbluehat seems each of the three (major) documentation players all have testing libraries
15:14 bigbluehat but was hoping for just some basic assert style stuff--without having to do all the boilerplate
15:15 bigbluehat I'm writing an implementation of this http://www.w3.org/TR/annotation-protocol/
15:16 bigbluehat and mostly want to confirm that I'm doing all the MUSTs and such ;)
15:18 bigbluehat guessing it looks like a) document the API and b) test it with Dredd (or similar)
15:18 bigbluehat 'spose that's not too bad ;)
15:20 fumanchu here, we have a couple of client libs for folks who want to use our HTTP API via Python, JS, or R. We actually use the Python client to write all tests for the HTTP API.
15:20 fumanchu but there's no notion of "automatically detect endpoints, methods, and payloads" -- it's just too complex for that
15:21 bigbluehat yeah...at this point whatever I pick doesn't have to be too smart
15:21 bigbluehat just assert basic things per request
15:21 bigbluehat like "has this header" "is JSON" "includes this key" etc
15:22 fumanchu in CherryPy, I included a "webtest.py" module which extends Python xUnit TestCase class with assertStatus, assertHeader, assertBody
15:22 fumanchu pretty simple
15:22 bigbluehat neat idea.
15:22 bigbluehat ...so many ways to do the same thing...as always :)
15:23 fumanchu true :)
15:23 bigbluehat fumanchu: is that code available anywhere I can see? ;)
15:23 bigbluehat fine if not
15:23 bigbluehat just askin'
15:23 fumanchu sure
15:23 fumanchu here's the CP webtest.py: https://bitbucket.org/cherrypy/cherrypy/src/tip/cherrypy/test/webtest.py?at=default
15:24 fumanchu and here's pycrunch, our Python client for work: https://github.com/Crunch-io/pycrunch/blob/master/pycrunch
15:25 fumanchu "lemonpy" has the basic wrapper around the ubiquitous "requests" library
15:25 fumanchu "elements.py" is our extended JSON parser
15:26 fumanchu and "shoji.py" uses that to auto-parse the Shoji media type
15:26 bigbluehat great stuff fumanchu ! tnx :D
15:34 bigbluehat ...this is really compelling http://dredd.readthedocs.org/en/latest/quickstart/
15:34 bigbluehat if it would only stay that simple ;)
15:37 fumanchu oh, node. I prefer to test sites that have latency SLA's.
15:37 fumanchu :P
15:38 pdurbin bigbluehat: I like https://github.com/jayway/rest-assured
15:41 fumanchu hahaha
15:41 fumanchu http://blog.apiary.io/2013/10/17/How-to-test-api-with-api-blueprint-and-dredd/
15:41 fumanchu bash!
15:41 fumanchu with sleep!
15:41 fumanchu better and better
15:44 bigbluehat fumanchu: +1 for bash
15:44 bigbluehat I'm not in a place where I need to test the hosted code, latency, etc. just the messages
15:45 bigbluehat pdurbin: nice link! I like the way that reads for sure
15:46 pdurbin bigbluehat: I'm using it here: https://github.com/IQSS/dataverse/blob/master/src/test/java/edu/harvard/iq/dataverse/api/SearchIT.java
15:47 bigbluehat the install steps are pretty daunting...
15:48 pdurbin for rest-assured? you just add it to you pom.xml
15:48 bigbluehat pdurbin: great example, though
15:48 bigbluehat except I don't have a pom.xml :)
15:48 pdurbin oh
15:48 bigbluehat http://github.com/BigBlueHat/ldp-on-couchdb
15:48 bigbluehat just some JS for CouchDB at the moment
15:48 pdurbin bigbluehat: here's a standalone version: https://github.com/IQSS/dataverse-apitester
15:48 bigbluehat there's a package.json file only 'cause I use some node.js stuff to push things into couchdb
15:49 bigbluehat pdurbin: those tests are a good easy read
15:49 bigbluehat ...hrm...decisions :-P
15:49 daxim joined #rest
15:49 pdurbin :)
16:03 baweaver joined #rest
18:08 quimrstorres joined #rest
18:09 quimrstorres joined #rest
20:05 huckleberry78 joined #rest
20:14 mgomezch joined #rest
21:29 quimrstorres joined #rest
22:12 Coldblackice joined #rest
22:57 rickharrison joined #rest
22:58 FreezingDroid joined #rest
23:11 quimrstorres joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

#rest on freenode has been logged here from May 2014 until end of July 2018 but logging has been suspended because the channel has been riddled with spam since August 2018 with no end in site. See the following blog posts about the problem:

Until the spam problem has been dealt with and logging can resume, please visit our wiki at https://trygvis.io/rest-wiki/

Thanks.