Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
de1d2639
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,发现更多精彩内容 >>
提交
de1d2639
编写于
3月 05, 2020
作者:
T
tstromberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Set explicit memory defaults in integration tests
上级
fa5f9e11
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
6 addition
and
6 deletion
+6
-6
test/integration/aab_offline_test.go
test/integration/aab_offline_test.go
+1
-1
test/integration/docker_test.go
test/integration/docker_test.go
+1
-1
test/integration/guest_env_test.go
test/integration/guest_env_test.go
+1
-1
test/integration/gvisor_addon_test.go
test/integration/gvisor_addon_test.go
+1
-1
test/integration/start_stop_delete_test.go
test/integration/start_stop_delete_test.go
+1
-1
test/integration/version_upgrade_test.go
test/integration/version_upgrade_test.go
+1
-1
未找到文件。
test/integration/aab_offline_test.go
浏览文件 @
de1d2639
...
...
@@ -41,7 +41,7 @@ func TestOffline(t *testing.T) {
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
Minutes
(
15
))
defer
CleanupWithLogs
(
t
,
profile
,
cancel
)
startArgs
:=
[]
string
{
"start"
,
"-p"
,
profile
,
"--alsologtostderr"
,
"-v=1"
,
"--wait=true"
,
"--container-runtime"
,
runtime
}
startArgs
:=
[]
string
{
"start"
,
"-p"
,
profile
,
"--alsologtostderr"
,
"-v=1"
,
"--
memory=2000"
,
"--
wait=true"
,
"--container-runtime"
,
runtime
}
startArgs
=
append
(
startArgs
,
StartArgs
()
...
)
c
:=
exec
.
CommandContext
(
ctx
,
Target
(),
startArgs
...
)
env
:=
os
.
Environ
()
...
...
test/integration/docker_test.go
浏览文件 @
de1d2639
...
...
@@ -36,7 +36,7 @@ func TestDockerFlags(t *testing.T) {
defer
CleanupWithLogs
(
t
,
profile
,
cancel
)
// Use the most verbose logging for the simplest test. If it fails, something is very wrong.
args
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--cache-images=false"
,
"--install-addons=false"
,
"--wait=false"
,
"--docker-env=FOO=BAR"
,
"--docker-env=BAZ=BAT"
,
"--docker-opt=debug"
,
"--docker-opt=icc=true"
,
"--alsologtostderr"
,
"-v=5"
},
StartArgs
()
...
)
args
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--cache-images=false"
,
"--
memory=1800"
,
"--
install-addons=false"
,
"--wait=false"
,
"--docker-env=FOO=BAR"
,
"--docker-env=BAZ=BAT"
,
"--docker-opt=debug"
,
"--docker-opt=icc=true"
,
"--alsologtostderr"
,
"-v=5"
},
StartArgs
()
...
)
rr
,
err
:=
Run
(
t
,
exec
.
CommandContext
(
ctx
,
Target
(),
args
...
))
if
err
!=
nil
{
t
.
Errorf
(
"%s failed: %v"
,
rr
.
Args
,
err
)
...
...
test/integration/guest_env_test.go
浏览文件 @
de1d2639
...
...
@@ -34,7 +34,7 @@ func TestGuestEnvironment(t *testing.T) {
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
Minutes
(
15
))
defer
CleanupWithLogs
(
t
,
profile
,
cancel
)
args
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--install-addons=false"
,
"--wait=false"
},
StartArgs
()
...
)
args
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--install-addons=false"
,
"--
memory=1800"
,
"--
wait=false"
},
StartArgs
()
...
)
rr
,
err
:=
Run
(
t
,
exec
.
CommandContext
(
ctx
,
Target
(),
args
...
))
if
err
!=
nil
{
t
.
Errorf
(
"%s failed: %v"
,
rr
.
Args
,
err
)
...
...
test/integration/gvisor_addon_test.go
浏览文件 @
de1d2639
...
...
@@ -47,7 +47,7 @@ func TestGvisorAddon(t *testing.T) {
CleanupWithLogs
(
t
,
profile
,
cancel
)
}()
startArgs
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--container-runtime=containerd"
,
"--docker-opt"
,
"containerd=/var/run/containerd/containerd.sock"
},
StartArgs
()
...
)
startArgs
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--
memory=2200"
,
"--
container-runtime=containerd"
,
"--docker-opt"
,
"containerd=/var/run/containerd/containerd.sock"
},
StartArgs
()
...
)
rr
,
err
:=
Run
(
t
,
exec
.
CommandContext
(
ctx
,
Target
(),
startArgs
...
))
if
err
!=
nil
{
t
.
Fatalf
(
"%s failed: %v"
,
rr
.
Args
,
err
)
...
...
test/integration/start_stop_delete_test.go
浏览文件 @
de1d2639
...
...
@@ -86,7 +86,7 @@ func TestStartStop(t *testing.T) {
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
Minutes
(
40
))
defer
CleanupWithLogs
(
t
,
profile
,
cancel
)
startArgs
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--alsologtostderr"
,
"-v=3"
,
"--wait=true"
},
tc
.
args
...
)
startArgs
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--
memory=2200"
,
"--
alsologtostderr"
,
"-v=3"
,
"--wait=true"
},
tc
.
args
...
)
startArgs
=
append
(
startArgs
,
StartArgs
()
...
)
startArgs
=
append
(
startArgs
,
fmt
.
Sprintf
(
"--kubernetes-version=%s"
,
tc
.
version
))
...
...
test/integration/version_upgrade_test.go
浏览文件 @
de1d2639
...
...
@@ -65,7 +65,7 @@ func TestVersionUpgrade(t *testing.T) {
}
}
args
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
fmt
.
Sprintf
(
"--kubernetes-version=%s"
,
constants
.
OldestKubernetesVersion
),
"--alsologtostderr"
,
"-v=1"
},
StartArgs
()
...
)
args
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--memory=2200"
,
fmt
.
Sprintf
(
"--kubernetes-version=%s"
,
constants
.
OldestKubernetesVersion
),
"--alsologtostderr"
,
"-v=1"
},
StartArgs
()
...
)
rr
:=
&
RunResult
{}
r
:=
func
()
error
{
rr
,
err
=
Run
(
t
,
exec
.
CommandContext
(
ctx
,
tf
.
Name
(),
args
...
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录