mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 19:24:14 +08:00
Add test to prevent future regressions
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
11
test/sharness/t0500-issues-and-regressions-offline.sh
Executable file
11
test/sharness/t0500-issues-and-regressions-offline.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
test_description="Tests for various fxed issues and regressions."
|
||||||
|
|
||||||
|
. lib/test-lib.sh
|
||||||
|
|
||||||
|
test_init_ipfs
|
||||||
|
|
||||||
|
# Tests go here
|
||||||
|
|
||||||
|
test_done
|
20
test/sharness/t0501-issues-and-regressions-online.sh
Executable file
20
test/sharness/t0501-issues-and-regressions-online.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
test_description="Tests for various fxed issues and regressions."
|
||||||
|
|
||||||
|
. lib/test-lib.sh
|
||||||
|
|
||||||
|
test_init_ipfs
|
||||||
|
|
||||||
|
test_launch_ipfs_daemon
|
||||||
|
|
||||||
|
# Tests go here
|
||||||
|
|
||||||
|
test_expect_sucess "commands command with flag flags works via HTTP API - #2301" '
|
||||||
|
curl "http://$API_ADDR/api/v0/commands?flags" | grep "verbose"
|
||||||
|
'
|
||||||
|
|
||||||
|
test_kill_ipfs_daemon
|
||||||
|
|
||||||
|
test_done
|
||||||
|
|
Reference in New Issue
Block a user