mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +08:00
test dialblocklist loading from config
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -33,6 +33,9 @@ test_swarm_filter_cmd() {
|
||||
|
||||
test_swarm_filters() {
|
||||
|
||||
# expect first address from config
|
||||
test_swarm_filter_cmd $AF1 $AF4
|
||||
|
||||
ipfs swarm filters rm all
|
||||
|
||||
test_swarm_filter_cmd
|
||||
@ -62,6 +65,10 @@ test_swarm_filters() {
|
||||
test_swarm_filter_cmd
|
||||
}
|
||||
|
||||
test_expect_success "adding addresses to the config to filter succeeds" '
|
||||
ipfs config --json DialBlocklist "[\"$AF1\", \"$AF4\"]"
|
||||
'
|
||||
|
||||
test_launch_ipfs_daemon
|
||||
|
||||
test_swarm_filters
|
||||
|
Reference in New Issue
Block a user