|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") |
| 19 | +load("//csharp:build_opts.bzl", "target_frameworks", "targeting_packs") |
| 20 | +load("//csharp/Test:rules.bzl", "csharp_integration_test") |
| 21 | + |
| 22 | +csharp_integration_test( |
| 23 | + name = "test-failover", |
| 24 | + srcs = ["FailoverTest.cs"], |
| 25 | + deps = [ |
| 26 | + "//csharp:driver-csharp", |
| 27 | + "//csharp/Api:api", |
| 28 | + "//csharp/Answer:answer", |
| 29 | + "//csharp/Common:common", |
| 30 | + ], |
| 31 | + target_frameworks = target_frameworks, |
| 32 | + targeting_packs = targeting_packs, |
| 33 | + size = "large", |
| 34 | + data = [ |
| 35 | + "//tool/test:cluster-server.sh", |
| 36 | + "//tool/test/resources:encryption/ext-grpc-root-ca.pem", |
| 37 | + ], |
| 38 | + # Pass these paths via --test_env: --test_env=CLUSTER_SERVER_SCRIPT=<path> --test_env=ROOT_CA=<path> |
| 39 | + # The test drives an out-of-sandbox cluster started by start-cluster-servers.sh: |
| 40 | + # it kills/restarts nodes via cluster-server.sh, which writes to log files and |
| 41 | + # data directories under $CLUSTER_DIR (the outer workspace). The Bazel sandbox |
| 42 | + # blocks writes to those paths, so this test must run unsandboxed and locally, |
| 43 | + # and it relies on host-level state so cached results would be misleading. |
| 44 | + tags = ["external", "no-cache", "no-sandbox"], |
| 45 | +) |
| 46 | + |
| 47 | +checkstyle_test( |
| 48 | + name = "checkstyle", |
| 49 | + include = glob(["*"]), |
| 50 | + license_type = "apache-header", |
| 51 | +) |
0 commit comments