From 5504d845ffedf2e95ff79f96d9b9743421c6b138 Mon Sep 17 00:00:00 2001 From: Bin Lu Date: Thu, 16 May 2019 10:55:32 +0800 Subject: [PATCH] Bug fix: failed to run integration test by using bazel Signed-off-by: Bin Lu --- test/integration/apiserver/admissionwebhook/BUILD | 1 + test/integration/auth/BUILD | 1 + test/integration/client/BUILD | 1 + test/integration/dryrun/BUILD | 1 + test/integration/garbagecollector/BUILD | 1 + test/integration/kubelet/BUILD | 1 + test/integration/master/BUILD | 1 + test/integration/scale/BUILD | 1 + test/integration/serving/BUILD | 1 + test/integration/tls/BUILD | 1 + 10 files changed, 10 insertions(+) diff --git a/test/integration/apiserver/admissionwebhook/BUILD b/test/integration/apiserver/admissionwebhook/BUILD index c59a47eabd8..3804acaf435 100644 --- a/test/integration/apiserver/admissionwebhook/BUILD +++ b/test/integration/apiserver/admissionwebhook/BUILD @@ -7,6 +7,7 @@ go_test( "broken_webhook_test.go", "main_test.go", ], + rundir = ".", tags = [ "etcd", "integration", diff --git a/test/integration/auth/BUILD b/test/integration/auth/BUILD index ea2c4325bfc..31ea9cf1217 100644 --- a/test/integration/auth/BUILD +++ b/test/integration/auth/BUILD @@ -18,6 +18,7 @@ go_test( "rbac_test.go", "svcaccttoken_test.go", ], + rundir = ".", tags = ["integration"], deps = [ "//cmd/kube-apiserver/app/options:go_default_library", diff --git a/test/integration/client/BUILD b/test/integration/client/BUILD index 135991e8a96..a6232b87058 100644 --- a/test/integration/client/BUILD +++ b/test/integration/client/BUILD @@ -13,6 +13,7 @@ go_test( "dynamic_client_test.go", "main_test.go", ], + rundir = ".", tags = ["integration"], deps = [ "//cmd/kube-apiserver/app/testing:go_default_library", diff --git a/test/integration/dryrun/BUILD b/test/integration/dryrun/BUILD index 5bfe9dc37ed..4ac6d089be4 100644 --- a/test/integration/dryrun/BUILD +++ b/test/integration/dryrun/BUILD @@ -12,6 +12,7 @@ go_test( "dryrun_test.go", "main_test.go", ], + rundir = ".", tags = [ "etcd", "integration", diff --git a/test/integration/garbagecollector/BUILD b/test/integration/garbagecollector/BUILD index 6db4b00506b..298825a736f 100644 --- a/test/integration/garbagecollector/BUILD +++ b/test/integration/garbagecollector/BUILD @@ -8,6 +8,7 @@ go_test( "garbage_collector_test.go", "main_test.go", ], + rundir = ".", tags = ["integration"], deps = [ "//cmd/kube-apiserver/app/testing:go_default_library", diff --git a/test/integration/kubelet/BUILD b/test/integration/kubelet/BUILD index 3348b035f3c..15da0c502e5 100644 --- a/test/integration/kubelet/BUILD +++ b/test/integration/kubelet/BUILD @@ -6,6 +6,7 @@ go_test( "main_test.go", "watch_manager_test.go", ], + rundir = ".", tags = ["integration"], deps = [ "//cmd/kube-apiserver/app/testing:go_default_library", diff --git a/test/integration/master/BUILD b/test/integration/master/BUILD index 552a54131f6..4245af84e39 100644 --- a/test/integration/master/BUILD +++ b/test/integration/master/BUILD @@ -21,6 +21,7 @@ go_test( "synthetic_master_test.go", ], embed = [":go_default_library"], + rundir = ".", tags = ["integration"], deps = [ "//cmd/kube-apiserver/app/options:go_default_library", diff --git a/test/integration/scale/BUILD b/test/integration/scale/BUILD index f58a8b494da..2e1fae5beae 100644 --- a/test/integration/scale/BUILD +++ b/test/integration/scale/BUILD @@ -9,6 +9,7 @@ go_test( name = "go_default_test", size = "large", srcs = ["scale_test.go"], + rundir = ".", tags = ["integration"], deps = [ "//cmd/kube-apiserver/app/testing:go_default_library", diff --git a/test/integration/serving/BUILD b/test/integration/serving/BUILD index 005a708aaa6..440a54f8914 100644 --- a/test/integration/serving/BUILD +++ b/test/integration/serving/BUILD @@ -12,6 +12,7 @@ go_test( "main_test.go", "serving_test.go", ], + rundir = ".", tags = [ "etcd", "integration", diff --git a/test/integration/tls/BUILD b/test/integration/tls/BUILD index 024288b041b..bbefc09a88f 100644 --- a/test/integration/tls/BUILD +++ b/test/integration/tls/BUILD @@ -7,6 +7,7 @@ go_test( "ciphers_test.go", "main_test.go", ], + rundir = ".", tags = ["integration"], deps = [ "//cmd/kube-apiserver/app/testing:go_default_library",