Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
e338ac0c
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e338ac0c
编写于
11月 13, 2019
作者:
T
Thomas Stromberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Double pod test waits
上级
00c33d0a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
test/integration/addons_test.go
test/integration/addons_test.go
+1
-1
test/integration/fn_mount_cmd.go
test/integration/fn_mount_cmd.go
+1
-1
test/integration/fn_pvc.go
test/integration/fn_pvc.go
+2
-2
test/integration/gvisor_addon_test.go
test/integration/gvisor_addon_test.go
+6
-6
未找到文件。
test/integration/addons_test.go
浏览文件 @
e338ac0c
...
...
@@ -107,7 +107,7 @@ func validateIngressAddon(ctx context.Context, t *testing.T, profile string) {
t
.
Errorf
(
"%s failed: %v"
,
rr
.
Args
,
err
)
}
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Fatalf
(
"wait: %v"
,
err
)
}
if
err
:=
kapi
.
WaitForService
(
client
,
"default"
,
"nginx"
,
true
,
time
.
Millisecond
*
500
,
time
.
Minute
*
10
);
err
!=
nil
{
...
...
test/integration/fn_mount_cmd.go
浏览文件 @
e338ac0c
...
...
@@ -139,7 +139,7 @@ func validateMountCmd(ctx context.Context, t *testing.T, profile string) {
t
.
Fatalf
(
"%s failed: %v"
,
rr
.
Args
,
err
)
}
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"integration-test=busybox-mount"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"integration-test=busybox-mount"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Fatalf
(
"wait: %v"
,
err
)
}
...
...
test/integration/fn_pvc.go
浏览文件 @
e338ac0c
...
...
@@ -37,7 +37,7 @@ func validatePersistentVolumeClaim(ctx context.Context, t *testing.T, profile st
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
10
*
time
.
Minute
)
defer
cancel
()
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"kube-system"
,
"integration-test=storage-provisioner"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"kube-system"
,
"integration-test=storage-provisioner"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Fatalf
(
"wait: %v"
,
err
)
}
...
...
@@ -83,7 +83,7 @@ func validatePersistentVolumeClaim(ctx context.Context, t *testing.T, profile st
return
fmt
.
Errorf
(
"testpvc phase = %q, want %q (msg=%+v)"
,
pvc
.
Status
.
Phase
,
"Bound"
,
pvc
)
}
if
err
:=
retry
.
Expo
(
checkStoragePhase
,
2
*
time
.
Second
,
2
*
time
.
Minute
);
err
!=
nil
{
if
err
:=
retry
.
Expo
(
checkStoragePhase
,
2
*
time
.
Second
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Fatalf
(
"PV Creation failed with error: %v"
,
err
)
}
}
test/integration/gvisor_addon_test.go
浏览文件 @
e338ac0c
...
...
@@ -75,7 +75,7 @@ func TestGvisorAddon(t *testing.T) {
}
}()
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"kube-system"
,
"kubernetes.io/minikube-addons=gvisor"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"kube-system"
,
"kubernetes.io/minikube-addons=gvisor"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Fatalf
(
"waiting for gvisor controller to be up: %v"
,
err
)
}
...
...
@@ -90,10 +90,10 @@ func TestGvisorAddon(t *testing.T) {
t
.
Fatalf
(
"%s failed: %v"
,
rr
.
Args
,
err
)
}
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,untrusted=true"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,untrusted=true"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Errorf
(
"nginx: %v"
,
err
)
}
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,runtime=gvisor"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,runtime=gvisor"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Errorf
(
"nginx: %v"
,
err
)
}
...
...
@@ -107,13 +107,13 @@ func TestGvisorAddon(t *testing.T) {
if
err
!=
nil
{
t
.
Fatalf
(
"%s failed: %v"
,
rr
.
Args
,
err
)
}
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"kube-system"
,
"kubernetes.io/minikube-addons=gvisor"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"kube-system"
,
"kubernetes.io/minikube-addons=gvisor"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Errorf
(
"waiting for gvisor controller to be up: %v"
,
err
)
}
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,untrusted=true"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,untrusted=true"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Errorf
(
"nginx: %v"
,
err
)
}
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,runtime=gvisor"
,
2
*
time
.
Minute
);
err
!=
nil
{
if
_
,
err
:=
PodWait
(
ctx
,
t
,
profile
,
"default"
,
"run=nginx,runtime=gvisor"
,
4
*
time
.
Minute
);
err
!=
nil
{
t
.
Errorf
(
"nginx: %v"
,
err
)
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录