Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
34ade520
Unverified
提交
34ade520
authored
12月 15, 2017
作者:
Whyrusleeping
提交者:
GitHub
12月 15, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4482 from ipfs/fix/fix-sharness-loops
fix loops in sharness tests to fail the test if the inner command fails
上级
9db5471e
6bd524fa
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
33 行增加
和
7 行删除
+33
-7
root.go
core/commands/root.go
+0
-1
t0082-repo-gc-auto.sh
test/sharness/t0082-repo-gc-auto.sh
+1
-1
t0110-gateway.sh
test/sharness/t0110-gateway.sh
+31
-4
t0250-files-api.sh
test/sharness/t0250-files-api.sh
+1
-1
没有找到文件。
core/commands/root.go
浏览文件 @
34ade520
...
...
@@ -171,7 +171,6 @@ var rootROOldSubcommands = map[string]*oldcmds.Command{
"links"
:
ocmd
.
ObjectLinksCmd
,
"get"
:
ocmd
.
ObjectGetCmd
,
"stat"
:
ocmd
.
ObjectStatCmd
,
"patch"
:
ocmd
.
ObjectPatchCmd
,
},
},
"dag"
:
&
oldcmds
.
Command
{
...
...
test/sharness/t0082-repo-gc-auto.sh
浏览文件 @
34ade520
...
...
@@ -65,7 +65,7 @@ test_gc() {
test_expect_success
"periodic auto gc stress test"
'
for i in $(test_seq 1 20)
do
test_gc
test_gc
|| return 1
done
'
...
...
test/sharness/t0110-gateway.sh
浏览文件 @
34ade520
...
...
@@ -139,11 +139,38 @@ 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
\
block/put
\
bootstrap
\
config
\
dht
\
diag
\
id
\
mount
\
name/publish
\
object/put
\
object/new
\
object/patch
\
pin
\
ping
\
repo
\
stats
\
swarm
\
file
\
update
\
bitswap
do
test_expect_success
"test gateway api is sanitized:
$cmd
"
'
test_curl_resp_http_code "http://127.0.0.1:$port/api/v0/$cmd" "HTTP/1.1 404 Not Found"
done
'
'
done
# This one is different. `local` will be interpreted as a path if the command isn't defined.
test_expect_success
"test gateway api is sanitized: refs/local"
'
echo "Error: invalid '
"'ipfs ref'"
' path" > refs_local_expected &&
! ipfs --api /ip4/127.0.0.1/tcp/$port refs local > refs_local_actual 2>&1 &&
test_cmp refs_local_expected refs_local_actual
'
test_expect_success
"create raw-leaves node"
'
echo "This is RAW!" > rfile &&
...
...
test/sharness/t0250-files-api.sh
浏览文件 @
34ade520
...
...
@@ -58,7 +58,7 @@ test_sharding() {
printf "" > list_exp_raw
for i in `seq 100`
do
echo $i | ipfs files write --create /foo/file$i
echo $i | ipfs files write --create /foo/file$i
|| return 1
echo file$i >> list_exp_raw
done
'
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论