load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "integration_test", srcs = [ "banner_test.go", "delete_test.go", "health_test.go", "rules_test.go", "service_rules_test.go", "setup_test.go", "validation_test.go", ], # Argo does not support Bazel data dependencies. # This data dependency is unnecessary for the tests to work # but we need an empty list here so gazelle is happy. data = [], embedsrcs = [ "testdata/a-banner-id.json", "testdata/default.json", "testdata/README.md", ], tags = ["integration"], visibility = ["//visibility:public"], deps = [ "//pkg/lib/fog", "//pkg/sds/emergencyaccess/config", "//pkg/sds/emergencyaccess/eaconst", "//pkg/sds/emergencyaccess/rules", "//pkg/sds/emergencyaccess/rules/server", "//pkg/sds/emergencyaccess/rules/setup", "//pkg/sds/emergencyaccess/rules/storage/database", "//pkg/sds/emergencyaccess/rules/storage/file", "//test/f2", "//test/f2/x/postgres", "@com_github_gin_gonic_gin//:gin", "@com_github_jackc_pgx_v4//stdlib", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], ) genrule( name = "testdata_copy", srcs = [ "//pkg/sds/emergencyaccess/rules/server:testdata", ], outs = [ "testdata/a-banner-id.json", "testdata/default.json", ], cmd = "mkdir -p $(RULEDIR)/testdata/ && cp $(SRCS) $(RULEDIR)/testdata/", )