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
a49c3636
Commit
a49c3636
authored
Feb 15, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21259 from wojtek-t/fix_wait_group_issue
Auto commit by PR queue bot
parents
138cb09a
463d21f3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
+18
-9
client_test.go
test/integration/client_test.go
+6
-3
master_test.go
test/integration/master_test.go
+6
-3
metrics_test.go
test/integration/metrics_test.go
+4
-2
persistent_volumes_test.go
test/integration/persistent_volumes_test.go
+2
-1
No files found.
test/integration/client_test.go
View file @
a49c3636
...
@@ -39,7 +39,8 @@ import (
...
@@ -39,7 +39,8 @@ import (
func
TestClient
(
t
*
testing
.
T
)
{
func
TestClient
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
ns
:=
api
.
NamespaceDefault
ns
:=
api
.
NamespaceDefault
framework
.
DeleteAllEtcdKeys
()
framework
.
DeleteAllEtcdKeys
()
...
@@ -109,7 +110,8 @@ func TestClient(t *testing.T) {
...
@@ -109,7 +110,8 @@ func TestClient(t *testing.T) {
func
TestSingleWatch
(
t
*
testing
.
T
)
{
func
TestSingleWatch
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
ns
:=
"blargh"
ns
:=
"blargh"
deleteAllEtcdKeys
()
deleteAllEtcdKeys
()
...
@@ -194,7 +196,8 @@ func TestMultiWatch(t *testing.T) {
...
@@ -194,7 +196,8 @@ func TestMultiWatch(t *testing.T) {
framework
.
DeleteAllEtcdKeys
()
framework
.
DeleteAllEtcdKeys
()
defer
framework
.
DeleteAllEtcdKeys
()
defer
framework
.
DeleteAllEtcdKeys
()
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
ns
:=
api
.
NamespaceDefault
ns
:=
api
.
NamespaceDefault
client
:=
client
.
NewOrDie
(
&
client
.
Config
{
Host
:
s
.
URL
,
ContentConfig
:
client
.
ContentConfig
{
GroupVersion
:
testapi
.
Default
.
GroupVersion
()}})
client
:=
client
.
NewOrDie
(
&
client
.
Config
{
Host
:
s
.
URL
,
ContentConfig
:
client
.
ContentConfig
{
GroupVersion
:
testapi
.
Default
.
GroupVersion
()}})
...
...
test/integration/master_test.go
View file @
a49c3636
...
@@ -31,7 +31,8 @@ import (
...
@@ -31,7 +31,8 @@ import (
func
TestExperimentalPrefix
(
t
*
testing
.
T
)
{
func
TestExperimentalPrefix
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
resp
,
err
:=
http
.
Get
(
s
.
URL
+
"/apis/extensions/"
)
resp
,
err
:=
http
.
Get
(
s
.
URL
+
"/apis/extensions/"
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -44,7 +45,8 @@ func TestExperimentalPrefix(t *testing.T) {
...
@@ -44,7 +45,8 @@ func TestExperimentalPrefix(t *testing.T) {
func
TestWatchSucceedsWithoutArgs
(
t
*
testing
.
T
)
{
func
TestWatchSucceedsWithoutArgs
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
resp
,
err
:=
http
.
Get
(
s
.
URL
+
"/api/v1/namespaces?watch=1"
)
resp
,
err
:=
http
.
Get
(
s
.
URL
+
"/api/v1/namespaces?watch=1"
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -58,7 +60,8 @@ func TestWatchSucceedsWithoutArgs(t *testing.T) {
...
@@ -58,7 +60,8 @@ func TestWatchSucceedsWithoutArgs(t *testing.T) {
func
TestAccept
(
t
*
testing
.
T
)
{
func
TestAccept
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
resp
,
err
:=
http
.
Get
(
s
.
URL
+
"/api/"
)
resp
,
err
:=
http
.
Get
(
s
.
URL
+
"/api/"
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
test/integration/metrics_test.go
View file @
a49c3636
...
@@ -86,7 +86,8 @@ func checkForExpectedMetrics(t *testing.T, metrics []*prometheuspb.MetricFamily,
...
@@ -86,7 +86,8 @@ func checkForExpectedMetrics(t *testing.T, metrics []*prometheuspb.MetricFamily,
func
TestMasterProcessMetrics
(
t
*
testing
.
T
)
{
func
TestMasterProcessMetrics
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
metrics
,
err
:=
scrapeMetrics
(
s
)
metrics
,
err
:=
scrapeMetrics
(
s
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -103,7 +104,8 @@ func TestMasterProcessMetrics(t *testing.T) {
...
@@ -103,7 +104,8 @@ func TestMasterProcessMetrics(t *testing.T) {
func
TestApiserverMetrics
(
t
*
testing
.
T
)
{
func
TestApiserverMetrics
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
// Make a request to the apiserver to ensure there's at least one data point
// Make a request to the apiserver to ensure there's at least one data point
// for the metrics we're expecting -- otherwise, they won't be exported.
// for the metrics we're expecting -- otherwise, they won't be exported.
...
...
test/integration/persistent_volumes_test.go
View file @
a49c3636
...
@@ -43,7 +43,8 @@ func init() {
...
@@ -43,7 +43,8 @@ func init() {
func
TestPersistentVolumeRecycler
(
t
*
testing
.
T
)
{
func
TestPersistentVolumeRecycler
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
// TODO: Uncomment when fix #19254
// defer s.Close()
deleteAllEtcdKeys
()
deleteAllEtcdKeys
()
// Use higher QPS and Burst, there is a test for race condition below, which
// Use higher QPS and Burst, there is a test for race condition below, which
...
...
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