Towards Conformance Testing of REST-based Web Services

Luigi Lo Iacono, Hoai Viet Nguyen

Abstract

Despite the lack of standardisation for building REST-ful HTTP applications, the deployment of REST-based Web Services has attracted an increased interest. This gap causes, however, an ambiguous interpretation of REST and induces the design and implementation of REST-based systems following proprietary approaches instead of clear and agreed upon definitions. Issues arising from these shortcomings have an influence on service properties such as the loose coupling of REST-based services via a unitary service contract and the automatic generation of code. To overcome such limitations, at least two prerequisites are required: the availability of specifications for implementing REST-based services and auxiliaries for auditing the compliance of those services with such specifications. This paper introduces an approach for conformance testing of REST-based Web Services. This appears conflicting at the first glance, since there are no specifications available for implementing REST by, e.g., the prevalent technology set HTTP/URI to test against. Still, by providing a conformance test tool and leaning it on the current practice, the exploration of service properties is enabled. Moreover, the real demand for standardisation gets explorable by such an approach. First investigations conducted with the developed conformance test system targeting major Cloud-based storage services expose inconsistencies in many respects which emphasizes the necessity for further research and standardisation.

References

  1. Amazon (2014). Authenticating Requests in BrowserBased Uploads Using POST (AWS Signature Version 4). http://docs.aws.amazon.com/AmazonS3/latest/ API/sigv4-UsingHTTPPOST.html.
  2. Amundsen, M. (2014). Hold Your Nose vs. Follow Your Nose, Observations on the state of service description on the Web. In 5th International Workshop on Web APIs and RESTful Design (WS-REST).
  3. Bennara, M., Mrissa, M., and Amghar, Y. (2014). An Approach for Composing RESTful Linked Services on the Web. In 5th International Workshop on Web APIs and RESTful Design (WS-REST).
  4. Berners-Lee, T., Fielding, R., and Masinter, L. (2005). Uniform Resource Identifier (URI): Generic Syntax. RFC 3986, IETF. http://www.ietf.org/rfc/rfc3986.txt.
  5. Dusseault, L. and Snell, J. (2010). PATCH Method for HTTP. RFC 5789, IETF. https://tools.ietf.org/ html/rfc5789.
  6. Dustdar, S., Guo, Y., Satzger, B., and Truong, H.-L. (2011). Principles of elastic processes. IEEE Internet Computing, 15(5).
  7. Elia, I. A., Laranjeiro, N., and Vieira, M. (2014). A Field Perspective on the Interoperability of Web Services. In 11th IEEE International Conference on Services Computing (SCC).
  8. Erl, T., Carlyle, B., Pautasso, C., and Balasubramanian, R. (2013). SOA with REST - Principles, Patterns and Constraints for Building Enterprise Solutions with REST. Pearson Education.
  9. Fielding, R. (2000). Architectural Styles and the Design of Network-based Software Architectures. PhD thesis, University of California, Irvine. https:// www.ics.uci.edu/ fielding/pubs/dissertation/top.htm.
  10. Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., and Berners-Lee, T. (1999). Hypertext Transfer Protocol - HTTP/1.1. RFC 2616, IETF. http://www.ietf.org/rfc/rfc2616.txt.
  11. Fielding, R. and Reschke, J. (2014). Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content. RFC 7231, IETF. http://tools.ietf.org/html/rfc7231.
  12. Google (2014). Google Cloud Storage - API Reference. https://developers.google.com/storage/docs/ json api/v1/.
  13. Gorski, P. L., Lo Iacono, L., Nguyen, H. V., and Torkian, D. B. (2014a). Service Security Revisited. In 11th IEEE International Conference on Services Computing (SCC).
  14. Gorski, P. L., Lo Iacono, L., Nguyen, H. V., and Torkian, D. B. (2014b). SOA-Readiness of REST. In 3rd European Conference on Service-Oriented and Cloud Computing (ESOCC).
  15. Gregorio, J., Fielding, R., Hadley, M., Nottingham, M., and Orchard, D. (2012). URI Template. RFC 6570, IETF. http://tools.ietf.org/html/rfc6570.
  16. Gudgin, M., Hadley, M., Mendelsohn, N., Moreau, J.- J., Nielsen, H. F., Karmarkar, A., and Lafon, Y. (2007). SOAP Version 1.2 Part 1: Messaging Framework (Second Edition). Recommendation, W3C. http://www.w3.org/TR/soap12-part1/.
  17. Hewlett-Packard (2014). HP Helion Public Cloud Object Storage API Specification. https://docs.hpcloud.com/ api/object-storage#4.RESTAPISpecifications.
  18. Microsoft (2014). Microsoft Developer Network - Blob Service REST API. http://msdn.microsoft.com/ en-us/library/dd135733.aspx.
  19. Nottingham, M. (2010). Web Linking. RFC 5988, IETF. https://tools.ietf.org/html/rfc5988.
  20. Postdot Technologies (2014). Postman. http:// www.getpostman.com/.
  21. Psztyc, P. (2014). Advanced REST Client. http:// chromerestclient.appspot.com/.
  22. Sarid, U., Hervery, M., Lazarov, I., Rexer, P., Harnon, J., Lane, K., Musser, J., Gullotta, T., and Choudhary, S. (2014). RAML Version 0.8: RESTful API Modeling Language. Specification. http://raml.org/spec.html.
  23. SmartBear Software (2014). SoapUI. http:// www.soapui.org/REST-Testing/getting-started.html.
  24. Verborgh, R., Steiner, T., Van Deursen, D., De Roo, J., Van de Walle, R., and Gabarr├│ Vall├ęs, J. (2011). Description and Interaction of RESTful Services for Automatic Discovery and Execution. In Proceedings of the FTRA 2011 International Workshop on Advanced Future Multimedia Services (AFMS).
Download


Paper Citation


in Harvard Style

Lo Iacono L. and Nguyen H. (2015). Towards Conformance Testing of REST-based Web Services . In Proceedings of the 11th International Conference on Web Information Systems and Technologies - Volume 1: WEBIST, ISBN 978-989-758-106-9, pages 217-227. DOI: 10.5220/0005412202170227


in Bibtex Style

@conference{webist15,
author={Luigi Lo Iacono and Hoai Viet Nguyen},
title={Towards Conformance Testing of REST-based Web Services},
booktitle={Proceedings of the 11th International Conference on Web Information Systems and Technologies - Volume 1: WEBIST,},
year={2015},
pages={217-227},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0005412202170227},
isbn={978-989-758-106-9},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 11th International Conference on Web Information Systems and Technologies - Volume 1: WEBIST,
TI - Towards Conformance Testing of REST-based Web Services
SN - 978-989-758-106-9
AU - Lo Iacono L.
AU - Nguyen H.
PY - 2015
SP - 217
EP - 227
DO - 10.5220/0005412202170227