mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
When trying to fix a dockershim issue, there were not any unit tests for dockershim/exec.go and it was difficult to add the corresponding unit test for the bug. This adds the unit tests for avoiding such situation in the future.
30 lines
919 B
Python
30 lines
919 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = ["mock_client.go"],
|
|
importpath = "k8s.io/kubernetes/pkg/kubelet/dockershim/libdocker/testing",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg/kubelet/dockershim/libdocker:go_default_library",
|
|
"//vendor/github.com/docker/docker/api/types:go_default_library",
|
|
"//vendor/github.com/docker/docker/api/types/container:go_default_library",
|
|
"//vendor/github.com/docker/docker/api/types/image:go_default_library",
|
|
"//vendor/github.com/golang/mock/gomock:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|