suvallur / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Support additional transports #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This library is pretty cool. I only wish it was usable in unit tests that take 
advantage of vm transports. For example, CXF allows rest services to be exposed 
over a local transport. 

Original issue reported on code.google.com by torr0...@gmail.com on 14 Dec 2012 at 5:54

GoogleCodeExporter commented 9 years ago
What do you mean by other transports? Do you mean for example VM pipes etc?

Original comment by johan.ha...@gmail.com on 17 Dec 2012 at 11:30

GoogleCodeExporter commented 9 years ago
I mean providing a means to handle different transport protocols vs the message 
contents. I specifically referenced CXF which has a pluggable transport system 
(http://cxf.apache.org/docs/custom-transport.html). One of which is a local VM 
transport that aids testing without having to spin up an HTTP server. Many/most 
ESBs also provide various protocols for moving messages around.

The crux of this issue, IMHO, is that rest-assured relies on Apache's HTTP 
components. Correct me if I'm wrong, I didn't do a deep dive on the code. 
Therefore, it is tied to HTTP. Abstracting this bit might expand the use cases 
that rest-assured could be applied to. The rest-assured DSL is terrifically 
readable. It would be great to be able to handle multiple protocols using it.

It is certainly true that HTTP over TCP/IP is almost always the protocol for 
rest messages. ESBs, CXF, as well as other frameworks provide message agnostic, 
pluggable, protocols for rest messages to travel over. While I do not assume 
that it is the responsibility of the rest-assured project to implement a 
CXF-local transport specific implementation, it would be phenomenal to abstract 
the transport details so that others (myself included) could provide means to 
connect to VM, JMS, etc. endpoints using REST messages.

Original comment by torr0...@gmail.com on 17 Dec 2012 at 2:46

GoogleCodeExporter commented 9 years ago
While this is a good idea it'll require a massive rewrite and I can't see 
myself finding the time needed to do so in a foreseeable future. If you want to 
help out with this please feel free to do so and I'll assist you in anyway I 
can. REST Assured was designed for HTTP only (which IS misleading I know).

Original comment by johan.ha...@gmail.com on 17 Dec 2012 at 3:09

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 22 Jan 2014 at 10:00