...
1load("@io_bazel_rules_go//go:def.bzl", "go_test")
2
3go_test(
4 name = "integration_test",
5 srcs = [
6 "banner_test.go",
7 "delete_test.go",
8 "health_test.go",
9 "rules_test.go",
10 "service_rules_test.go",
11 "setup_test.go",
12 "validation_test.go",
13 ],
14 # Argo does not support Bazel data dependencies.
15 # This data dependency is unnecessary for the tests to work
16 # but we need an empty list here so gazelle is happy.
17 data = [],
18 embedsrcs = [
19 "testdata/a-banner-id.json",
20 "testdata/default.json",
21 "testdata/README.md",
22 ],
23 tags = ["integration"],
24 visibility = ["//visibility:public"],
25 deps = [
26 "//pkg/lib/fog",
27 "//pkg/sds/emergencyaccess/config",
28 "//pkg/sds/emergencyaccess/eaconst",
29 "//pkg/sds/emergencyaccess/rules",
30 "//pkg/sds/emergencyaccess/rules/server",
31 "//pkg/sds/emergencyaccess/rules/setup",
32 "//pkg/sds/emergencyaccess/rules/storage/database",
33 "//pkg/sds/emergencyaccess/rules/storage/file",
34 "//test/f2",
35 "//test/f2/x/postgres",
36 "@com_github_gin_gonic_gin//:gin",
37 "@com_github_jackc_pgx_v4//stdlib",
38 "@com_github_stretchr_testify//assert",
39 "@com_github_stretchr_testify//require",
40 ],
41)
42
43genrule(
44 name = "testdata_copy",
45 srcs = [
46 "//pkg/sds/emergencyaccess/rules/server:testdata",
47 ],
48 outs = [
49 "testdata/a-banner-id.json",
50 "testdata/default.json",
51 ],
52 cmd = "mkdir -p $(RULEDIR)/testdata/ && cp $(SRCS) $(RULEDIR)/testdata/",
53)
View as plain text