Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bats test fixes #8727

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ teardown() {

# Telegraf instance
setup_home_dir
export INFLUX_PORT="$(random_port)"
export OCKAM_INFLUX_PORT="$(random_port)"

run_success "$OCKAM" identity create telegraf
run_success "$OCKAM" project enroll "${ADMIN_HOME}/telegraf.ticket" --identity telegraf
run_success "$OCKAM" node create telegraf --identity telegraf
run_success "$OCKAM" tcp-inlet create --at /node/telegraf --from "${INFLUX_PORT}" \
run_success "$OCKAM" tcp-inlet create --at /node/telegraf --from "${OCKAM_INFLUX_PORT}" \
--via $relay_name --allow '(= subject.component "influxdb")'

run_success kill_telegraf_instance
Expand All @@ -128,5 +128,5 @@ teardown() {
--header "Accept: application/csv" \
--header 'Content-type: application/vnd.flux' \
--data "from(bucket:\"$INFLUX_BUCKET\") |> range(start:-1m)" \
"http://localhost:$INFLUX_PORT/api/v2/query?org=$INFLUX_ORG"
"http://localhost:$OCKAM_INFLUX_PORT/api/v2/query?org=$INFLUX_ORG"
}
Loading