Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for readonly gateway api sanitation #1587

Merged
merged 1 commit into from
Aug 19, 2015

Conversation

rht
Copy link
Contributor

@rht rht commented Aug 17, 2015

No description provided.

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
@jbenet jbenet added the status/in-progress In progress label Aug 17, 2015
@whyrusleeping
Copy link
Member

👍


test_expect_success "test gateway api is sanitized" '
for cmd in "add" "block/put" "bootstrap" "config" "dht" "diag" "dns" "get" "id" "mount" "name/publish" "object/put" "object/new" "object/patch" "pin" "ping" "refs/local" "repo" "resolve" "stats" "swarm" "tour" "file" "update" "version" "bitswap"; do
test_curl_resp_http_code "http://127.0.0.1:$port/api/v0/$cmd" "HTTP/1.1 404 Not Found"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice test!

jbenet added a commit that referenced this pull request Aug 19, 2015
Add test for readonly gateway api sanitation
@jbenet jbenet merged commit d1dd53b into ipfs:master Aug 19, 2015
@jbenet jbenet removed the status/in-progress In progress label Aug 19, 2015
@jbenet
Copy link
Member

jbenet commented Aug 19, 2015

LGTM merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants