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
9d3356c6
Commit
9d3356c6
authored
Jul 14, 2017
by
Mik Vyatskov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sig-instrumentation e2e tests refactoring
parent
b516a521
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
156 additions
and
42 deletions
+156
-42
BUILD
test/e2e/BUILD
+3
-10
e2e_test.go
test/e2e/e2e_test.go
+2
-1
BUILD
test/e2e/instrumentation/BUILD
+32
-0
OWNERS
test/e2e/instrumentation/OWNERS
+9
-0
framework.go
test/e2e/instrumentation/framework.go
+23
-0
BUILD
test/e2e/instrumentation/logging/BUILD
+3
-0
OWNERS
test/e2e/instrumentation/logging/OWNERS
+0
-0
es.go
test/e2e/instrumentation/logging/es.go
+4
-3
es_kibana.go
test/e2e/instrumentation/logging/es_kibana.go
+4
-3
es_utils.go
test/e2e/instrumentation/logging/es_utils.go
+2
-2
generic_soak.go
test/e2e/instrumentation/logging/generic_soak.go
+4
-3
sd.go
test/e2e/instrumentation/logging/sd.go
+4
-3
sd_events.go
test/e2e/instrumentation/logging/sd_events.go
+3
-2
sd_soak.go
test/e2e/instrumentation/logging/sd_soak.go
+4
-3
sd_utils.go
test/e2e/instrumentation/logging/sd_utils.go
+2
-2
utils.go
test/e2e/instrumentation/logging/utils.go
+2
-2
BUILD
test/e2e/instrumentation/monitoring/BUILD
+44
-0
cadvisor.go
test/e2e/instrumentation/monitoring/cadvisor.go
+4
-3
influxdb.go
test/e2e/instrumentation/monitoring/influxdb.go
+4
-3
stackdriver.go
test/e2e/instrumentation/monitoring/stackdriver.go
+3
-2
No files found.
test/e2e/BUILD
View file @
9d3356c6
...
...
@@ -21,8 +21,9 @@ go_test(
"//pkg/client/clientset_generated/clientset:go_default_library",
"//test/e2e/apimachinery:go_default_library",
"//test/e2e/autoscaling:go_default_library",
"//test/e2e/cluster-logging:go_default_library",
"//test/e2e/framework:go_default_library",
"//test/e2e/instrumentation/logging:go_default_library",
"//test/e2e/instrumentation/monitoring:go_default_library",
"//test/e2e/kubectl:go_default_library",
"//test/e2e/metrics:go_default_library",
"//test/e2e/scalability:go_default_library",
...
...
@@ -48,7 +49,6 @@ go_library(
"addon_update.go",
"apparmor.go",
"audit.go",
"cadvisor.go",
"certificates.go",
"cluster_upgrade.go",
"dashboard.go",
...
...
@@ -65,13 +65,10 @@ go_library(
"gke_node_pools.go",
"ha_master.go",
"ingress.go",
"kibana_logging.go",
"kube_proxy.go",
"kubelet.go",
"kubelet_perf.go",
"limit_range.go",
"logging_soak.go",
"monitoring.go",
"network_partition.go",
"network_policy.go",
"networking.go",
...
...
@@ -93,7 +90,6 @@ go_library(
"service_latency.go",
"serviceloadbalancers.go",
"ssh.go",
"stackdriver_monitoring.go",
"ubernetes_lite.go",
"util_iperf.go",
],
...
...
@@ -134,14 +130,11 @@ go_library(
"//test/utils/junit:go_default_library",
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
"//vendor/github.com/influxdata/influxdb/client/v2:go_default_library",
"//vendor/github.com/onsi/ginkgo:go_default_library",
"//vendor/github.com/onsi/ginkgo/config:go_default_library",
"//vendor/github.com/onsi/ginkgo/reporters:go_default_library",
"//vendor/github.com/onsi/gomega:go_default_library",
"//vendor/golang.org/x/crypto/ssh:go_default_library",
"//vendor/golang.org/x/oauth2/google:go_default_library",
"//vendor/google.golang.org/api/monitoring/v3:go_default_library",
"//vendor/k8s.io/api/batch/v1:go_default_library",
"//vendor/k8s.io/api/batch/v2alpha1:go_default_library",
"//vendor/k8s.io/api/certificates/v1beta1:go_default_library",
...
...
@@ -195,10 +188,10 @@ filegroup(
"//test/e2e/apimachinery:all-srcs",
"//test/e2e/autoscaling:all-srcs",
"//test/e2e/chaosmonkey:all-srcs",
"//test/e2e/cluster-logging:all-srcs",
"//test/e2e/common:all-srcs",
"//test/e2e/framework:all-srcs",
"//test/e2e/generated:all-srcs",
"//test/e2e/instrumentation:all-srcs",
"//test/e2e/kubectl:all-srcs",
"//test/e2e/manifest:all-srcs",
"//test/e2e/metrics:all-srcs",
...
...
test/e2e/e2e_test.go
View file @
9d3356c6
...
...
@@ -21,8 +21,9 @@ import (
_
"k8s.io/kubernetes/test/e2e/apimachinery"
_
"k8s.io/kubernetes/test/e2e/autoscaling"
_
"k8s.io/kubernetes/test/e2e/cluster-logging"
"k8s.io/kubernetes/test/e2e/framework"
_
"k8s.io/kubernetes/test/e2e/instrumentation/logging"
_
"k8s.io/kubernetes/test/e2e/instrumentation/monitoring"
_
"k8s.io/kubernetes/test/e2e/kubectl"
_
"k8s.io/kubernetes/test/e2e/scalability"
_
"k8s.io/kubernetes/test/e2e/scheduling"
...
...
test/e2e/instrumentation/BUILD
0 → 100644
View file @
9d3356c6
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = ["framework.go"],
tags = ["automanaged"],
deps = ["//vendor/github.com/onsi/ginkgo:go_default_library"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//test/e2e/instrumentation/logging:all-srcs",
"//test/e2e/instrumentation/monitoring:all-srcs",
],
tags = ["automanaged"],
)
test/e2e/instrumentation/OWNERS
0 → 100644
View file @
9d3356c6
approvers:
- crassirostris
- DirectXMan12
- fabxc
- fgrzadkowski
- piosz
- x13n
reviewers:
- sig-instrumentation-pr-reviews
test/e2e/instrumentation/framework.go
0 → 100644
View file @
9d3356c6
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
instrumentation
import
"github.com/onsi/ginkgo"
func
SIGDescribe
(
text
string
,
body
func
())
bool
{
return
ginkgo
.
Describe
(
"[sig-instrumentation] "
+
text
,
body
)
}
test/e2e/
cluster-
logging/BUILD
→
test/e2e/
instrumentation/
logging/BUILD
View file @
9d3356c6
...
...
@@ -11,7 +11,9 @@ go_library(
name = "go_default_library",
srcs = [
"es.go",
"es_kibana.go",
"es_utils.go",
"generic_soak.go",
"sd.go",
"sd_events.go",
"sd_soak.go",
...
...
@@ -22,6 +24,7 @@ go_library(
deps = [
"//pkg/api:go_default_library",
"//test/e2e/framework:go_default_library",
"//test/e2e/instrumentation:go_default_library",
"//vendor/github.com/onsi/ginkgo:go_default_library",
"//vendor/github.com/onsi/gomega:go_default_library",
"//vendor/golang.org/x/net/context:go_default_library",
...
...
test/e2e/
cluster-
logging/OWNERS
→
test/e2e/
instrumentation/
logging/OWNERS
View file @
9d3356c6
File moved
test/e2e/
cluster-
logging/es.go
→
test/e2e/
instrumentation/
logging/es.go
View file @
9d3356c6
/*
Copyright 201
6
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"fmt"
...
...
@@ -22,11 +22,12 @@ import (
meta_v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
.
"github.com/onsi/ginkgo"
)
var
_
=
framework
.
Kube
Describe
(
"Cluster level logging using Elasticsearch [Feature:Elasticsearch]"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Cluster level logging using Elasticsearch [Feature:Elasticsearch]"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"es-logging"
)
BeforeEach
(
func
()
{
...
...
test/e2e/
kibana_logging
.go
→
test/e2e/
instrumentation/logging/es_kibana
.go
View file @
9d3356c6
/*
Copyright 201
5
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"context"
...
...
@@ -23,12 +23,13 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/gomega"
)
var
_
=
framework
.
Kube
Describe
(
"Kibana Logging Instances Is Alive [Feature:Elasticsearch]"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Kibana Logging Instances Is Alive [Feature:Elasticsearch]"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"kibana-logging"
)
BeforeEach
(
func
()
{
...
...
test/e2e/
cluster-
logging/es_utils.go
→
test/e2e/
instrumentation/
logging/es_utils.go
View file @
9d3356c6
/*
Copyright 201
6
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"encoding/json"
...
...
test/e2e/
logging
_soak.go
→
test/e2e/
instrumentation/logging/generic
_soak.go
View file @
9d3356c6
/*
Copyright 201
6
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"fmt"
...
...
@@ -27,9 +27,10 @@ import (
.
"github.com/onsi/gomega"
"k8s.io/api/core/v1"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
)
var
_
=
framework
.
Kube
Describe
(
"Logging soak [Performance] [Slow] [Disruptive]"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Logging soak [Performance] [Slow] [Disruptive]"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"logging-soak"
)
...
...
test/e2e/
cluster-
logging/sd.go
→
test/e2e/
instrumentation/
logging/sd.go
View file @
9d3356c6
/*
Copyright 201
6
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"fmt"
...
...
@@ -22,11 +22,12 @@ import (
meta_v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
.
"github.com/onsi/ginkgo"
)
var
_
=
framework
.
Kube
Describe
(
"Cluster level logging implemented by Stackdriver"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Cluster level logging implemented by Stackdriver"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"sd-logging"
)
BeforeEach
(
func
()
{
...
...
test/e2e/
cluster-
logging/sd_events.go
→
test/e2e/
instrumentation/
logging/sd_events.go
View file @
9d3356c6
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"time"
...
...
@@ -22,6 +22,7 @@ import (
meta_v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
.
"github.com/onsi/ginkgo"
)
...
...
@@ -40,7 +41,7 @@ const (
eventCreationInterval
=
10
*
time
.
Second
)
var
_
=
framework
.
Kube
Describe
(
"Cluster level logging implemented by Stackdriver"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Cluster level logging implemented by Stackdriver"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"sd-logging-events"
)
BeforeEach
(
func
()
{
...
...
test/e2e/
cluster-
logging/sd_soak.go
→
test/e2e/
instrumentation/
logging/sd_soak.go
View file @
9d3356c6
/*
Copyright 201
6
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"fmt"
...
...
@@ -23,6 +23,7 @@ import (
meta_v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
.
"github.com/onsi/ginkgo"
)
...
...
@@ -39,7 +40,7 @@ const (
lastPodIngestionSlack
=
5
*
time
.
Minute
)
var
_
=
framework
.
Kube
Describe
(
"Cluster level logging implemented by Stackdriver [Feature:StackdriverLogging] [Soak]"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Cluster level logging implemented by Stackdriver [Feature:StackdriverLogging] [Soak]"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"sd-logging-load"
)
It
(
"should ingest logs from applications running for a prolonged amount of time"
,
func
()
{
...
...
test/e2e/
cluster-
logging/sd_utils.go
→
test/e2e/
instrumentation/
logging/sd_utils.go
View file @
9d3356c6
/*
Copyright 201
6
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"encoding/base64"
...
...
test/e2e/
cluster-
logging/utils.go
→
test/e2e/
instrumentation/
logging/utils.go
View file @
9d3356c6
/*
Copyright 201
5
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
logging
import
(
"fmt"
...
...
test/e2e/instrumentation/monitoring/BUILD
0 → 100644
View file @
9d3356c6
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"cadvisor.go",
"influxdb.go",
"stackdriver.go",
],
tags = ["automanaged"],
deps = [
"//pkg/client/clientset_generated/clientset:go_default_library",
"//test/e2e/common:go_default_library",
"//test/e2e/framework:go_default_library",
"//test/e2e/instrumentation:go_default_library",
"//vendor/github.com/influxdata/influxdb/client/v2:go_default_library",
"//vendor/github.com/onsi/ginkgo:go_default_library",
"//vendor/golang.org/x/oauth2/google:go_default_library",
"//vendor/google.golang.org/api/monitoring/v3:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/labels:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
test/e2e/cadvisor.go
→
test/e2e/
instrumentation/monitoring/
cadvisor.go
View file @
9d3356c6
/*
Copyright 201
5
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
monitoring
import
(
"fmt"
...
...
@@ -23,11 +23,12 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
.
"github.com/onsi/ginkgo"
)
var
_
=
framework
.
Kube
Describe
(
"Cadvisor"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Cadvisor"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"cadvisor"
)
...
...
test/e2e/
monitoring
.go
→
test/e2e/
instrumentation/monitoring/influxdb
.go
View file @
9d3356c6
/*
Copyright 201
5
The Kubernetes Authors.
Copyright 201
7
The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
monitoring
import
(
"bytes"
...
...
@@ -29,11 +29,12 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
.
"github.com/onsi/ginkgo"
)
var
_
=
framework
.
Kube
Describe
(
"Monitoring"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Monitoring"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"monitoring"
)
BeforeEach
(
func
()
{
...
...
test/e2e/
stackdriver_monitoring
.go
→
test/e2e/
instrumentation/monitoring/stackdriver
.go
View file @
9d3356c6
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
package
monitoring
import
(
"context"
...
...
@@ -29,6 +29,7 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/kubernetes/test/e2e/common"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/instrumentation"
gcm
"google.golang.org/api/monitoring/v3"
)
...
...
@@ -57,7 +58,7 @@ var (
tolerance
=
0.25
)
var
_
=
framework
.
Kube
Describe
(
"Stackdriver Monitoring"
,
func
()
{
var
_
=
instrumentation
.
SIG
Describe
(
"Stackdriver Monitoring"
,
func
()
{
BeforeEach
(
func
()
{
framework
.
SkipUnlessProviderIs
(
"gke"
)
})
...
...
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