Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a1f08d68
Commit
a1f08d68
authored
Nov 10, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Nov 10, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36533 from mwielgus/dep_test_update
Automatic merge from submit-queue Wait for deployment in the storage in federated deployment controller test cc: @nikhiljindal
parents
abd653bd
41e13fcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
BUILD
federation/pkg/federation-controller/deployment/BUILD
+2
-0
deploymentcontroller_test.go
...ration-controller/deployment/deploymentcontroller_test.go
+6
-0
No files found.
federation/pkg/federation-controller/deployment/BUILD
View file @
a1f08d68
...
...
@@ -56,6 +56,8 @@ go_test(
"//pkg/client/clientset_generated/release_1_5:go_default_library",
"//pkg/client/clientset_generated/release_1_5/fake:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/types:go_default_library",
"//pkg/util/wait:go_default_library",
"//vendor:github.com/stretchr/testify/assert",
],
)
federation/pkg/federation-controller/deployment/deploymentcontroller_test.go
View file @
a1f08d68
...
...
@@ -31,6 +31,8 @@ import (
kubeclientset
"k8s.io/kubernetes/pkg/client/clientset_generated/release_1_5"
fake_kubeclientset
"k8s.io/kubernetes/pkg/client/clientset_generated/release_1_5/fake"
"k8s.io/kubernetes/pkg/runtime"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/util/wait"
"github.com/stretchr/testify/assert"
)
...
...
@@ -135,6 +137,10 @@ func TestDeploymentController(t *testing.T) {
}
}
assert
.
NoError
(
t
,
CheckObjectFromChan
(
cluster1CreateChan
,
checkDeployment
(
dep1
,
*
dep1
.
Spec
.
Replicas
)))
err
:=
WaitForStoreUpdate
(
deploymentController
.
fedDeploymentInformer
.
GetTargetStore
(),
cluster1
.
Name
,
types
.
NamespacedName
{
Namespace
:
dep1
.
Namespace
,
Name
:
dep1
.
Name
}
.
String
(),
wait
.
ForeverTestTimeout
)
assert
.
Nil
(
t
,
err
,
"deployment should have appeared in the informer store"
)
// Increase replica count. Expect to see the update in cluster1.
newRep
:=
int32
(
8
)
...
...
Write
Preview
Markdown
is supported
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