Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Kubevela
Commits
b4ebdac5
Unverified
Commit
b4ebdac5
authored
3 years ago
by
Yue Wang
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
quick fix tests (#1999)
Signed-off-by:
Yue Wang
<
seiwy2010@gmail.com
>
parent
9d6aaa60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/controller/core.oam.dev/v1alpha2/appdeployment/suite_test.go
+1
-1
...troller/core.oam.dev/v1alpha2/appdeployment/suite_test.go
test/e2e-test/rollout_plan_test.go
+4
-1
test/e2e-test/rollout_plan_test.go
with
5 additions
and
2 deletions
+5
-2
pkg/controller/core.oam.dev/v1alpha2/appdeployment/suite_test.go
+
1
-
1
View file @
b4ebdac5
...
...
@@ -97,7 +97,7 @@ var _ = BeforeSuite(func(done Done) {
// setup the controller manager since we need the component handler to run in the background
ctlManager
,
err
=
ctrl
.
NewManager
(
cfg
,
ctrl
.
Options
{
Scheme
:
common
.
Scheme
,
MetricsBindAddress
:
":808
0
"
,
MetricsBindAddress
:
":808
1
"
,
LeaderElection
:
false
,
LeaderElectionNamespace
:
"default"
,
LeaderElectionID
:
"test"
,
...
...
This diff is collapsed.
Click to expand it.
test/e2e-test/rollout_plan_test.go
+
4
-
1
View file @
b4ebdac5
...
...
@@ -117,6 +117,7 @@ var _ = Describe("Cloneset based rollout tests", func() {
By
(
"Get Application latest status"
)
Eventually
(
func
()
*
oamcomm
.
Revision
{
app
=
v1beta1
.
Application
{}
k8sClient
.
Get
(
ctx
,
client
.
ObjectKey
{
Namespace
:
namespaceName
,
Name
:
newApp
.
Name
},
&
app
)
if
app
.
Status
.
LatestRevision
!=
nil
{
return
app
.
Status
.
LatestRevision
...
...
@@ -133,7 +134,8 @@ var _ = Describe("Cloneset based rollout tests", func() {
Eventually
(
func
()
error
{
err
:=
k8sClient
.
Get
(
ctx
,
client
.
ObjectKey
{
Namespace
:
namespaceName
,
Name
:
app
.
Name
},
&
app
)
app
=
v1beta1
.
Application
{}
err
:=
k8sClient
.
Get
(
ctx
,
client
.
ObjectKey
{
Namespace
:
namespaceName
,
Name
:
targetApp
.
Name
},
&
app
)
if
err
!=
nil
{
return
err
}
...
...
@@ -213,6 +215,7 @@ var _ = Describe("Cloneset based rollout tests", func() {
Eventually
(
func
()
error
{
var
clonesetOwner
*
metav1
.
OwnerReference
kc
=
kruise
.
CloneSet
{}
err
:=
k8sClient
.
Get
(
ctx
,
client
.
ObjectKey
{
Namespace
:
namespaceName
,
Name
:
clonesetName
},
&
kc
)
if
err
!=
nil
{
return
err
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment