github.com/m3db/m3@v1.5.0/scripts/docker-integration-tests/query_fanout/restrict.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -ex
     4  TEST_PATH="$M3_PATH"/scripts/docker-integration-tests
     5  FANOUT_PATH=$TEST_PATH/query_fanout
     6  source $TEST_PATH/common.sh
     7  source $FANOUT_PATH/warning.sh
     8  
     9  function test_restrictions {
    10    t=$(date +%s)
    11    METRIC_NAME="foo_$t"
    12    # # write 5 metrics to cluster a
    13    write_metrics coordinator-cluster-a 5
    14    # write 10 metrics to cluster b
    15    write_metrics coordinator-cluster-b 10
    16  
    17    # unlimited query against cluster a has no header
    18    ATTEMPTS=3 TIMEOUT=1 retry_with_backoff go run $FANOUT_PATH/restrict.go -t $t
    19  }