add test for influx v1.8 and v2.6.1 (#3790)

* add test for influx v1.8 and v2.6.1

* modify arfument org to organisation

---------

Co-authored-by: Peter Hedenskog <peter@soulgalore.com>
This commit is contained in:
Roman Voitseshevskyi 2023-03-16 20:49:33 +02:00 committed by GitHub
parent 503502d05e
commit 881132f8dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -63,4 +63,8 @@ jobs:
- name: Run test with Graphite
run: bin/sitespeed.js http://127.0.0.1:3001/simple/ -n 1 --graphite.host 127.0.0.1 --xvfb
- name: Run test without a CLI
run: xvfb-run node test/runWithoutCli.js
run: xvfb-run node test/runWithoutCli.js
- name: Run test with Influx 1.8
run: bin/sitespeed.js http://127.0.0.1:3001/simple/ -n 1 --influxdb.host 127.0.0.1 --xvfb
- name: Run test with Influx 2.6.1
run: bin/sitespeed.js http://127.0.0.1:3001/simple/ -n 1 --influxdb.host 127.0.0.1 --influxdb.port 8087 --influxdb.version 2 --influxdb.organisation sitespeed --influxdb.token sitespeed --xvfb

View File

@ -4,4 +4,21 @@ services:
image: sitespeedio/graphite:1.1.5-12
ports:
- "2003:2003"
- "8080:80"
- "8080:80"
influxdb_v1.8:
image: influxdb:1.8
ports:
- '8086:8086'
environment:
- INFLUXDB_DB=sitespeed
influxdb_v2.6:
image: influxdb:2.6.1
ports:
- '8087:8086'
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=sitespeed
- DOCKER_INFLUXDB_INIT_PASSWORD=sitespeed
- DOCKER_INFLUXDB_INIT_ORG=sitespeed
- DOCKER_INFLUXDB_INIT_BUCKET=sitespeed
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=sitespeed