load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "couchdb", srcs = [ "constants.go", "couchdb.go", "secrets.go", ], embedsrcs = ["readOnly.js"], importpath = "edge-infra.dev/pkg/edge/datasync/couchdb", visibility = ["//visibility:public"], deps = [ "//pkg/lib/logging", "@com_github_go_kivik_kivik_v4//:kivik", "@com_github_go_kivik_kivik_v4//couchdb", "@io_k8s_api//core/v1:core", "@io_k8s_apimachinery//pkg/api/errors", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@io_k8s_sigs_controller_runtime//pkg/client", "@org_golang_x_crypto//pbkdf2", ], ) go_test( name = "couchdb_test", srcs = [ "couchb_test.go", "couchdb_security_test.go", "couchdb_test.go", "replication_secret_migration_test.go", "secrets_test.go", "user_secret_migration_test.go", ], embed = [":couchdb"], deps = [ "@com_github_stretchr_testify//assert", "@io_k8s_api//core/v1:core", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@io_k8s_apimachinery//pkg/types", "@io_k8s_sigs_controller_runtime//pkg/client", "@io_k8s_sigs_controller_runtime//pkg/client/fake", ], )