Skip to content

Commit

Permalink
fix ips
Browse files Browse the repository at this point in the history
  • Loading branch information
schallert committed Feb 20, 2020
1 parent 3d90281 commit 99a2dfb
Show file tree
Hide file tree
Showing 16 changed files with 84 additions and 84 deletions.
2 changes: 1 addition & 1 deletion scripts/development/m3_stack/start_m3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ echo "Done validating topology"

echo "Waiting until shards are marked as available"
ATTEMPTS=100 TIMEOUT=2 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:7201/api/v1/placement | grep -c INITIALIZING)" -eq 0 ]'
'[ "$(curl -sSf 127.0.0.1:7201/api/v1/placement | grep -c INITIALIZING)" -eq 0 ]'

if [[ "$AGGREGATOR_PIPELINE" = true ]]; then
echo "Initializing M3Coordinator topology"
Expand Down
6 changes: 3 additions & 3 deletions scripts/docker-integration-tests/cold_writes_simple/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function write_data {
timestamp=$3
value=$4

respCode=$(curl -s -o /dev/null -X POST -w "%{http_code}" 0.0.0.0:9003/write -d '{
respCode=$(curl -s -o /dev/null -X POST -w "%{http_code}" 127.0.0.1:9003/write -d '{
"namespace": "'"$namespace"'",
"id": "'"$id"'",
"datapoint": {
Expand All @@ -47,7 +47,7 @@ function read_all {
id=$2
expected_datapoints=$3

received_datapoints=$(curl -sSf -X POST 0.0.0.0:9003/fetch -d '{
received_datapoints=$(curl -sSf -X POST 127.0.0.1:9003/fetch -d '{
"namespace": "'"$namespace"'",
"id": "'"$id"'",
"rangeStart": 0,
Expand Down Expand Up @@ -79,7 +79,7 @@ docker-compose -f ${COMPOSE_FILE} restart dbnode01

echo "Wait until bootstrapped"
ATTEMPTS=10 TIMEOUT=2 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:9002/health | jq .bootstrapped)" == true ]'
'[ "$(curl -sSf 127.0.0.1:9002/health | jq .bootstrapped)" == true ]'

echo "Expect to read 2 datapoints"
read_all "coldWritesRepairAndNoIndex" "foo" 2
40 changes: 20 additions & 20 deletions scripts/docker-integration-tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ function setup_single_m3db_node_long_namespaces {

echo "Wait for API to be available"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'

echo "Adding placement and agg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/create -d '{
curl -vvvsSf -X POST 127.0.0.1:${coordinator_port}/api/v1/database/create -d '{
"type": "cluster",
"namespaceName": "agg",
"retentionTime": "24h",
Expand All @@ -76,24 +76,24 @@ function setup_single_m3db_node_long_namespaces {

echo "Wait until placement is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'

wait_for_namespaces

echo "Adding agg2d namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/namespace/create -d '{
curl -vvvsSf -X POST 127.0.0.1:${coordinator_port}/api/v1/database/namespace/create -d '{
"namespaceName": "agg2d",
"retentionTime": "48h"
}'

echo "Wait until agg2d namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.agg2d.indexOptions.enabled)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.agg2d.indexOptions.enabled)" == true ]'


echo "Wait until bootstrapped"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${dbnode_health_port}"'/health | jq .bootstrapped)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${dbnode_health_port}"'/health | jq .bootstrapped)" == true ]'
}

function setup_single_m3db_node {
Expand All @@ -106,10 +106,10 @@ function setup_single_m3db_node {

echo "Wait for API to be available"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'

echo "Adding placement and agg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/create -d '{
curl -vvvsSf -X POST 127.0.0.1:${coordinator_port}/api/v1/database/create -d '{
"type": "cluster",
"namespaceName": "agg",
"retentionTime": "6h",
Expand All @@ -129,13 +129,13 @@ function setup_single_m3db_node {

echo "Wait until placement is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'

wait_for_namespaces

echo "Wait until bootstrapped"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${dbnode_health_port}"'/health | jq .bootstrapped)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${dbnode_health_port}"'/health | jq .bootstrapped)" == true ]'
}

function setup_two_m3db_nodes {
Expand All @@ -150,10 +150,10 @@ function setup_two_m3db_nodes {

echo "Wait for API to be available"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'

echo "Adding placement and agg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/create -d '{
curl -vvvsSf -X POST 127.0.0.1:${coordinator_port}/api/v1/database/create -d '{
"type": "cluster",
"namespaceName": "agg",
"retentionTime": "6h",
Expand Down Expand Up @@ -181,36 +181,36 @@ function setup_two_m3db_nodes {

echo "Wait until placement is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'"${dbnode_id_1}"'.id)" == \"'"${dbnode_id_1}"'\" ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'"${dbnode_id_1}"'.id)" == \"'"${dbnode_id_1}"'\" ]'

wait_for_namespaces

echo "Wait until bootstrapped"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${dbnode_host_1_health_port}"'/health | jq .bootstrapped)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${dbnode_host_1_health_port}"'/health | jq .bootstrapped)" == true ]'
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${dbnode_host_2_health_port}"'/health | jq .bootstrapped)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${dbnode_host_2_health_port}"'/health | jq .bootstrapped)" == true ]'
}

function wait_for_namespaces {
local coordinator_port=${COORDINATOR_PORT:-7201}

echo "Wait until agg namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.agg.indexOptions.enabled)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.agg.indexOptions.enabled)" == true ]'

echo "Adding unagg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/namespace/create -d '{
curl -vvvsSf -X POST 127.0.0.1:${coordinator_port}/api/v1/database/namespace/create -d '{
"namespaceName": "unagg",
"retentionTime": "6h"
}'

echo "Wait until unagg namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.unagg.indexOptions.enabled)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.unagg.indexOptions.enabled)" == true ]'

echo "Adding coldWritesRepairAndNoIndex namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/services/m3db/namespace -d '{
curl -vvvsSf -X POST 127.0.0.1:${coordinator_port}/api/v1/services/m3db/namespace -d '{
"name": "coldWritesRepairAndNoIndex",
"options": {
"bootstrapEnabled": true,
Expand All @@ -233,6 +233,6 @@ function wait_for_namespaces {

echo "Wait until coldWritesRepairAndNoIndex namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.coldWritesRepairAndNoIndex.coldWritesEnabled)" == true ]'
'[ "$(curl -sSf 127.0.0.1:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.coldWritesRepairAndNoIndex.coldWritesEnabled)" == true ]'
}

Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function prometheus_query_native {
result=$(curl -s \
-H "M3-Metrics-Type: ${metrics_type}" \
-H "M3-Storage-Policy: ${metrics_storage_policy}" \
"0.0.0.0:7201/api/v1/${endpoint}?query=${query}${params_prefixed}" | jq -r "${jq_path}")
"127.0.0.1:7201/api/v1/${endpoint}?query=${query}${params_prefixed}" | jq -r "${jq_path}")
test "$result" = "$expected_value"
return $?
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/docker-integration-tests/multi_cluster_write/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function write_data {
value=$4
port=$5

respCode=$(curl -s -o /dev/null -X POST -w "%{http_code}" 0.0.0.0:"$port"/write -d '{
respCode=$(curl -s -o /dev/null -X POST -w "%{http_code}" 127.0.0.1:"$port"/write -d '{
"namespace": "'"$namespace"'",
"id": "'"$id"'",
"datapoint": {
Expand All @@ -73,7 +73,7 @@ function read_all {
expected_datapoints=$3
port=$4

received_datapoints=$(curl -sSf -X POST 0.0.0.0:"$port"/fetch -d '{
received_datapoints=$(curl -sSf -X POST 127.0.0.1:"$port"/fetch -d '{
"namespace": "'"$namespace"'",
"id": "'"$id"'",
"rangeStart": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ t=$(date +%s)
function write_metrics {
NUM=$1
EXTRA=${2:-default}
echo "Writing $NUM metrics to [0.0.0.0:9003]"
echo "Writing $NUM metrics to [127.0.0.1:9003]"
set +x
for (( i=0; i<$NUM; i++ ))
do
curl -X POST 0.0.0.0:9003/writetagged -d '{
curl -X POST 127.0.0.1:9003/writetagged -d '{
"namespace": "unagg",
"id": "{__name__=\"'$METRIC_NAME'\",'$EXTRA'=\"extra\",val=\"'$i'\"}",
"tags": [
Expand Down
12 changes: 6 additions & 6 deletions scripts/docker-integration-tests/prometheus/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ function test_prometheus_remote_read {
# Ensure Prometheus can proxy a Prometheus query
echo "Wait until the remote write endpoint generates and allows for data to be queried"
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -sSf 0.0.0.0:9090/api/v1/query?query=prometheus_remote_storage_succeeded_samples_total | jq -r .data.result[0].value[1]) -gt 100 ]]'
'[[ $(curl -sSf 127.0.0.1:9090/api/v1/query?query=prometheus_remote_storage_succeeded_samples_total | jq -r .data.result[0].value[1]) -gt 100 ]]'
}

function test_prometheus_remote_write_multi_namespaces {
# Make sure we're proxying writes to the unaggregated namespace
echo "Wait until data begins being written to remote storage for the unaggregated namespace"
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -sSf 0.0.0.0:9090/api/v1/query?query=database_write_tagged_success\\{namespace=\"unagg\"\\} | jq -r .data.result[0].value[1]) -gt 0 ]]'
'[[ $(curl -sSf 127.0.0.1:9090/api/v1/query?query=database_write_tagged_success\\{namespace=\"unagg\"\\} | jq -r .data.result[0].value[1]) -gt 0 ]]'

# Make sure we're proxying writes to the aggregated namespace
echo "Wait until data begins being written to remote storage for the aggregated namespace"
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -sSf 0.0.0.0:9090/api/v1/query?query=database_write_tagged_success\\{namespace=\"agg\"\\} | jq -r .data.result[0].value[1]) -gt 0 ]]'
'[[ $(curl -sSf 127.0.0.1:9090/api/v1/query?query=database_write_tagged_success\\{namespace=\"agg\"\\} | jq -r .data.result[0].value[1]) -gt 0 ]]'
}

function prometheus_remote_write {
Expand Down Expand Up @@ -116,13 +116,13 @@ function test_query_limits_applied {
# coordinator (limit set to 100 in m3coordinator.yml)
echo "Test query limit with coordinator defaults"
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -s 0.0.0.0:7201/api/v1/query?query=\\{__name__!=\"\"\\} | jq -r ".data.result | length") -eq 100 ]]'
'[[ $(curl -s 127.0.0.1:7201/api/v1/query?query=\\{__name__!=\"\"\\} | jq -r ".data.result | length") -eq 100 ]]'

# Test the default series limit applied when directly querying
# coordinator (limit set by header)
echo "Test query limit with coordinator limit header"
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -s -H "M3-Limit-Max-Series: 10" 0.0.0.0:7201/api/v1/query?query=\\{__name__!=\"\"\\} | jq -r ".data.result | length") -eq 10 ]]'
'[[ $(curl -s -H "M3-Limit-Max-Series: 10" 127.0.0.1:7201/api/v1/query?query=\\{__name__!=\"\"\\} | jq -r ".data.result | length") -eq 10 ]]'
}

function prometheus_query_native {
Expand All @@ -142,7 +142,7 @@ function prometheus_query_native {
result=$(curl -s \
-H "M3-Metrics-Type: ${metrics_type}" \
-H "M3-Storage-Policy: ${metrics_storage_policy}" \
"0.0.0.0:7201/api/v1/${endpoint}?query=${query}${params_prefixed}" | jq -r "${jq_path}")
"127.0.0.1:7201/api/v1/${endpoint}?query=${query}${params_prefixed}" | jq -r "${jq_path}")
test "$result" = "$expected_value"
return $?
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ function test_replication_forwarding {
# Make sure both are up (otherwise forwarding could fail).
echo "Test both clusters responding to queries"
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -s 0.0.0.0:7201/api/v1/query?query=any | jq -r ".data.result | length") -eq 0 ]]'
'[[ $(curl -s 127.0.0.1:7201/api/v1/query?query=any | jq -r ".data.result | length") -eq 0 ]]'
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -s 0.0.0.0:17201/api/v1/query?query=any | jq -r ".data.result | length") -eq 0 ]]'
'[[ $(curl -s 127.0.0.1:17201/api/v1/query?query=any | jq -r ".data.result | length") -eq 0 ]]'
# Test writing.
echo "Test write data to first cluster"
Expand All @@ -89,7 +89,7 @@ function test_replication_forwarding {
# cluster using port 17201 from the second cluster's coordinator
echo "Test read replicated data"
ATTEMPTS=50 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \
'[[ $(curl -s 0.0.0.0:17201/api/v1/query?query=foo_replicate | jq -r ".data.result | length") -gt 0 ]]'
'[[ $(curl -s 127.0.0.1:17201/api/v1/query?query=foo_replicate | jq -r ".data.result | length") -gt 0 ]]'
}
# Run all tests
Expand Down
18 changes: 9 additions & 9 deletions scripts/docker-integration-tests/query_fanout/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ DBNODE_HOST=dbnode-cluster-c DBDNODE_PORT=29000 DBNODE_HEALTH_PORT=29002 COORDIN
setup_single_m3db_node

echo "Write data to cluster a"
curl -vvvsS -X POST 0.0.0.0:9003/writetagged -d '{
curl -vvvsS -X POST 127.0.0.1:9003/writetagged -d '{
"namespace": "unagg",
"id": "{__name__=\"test_metric\",cluster=\"cluster-a\",endpoint=\"/request\"}",
"tags": [
Expand All @@ -62,7 +62,7 @@ curl -vvvsS -X POST 0.0.0.0:9003/writetagged -d '{
}'

echo "Write data to cluster b"
curl -vvvsS -X POST 0.0.0.0:19003/writetagged -d '{
curl -vvvsS -X POST 127.0.0.1:19003/writetagged -d '{
"namespace": "unagg",
"id": "{__name__=\"test_metric\",cluster=\"cluster-b\",endpoint=\"/request\"}",
"tags": [
Expand All @@ -86,7 +86,7 @@ curl -vvvsS -X POST 0.0.0.0:19003/writetagged -d '{
}'

echo "Write data to cluster c"
curl -vvvsS -X POST 0.0.0.0:29003/writetagged -d '{
curl -vvvsS -X POST 127.0.0.1:29003/writetagged -d '{
"namespace": "unagg",
"id": "{__name__=\"test_metric\",cluster=\"cluster-c\",endpoint=\"/request\"}",
"tags": [
Expand All @@ -110,23 +110,23 @@ curl -vvvsS -X POST 0.0.0.0:29003/writetagged -d '{
}'

function read {
RESPONSE=$(curl "http://0.0.0.0:7201/api/v1/query?query=test_metric")
RESPONSE=$(curl "http://127.0.0.1:7201/api/v1/query?query=test_metric")
ACTUAL=$(echo $RESPONSE | jq .data.result[].metric.cluster | sort)
test "$(echo $ACTUAL)" = '"cluster-a" "cluster-b" "cluster-c"'
}

ATTEMPTS=5 TIMEOUT=1 retry_with_backoff read

function read_sum {
RESPONSE=$(curl "http://0.0.0.0:7201/api/v1/query?query=sum(test_metric)")
RESPONSE=$(curl "http://127.0.0.1:7201/api/v1/query?query=sum(test_metric)")
ACTUAL=$(echo $RESPONSE | jq .data.result[].value[1])
test $ACTUAL = '"126.370370367"'
}

ATTEMPTS=5 TIMEOUT=1 retry_with_backoff read_sum

echo "Write local tagged data to cluster a"
curl -vvvsS -X POST 0.0.0.0:19003/writetagged -d '{
curl -vvvsS -X POST 127.0.0.1:19003/writetagged -d '{
"namespace": "unagg",
"id": "{__name__=\"test_metric\",cluster=\"cluster-b\",endpoint=\"/request\",local-only=\"local\"}",
"tags": [
Expand Down Expand Up @@ -154,7 +154,7 @@ curl -vvvsS -X POST 0.0.0.0:19003/writetagged -d '{
}'

echo "Write remote tagged data to cluster b"
curl -vvvsS -X POST 0.0.0.0:19003/writetagged -d '{
curl -vvvsS -X POST 127.0.0.1:19003/writetagged -d '{
"namespace": "unagg",
"id": "{__name__=\"test_metric\",cluster=\"cluster-b\",endpoint=\"/request\",remote-only=\"remote\"}",
"tags": [
Expand Down Expand Up @@ -182,7 +182,7 @@ curl -vvvsS -X POST 0.0.0.0:19003/writetagged -d '{
}'

echo "Write remote tagged data to cluster c"
curl -vvvsS -X POST 0.0.0.0:29003/writetagged -d '{
curl -vvvsS -X POST 127.0.0.1:29003/writetagged -d '{
"namespace": "unagg",
"id": "{__name__=\"test_metric\",cluster=\"cluster-c\",endpoint=\"/request\",third-cluster=\"third\"}",
"tags": [
Expand Down Expand Up @@ -210,7 +210,7 @@ curl -vvvsS -X POST 0.0.0.0:29003/writetagged -d '{
}'

function complete_tags {
RESPONSE=$(curl "http://0.0.0.0:7201/api/v1/labels")
RESPONSE=$(curl "http://127.0.0.1:7201/api/v1/labels")
ACTUAL=$(echo $RESPONSE | jq .data[])
test "$(echo $ACTUAL)" = '"__name__" "cluster" "endpoint" "local-only" "remote-only" "third-cluster"'
}
Expand Down
Loading

0 comments on commit 99a2dfb

Please sign in to comment.