github.com/bazelbuild/rules_webtesting@v0.2.0/go/wtl/proxy/BUILD.bazel (about) 1 # Copyright 2016 Google Inc. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 # 15 ################################################################################ 16 # 17 load("//web:go.bzl", "go_web_test_suite") 18 load("@io_bazel_rules_go//go:def.bzl", "go_library") 19 20 package(default_testonly = True) 21 22 licenses(["notice"]) # Apache 2.0 23 24 go_library( 25 name = "go_default_library", 26 srcs = ["proxy.go"], 27 importpath = "github.com/bazelbuild/rules_webtesting/go/wtl/proxy", 28 visibility = ["//go/wtl:__subpackages__"], 29 deps = [ 30 "//go/errors:go_default_library", 31 "//go/healthreporter:go_default_library", 32 "//go/httphelper:go_default_library", 33 "//go/metadata:go_default_library", 34 "//go/portpicker:go_default_library", 35 "//go/wtl/diagnostics:go_default_library", 36 "//go/wtl/environment:go_default_library", 37 ], 38 ) 39 40 go_web_test_suite( 41 name = "go_default_test", 42 srcs = ["proxy_test.go"], 43 browser_overrides = { 44 "//browsers:chromium-local": { 45 "tags": ["noci"], 46 }, 47 "//browsers:firefox-local": { 48 "tags": ["noci"], 49 }, 50 "//browsers/sauce:chrome-win10": { 51 "tags": ["sauce"], 52 }, 53 }, 54 browsers = [ 55 "//browsers:chromium-local", 56 "//browsers:firefox-local", 57 "//browsers/sauce:chrome-win10", 58 ], 59 config = "//testdata:https", 60 deps = ["//go/httphelper:go_default_library"], 61 )