-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix loops in sharness tests to fail the test if the inner command fails #4482
Conversation
ea49e65
to
9c3af80
Compare
@@ -171,7 +171,6 @@ var rootROOldSubcommands = map[string]*oldcmds.Command{ | |||
"links": ocmd.ObjectLinksCmd, | |||
"get": ocmd.ObjectGetCmd, | |||
"stat": ocmd.ObjectStatCmd, | |||
"patch": ocmd.ObjectPatchCmd, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
@@ -139,11 +139,32 @@ test_expect_success "refs IPFS directory file through readonly API succeeds" ' | |||
test_curl_gateway_api "refs?arg=$HASH2/test" | |||
' | |||
|
|||
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" "file" "update" "version" "bitswap"; do | |||
for cmd in add \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed get
, version
, resolve
, and dns
as these are now exposed on the gateway.
You have angered the CI gods. You must now pay a penance |
@whyrusleeping that was intentional, these tests are now broken. |
@Stebalien don't break tests. Thats considered a bad thing. |
You could probably just delete the tests that are failing. |
@whyrusleeping the tests will be fixed after merging #4453. I opened this so I don't forget to fix them. I could have fixed them there but that PR keeps on changing and getting pushed back so I figured I'd reduce the noise and make a separate PR (blocked on it). |
This was hiding errors. License: MIT Signed-off-by: Steven Allen <[email protected]>
License: MIT Signed-off-by: Steven Allen <[email protected]>
This was discussed [here][1] but ignored. [1]: bfff3fa#r15654625 License: MIT Signed-off-by: Steven Allen <[email protected]>
9c3af80
to
958add6
Compare
License: MIT Signed-off-by: Steven Allen <[email protected]>
We expect it to return a command error, not a 404, because `local` will be interpreted as a path. License: MIT Signed-off-by: Steven Allen <[email protected]>
Test failure was #4494 |
This was hiding errors.
Blocked on: #4453