Giter Club home page Giter Club logo

api-test-suite's People

Contributors

dependabot[bot] avatar dougreeder avatar ebrahim-elgaml avatar galfert avatar gregkare avatar michielbdejong avatar raucao avatar untitaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-test-suite's Issues

Test hash characters in URIs

I get 404s from liquor-cabinet when trying to request a URI containing # characters, which I encoded in JS using encodeURI().

Introduce spec version helpers and test features by version

The change introduced in #36 made the current suite incompatible with servers using spec versions <06, although most servers haven't upgraded to that yet. I think we should introduce some kind of helper that we can use around tests in order to only test what is valid for the server the suite is run for.

add CORS check for 304 response

Some web servers, including it seems Apache in Fedora 22 do not set CORS headers on responses with a 304, e.g.:

$ curl -k -H 'If-None-Match: "1:c8ec8b42d2f03ce91d1ab7390ef56db5"' -I https://storage.tuxed.net/php-remote-storage/foo/public/shares/151019-1755-20150201_162437.jpg
HTTP/1.1 304 Not Modified
Date: Mon, 19 Oct 2015 18:13:03 GMT
Server: Apache/2.4.16 (Fedora) OpenSSL/1.0.1k-fips PHP/5.6.14
Etag: "1:c8ec8b42d2f03ce91d1ab7390ef56db5"

add tests for urlencoded characters

Assertions:

  • that special characters are not urlencoded in folder listing
  • that they are correctly handled for GET/PUT to a file
  • maybe that nullbytes in node names are rejected?
  • that arbitrary bytes work in files

cc @fkooman @skddc

Add warnings for technically incorrect status codes

Continuing #38


See https://tools.ietf.org/html/rfc7231#section-4.3.4

Money quote:

If the target resource does not have a current representation and the
PUT successfully creates one, then the origin server MUST inform the
user agent by sending a 201 (Created) response.  If the target
resource does have a current representation and that representation
is successfully modified in accordance with the state of the enclosed
representation, then the origin server MUST send either a 200 (OK) or
a 204 (No Content) response to indicate successful completion of the
request.

PUT to root

Must fail with normal token, succeed with root token.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.