From 7f0303faf21534e32c6601a3bee29c26d358d747 Mon Sep 17 00:00:00 2001 From: juanvallejo Date: Mon, 21 Jan 2019 14:08:53 -0500 Subject: [PATCH] update bazel --- pkg/kubectl/cmd/plugin/BUILD | 10 +++++++++- pkg/kubectl/cmd/plugin/plugin_test.go | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/pkg/kubectl/cmd/plugin/BUILD b/pkg/kubectl/cmd/plugin/BUILD index fb6091de395..5d9b2cd2b1c 100644 --- a/pkg/kubectl/cmd/plugin/BUILD +++ b/pkg/kubectl/cmd/plugin/BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "go_default_library", @@ -33,3 +33,11 @@ filegroup( data = glob(["testdata/**"]), visibility = ["//visibility:public"], ) + +go_test( + name = "go_default_test", + srcs = ["plugin_test.go"], + data = glob(["testdata/**"]), + embed = [":go_default_library"], + deps = ["//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library"], +) diff --git a/pkg/kubectl/cmd/plugin/plugin_test.go b/pkg/kubectl/cmd/plugin/plugin_test.go index 6027fa6dda8..5f6c0d5b72d 100644 --- a/pkg/kubectl/cmd/plugin/plugin_test.go +++ b/pkg/kubectl/cmd/plugin/plugin_test.go @@ -1,3 +1,19 @@ +/* +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 plugin import (