From 7efcbc05a6aec06ad7b18af889a521f93227d48e Mon Sep 17 00:00:00 2001 From: SagiROosto Date: Wed, 27 Nov 2024 13:48:29 +0200 Subject: [PATCH] fix E2E test by setting scrape_interval to 10s and adding fqdn flag Signed-off-by: SagiROosto --- .circleci/config.yml | 2 +- end-to-end-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d541dbc..1ad19ab7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,7 +23,7 @@ jobs: command: | cat \<< EOF > prometheus.yml global: - scrape_interval: 1s + scrape_interval: 10s scrape_configs: - job_name: pushprox proxy_url: http://127.0.0.1:8080 diff --git a/end-to-end-test.sh b/end-to-end-test.sh index 3ceb681b..50841db9 100755 --- a/end-to-end-test.sh +++ b/end-to-end-test.sh @@ -29,7 +29,7 @@ while ! curl -s -f -L http://localhost:8080/clients; do sleep 2 done -./pushprox-client --log.level=debug --proxy-url=http://localhost:8080 & +./pushprox-client --log.level=debug --proxy-url=http://localhost:8080 --fqdn $(hostname) & echo $! > "${tmpdir}/client.pid" while [ "$(curl -s -L 'http://localhost:8080/clients' | jq 'length')" != '1' ] ; do echo 'Waiting for client'