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
facc34fe
Commit
facc34fe
authored
Jan 05, 2017
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move tests which need to stay in k8s.io/kubernetes for API scheme
parent
e3e101fb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
95 additions
and
78 deletions
+95
-78
.linted_packages
hack/.linted_packages
+0
-3
BUILD
pkg/api/meta/BUILD
+0
-24
BUILD
pkg/apimachinery/BUILD
+1
-0
BUILD
pkg/apimachinery/tests/BUILD
+65
-0
api_meta_help_test.go
pkg/apimachinery/tests/api_meta_help_test.go
+1
-1
api_meta_meta_test.go
pkg/apimachinery/tests/api_meta_meta_test.go
+1
-1
api_meta_scheme_test.go
pkg/apimachinery/tests/api_meta_scheme_test.go
+1
-1
apis_meta_v1_unstructed_unstructure_test.go
...chinery/tests/apis_meta_v1_unstructed_unstructure_test.go
+1
-1
doc.go
pkg/apimachinery/tests/doc.go
+20
-0
runtime_helper_test.go
pkg/apimachinery/tests/runtime_helper_test.go
+1
-1
runtime_serializer_protobuf_protobuf_test.go
...hinery/tests/runtime_serializer_protobuf_protobuf_test.go
+2
-2
runtime_unversioned_test.go
pkg/apimachinery/tests/runtime_unversioned_test.go
+1
-1
watch_until_test.go
pkg/apimachinery/tests/watch_until_test.go
+1
-1
BUILD
pkg/apis/meta/v1/unstructured/BUILD
+0
-17
bindata.go
pkg/generated/bindata.go
+0
-0
BUILD
pkg/runtime/BUILD
+0
-7
BUILD
pkg/runtime/serializer/protobuf/BUILD
+0
-16
BUILD
pkg/watch/BUILD
+0
-2
No files found.
hack/.linted_packages
View file @
facc34fe
...
@@ -68,7 +68,6 @@ pkg/api/annotations
...
@@ -68,7 +68,6 @@ pkg/api/annotations
pkg/api/errors
pkg/api/errors
pkg/api/events
pkg/api/events
pkg/api/install
pkg/api/install
pkg/api/meta
pkg/api/resource
pkg/api/resource
pkg/api/service
pkg/api/service
pkg/api/v1
pkg/api/v1
...
@@ -90,7 +89,6 @@ pkg/apis/componentconfig/install
...
@@ -90,7 +89,6 @@ pkg/apis/componentconfig/install
pkg/apis/extensions/install
pkg/apis/extensions/install
pkg/apis/extensions/v1beta1
pkg/apis/extensions/v1beta1
pkg/apis/imagepolicy/install
pkg/apis/imagepolicy/install
pkg/apis/meta/v1/unstructured
pkg/apis/policy/install
pkg/apis/policy/install
pkg/apis/rbac/install
pkg/apis/rbac/install
pkg/apis/rbac/v1alpha1
pkg/apis/rbac/v1alpha1
...
@@ -239,7 +237,6 @@ pkg/registry/thirdpartyresource
...
@@ -239,7 +237,6 @@ pkg/registry/thirdpartyresource
pkg/registry/thirdpartyresource/etcd
pkg/registry/thirdpartyresource/etcd
pkg/runtime
pkg/runtime
pkg/runtime/serializer/json
pkg/runtime/serializer/json
pkg/runtime/serializer/protobuf
pkg/runtime/serializer/recognizer/testing
pkg/runtime/serializer/recognizer/testing
pkg/runtime/serializer/versioning
pkg/runtime/serializer/versioning
pkg/runtime/serializer/yaml
pkg/runtime/serializer/yaml
...
...
pkg/api/meta/BUILD
View file @
facc34fe
...
@@ -51,30 +51,6 @@ go_test(
...
@@ -51,30 +51,6 @@ go_test(
],
],
)
)
go_test(
name = "go_default_xtest",
srcs = [
"help_test.go",
"meta_test.go",
"scheme_test.go",
],
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/api/meta:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/apis/meta/v1:go_default_library",
"//pkg/apis/meta/v1/unstructured:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime/schema:go_default_library",
"//pkg/types:go_default_library",
"//pkg/util/diff:go_default_library",
"//pkg/util/sets:go_default_library",
"//vendor:github.com/google/gofuzz",
],
)
filegroup(
filegroup(
name = "package-srcs",
name = "package-srcs",
srcs = glob(["**"]),
srcs = glob(["**"]),
...
...
pkg/apimachinery/BUILD
View file @
facc34fe
...
@@ -43,6 +43,7 @@ filegroup(
...
@@ -43,6 +43,7 @@ filegroup(
":package-srcs",
":package-srcs",
"//pkg/apimachinery/announced:all-srcs",
"//pkg/apimachinery/announced:all-srcs",
"//pkg/apimachinery/registered:all-srcs",
"//pkg/apimachinery/registered:all-srcs",
"//pkg/apimachinery/tests:all-srcs",
],
],
tags = ["automanaged"],
tags = ["automanaged"],
)
)
pkg/apimachinery/tests/BUILD
0 → 100644
View file @
facc34fe
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
go_test(
name = "go_default_test",
srcs = [
"api_meta_help_test.go",
"api_meta_meta_test.go",
"api_meta_scheme_test.go",
"apis_meta_v1_unstructed_unstructure_test.go",
"runtime_helper_test.go",
"runtime_serializer_protobuf_protobuf_test.go",
"runtime_unversioned_test.go",
"watch_until_test.go",
],
library = ":go_default_library",
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/api/install:go_default_library",
"//pkg/api/meta:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/validation:go_default_library",
"//pkg/apimachinery/registered:go_default_library",
"//pkg/apis/extensions:go_default_library",
"//pkg/apis/meta/v1:go_default_library",
"//pkg/apis/meta/v1/unstructured:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime/schema:go_default_library",
"//pkg/runtime/serializer/protobuf:go_default_library",
"//pkg/types:go_default_library",
"//pkg/util/diff:go_default_library",
"//pkg/util/sets:go_default_library",
"//pkg/util/wait:go_default_library",
"//pkg/watch:go_default_library",
"//vendor:github.com/google/gofuzz",
],
)
go_library(
name = "go_default_library",
srcs = ["doc.go"],
tags = ["automanaged"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
pkg/api
/meta/
help_test.go
→
pkg/api
machinery/tests/api_meta_
help_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
meta_test
package
tests
import
(
import
(
"reflect"
"reflect"
...
...
pkg/api
/meta/
meta_test.go
→
pkg/api
machinery/tests/api_meta_
meta_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
meta_test
package
tests
import
(
import
(
"reflect"
"reflect"
...
...
pkg/api
/meta/
scheme_test.go
→
pkg/api
machinery/tests/api_meta_
scheme_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
meta_test
package
tests
import
(
import
(
"fmt"
"fmt"
...
...
pkg/api
s/meta/v1/unstructured/unstructured
_test.go
→
pkg/api
machinery/tests/apis_meta_v1_unstructed_unstructure
_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
unstructured_test
package
tests
import
(
import
(
"fmt"
"fmt"
...
...
pkg/apimachinery/tests/doc.go
0 → 100644
View file @
facc34fe
/*
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.
*/
// This package runs tests against the apimachinery which require a Scheme
// TODO Refactor the base types into the machinery and move these tests back.
// See https://github.com/kubernetes/kubernetes/issues/39611
package
tests
pkg/
runtime/
helper_test.go
→
pkg/
apimachinery/tests/runtime_
helper_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
runtime_test
package
tests
import
(
import
(
"testing"
"testing"
...
...
pkg/
runtime/serializer/protobuf/
protobuf_test.go
→
pkg/
apimachinery/tests/runtime_serializer_protobuf_
protobuf_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
protobuf_test
package
tests
import
(
import
(
"bytes"
"bytes"
...
@@ -190,7 +190,7 @@ func TestEncode(t *testing.T) {
...
@@ -190,7 +190,7 @@ func TestEncode(t *testing.T) {
}
}
}
}
func
TestDecode
(
t
*
testing
.
T
)
{
func
Test
Protobuf
Decode
(
t
*
testing
.
T
)
{
wire1
:=
[]
byte
{
wire1
:=
[]
byte
{
0x6b
,
0x38
,
0x73
,
0x00
,
// prefix
0x6b
,
0x38
,
0x73
,
0x00
,
// prefix
0x0a
,
0x04
,
0x0a
,
0x04
,
...
...
pkg/
runtime/
unversioned_test.go
→
pkg/
apimachinery/tests/runtime_
unversioned_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
runtime_test
package
tests
import
(
import
(
"encoding/json"
"encoding/json"
...
...
pkg/
watch/
until_test.go
→
pkg/
apimachinery/tests/watch_
until_test.go
View file @
facc34fe
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
watch_test
package
tests
import
(
import
(
"errors"
"errors"
...
...
pkg/apis/meta/v1/unstructured/BUILD
View file @
facc34fe
...
@@ -5,7 +5,6 @@ licenses(["notice"])
...
@@ -5,7 +5,6 @@ licenses(["notice"])
load(
load(
"@io_bazel_rules_go//go:def.bzl",
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_library",
"go_test",
)
)
go_library(
go_library(
...
@@ -22,22 +21,6 @@ go_library(
...
@@ -22,22 +21,6 @@ go_library(
],
],
)
)
go_test(
name = "go_default_xtest",
srcs = ["unstructured_test.go"],
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/validation:go_default_library",
"//pkg/apimachinery/registered:go_default_library",
"//pkg/apis/meta/v1:go_default_library",
"//pkg/apis/meta/v1/unstructured:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/types:go_default_library",
],
)
filegroup(
filegroup(
name = "package-srcs",
name = "package-srcs",
srcs = glob(["**"]),
srcs = glob(["**"]),
...
...
pkg/generated/bindata.go
View file @
facc34fe
This diff is collapsed.
Click to expand it.
pkg/runtime/BUILD
View file @
facc34fe
...
@@ -52,18 +52,11 @@ go_test(
...
@@ -52,18 +52,11 @@ go_test(
"conversion_test.go",
"conversion_test.go",
"embedded_test.go",
"embedded_test.go",
"extension_test.go",
"extension_test.go",
"helper_test.go",
"scheme_test.go",
"scheme_test.go",
"unversioned_test.go",
],
],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api/meta:go_default_library",
"//pkg/api/meta:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/apimachinery/registered:go_default_library",
"//pkg/apis/extensions:go_default_library",
"//pkg/apis/meta/v1:go_default_library",
"//pkg/conversion:go_default_library",
"//pkg/conversion:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime/schema:go_default_library",
"//pkg/runtime/schema:go_default_library",
...
...
pkg/runtime/serializer/protobuf/BUILD
View file @
facc34fe
...
@@ -5,7 +5,6 @@ licenses(["notice"])
...
@@ -5,7 +5,6 @@ licenses(["notice"])
load(
load(
"@io_bazel_rules_go//go:def.bzl",
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_library",
"go_test",
)
)
go_library(
go_library(
...
@@ -24,21 +23,6 @@ go_library(
...
@@ -24,21 +23,6 @@ go_library(
],
],
)
)
go_test(
name = "go_default_xtest",
srcs = ["protobuf_test.go"],
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/api/install:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime/schema:go_default_library",
"//pkg/runtime/serializer/protobuf:go_default_library",
"//pkg/util/diff:go_default_library",
],
)
filegroup(
filegroup(
name = "package-srcs",
name = "package-srcs",
srcs = glob(["**"]),
srcs = glob(["**"]),
...
...
pkg/watch/BUILD
View file @
facc34fe
...
@@ -35,12 +35,10 @@ go_test(
...
@@ -35,12 +35,10 @@ go_test(
"filter_test.go",
"filter_test.go",
"mux_test.go",
"mux_test.go",
"streamwatcher_test.go",
"streamwatcher_test.go",
"until_test.go",
"watch_test.go",
"watch_test.go",
],
],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime/schema:go_default_library",
"//pkg/runtime/schema:go_default_library",
"//pkg/util/wait:go_default_library",
"//pkg/util/wait:go_default_library",
...
...
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