...

Text file src/edge-infra.dev/pkg/edge/datasync/controllers/couchctl/test_readme.md

Documentation: edge-infra.dev/pkg/edge/datasync/controllers/couchctl

     1# Run CouchCTL integration test
     2
     3## Install Telepresence
     4
     5Telepresence allow us to run integration test locally against CouchDB.
     6To install it, follow the guide [here](https://www.telepresence.io/docs/latest/quick-start/).
     7Then follow the steps below
     8
     9```shell
    10kubectl config use-context <your context>
    11telepresence helm install
    12telepresence connect
    13telepresence intercept --namespace data-sync-couchdb data-sync-couchdb --local-only
    14```
    15
    16## Running the test using bazel
    17
    18To run the couchctl tests, run the command below.
    19To select which env to run against change the args variables from `go_test` [here](./BUILD.bazel).
    20
    21```js
    22args = [
    23    "-fleet-type=store",
    24    "-cluster-type=dsds",
    25]
    26```
    27
    28```shell
    29just test //pkg/edge/datasync/controllers/couchctl:couchctl_test
    30```
    31
    32
    33
    34
    35

View as plain text