-
-
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
sharness fixes - gateway and more #710
Conversation
@mappum does jenkins nor have |
LGTM, covers a nice amount of test cases |
Correct. Installing it is the best bet since wget doesn't support a lot of the stuff we need (e.g. |
doesnt rebase well so im going to squash everything |
- core: daemon stdout print to cmd + daemon init checks - core: fixed bug where the gateway was printed as "API" - sharness/test-lib: daemon init checks - sharness/test-lib: portable TCP port check - sharness/init: fix test bits output - sharness: use common hashes in one place. - move t0100-http-gateway -> t0111-gateway-writable - sharness: test-lib funcs for gateway config - sharness/t0111-gateway-writable: use sh funcs - sharness/t0111-gateway-writable: fixes - escape all vars (always `cmd "$VAR"` never `cmd $VAR`) - use $FILEPATH, not $path - last test seems to fail
Not sure why this fd redirect was here. Is it necessary? Tests seem to pass for me. cc @mildred
bd7996c
to
1dbe39b
Compare
Installing curl portably might be messy. maybe we should use a go tool like https://github.com/dgryski/gttp downside is maybe it wont have a nice curl feature... |
I want to move to doing all our installations from ipfs. that would be really nice. |
It also wastes resources (particularly testing time) to install every time. I'll install curl in jenkins for now and we can find a good way to install it if its not available later on. |
Ok... curl is installed. but somehow jenkins proc cant find it. |
Is curl installed on the "bare-metal" vm? (Jenkins runs in a docker container) |
sharness fixes - gateway and more
I wonder why my comments don't appear near the lines that I clicked on? |
PR #718 (test/sharness: improve t0111 using test_cmp) replaces "diff -u" with "test_cmp". |
sharness fixes - gateway and more This commit was moved from ipfs/kubo@282be4f
lib/test-lib-hashes.sh
t0110-gateway.sh
re portst0100-gateway-http.sh -> t0110-gateway-writable.sh
ss
not everywhere)cmd "$VAR"
. never'cmd $VAR'
)$path
(sometimes conflicts with some user define paths)t0111-gateway-writable.sh
passes.cc: