Skip to content

Commit d02db9c

Browse files
[fix] Workflow and test updated #274
Fixes #274
1 parent 4a6ae39 commit d02db9c

2 files changed

Lines changed: 5 additions & 17 deletions

File tree

docker-compose.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ services:
88
dockerfile: Dockerfile
99
ports:
1010
- "8000:8000"
11+
- "8089:8089/udp"
12+
- "8090:8090/udp"
13+
- "8091:8091/udp"
14+
- "8092:8092/udp"
1115
depends_on:
1216
- influxdb
13-
- influxdb2
1417
- redis
1518

1619
influxdb:
@@ -29,20 +32,6 @@ services:
2932
INFLUXDB_USER: openwisp
3033
INFLUXDB_USER_PASSWORD: openwisp
3134

32-
influxdb2:
33-
image: influxdb:2.0-alpine
34-
volumes:
35-
- influxdb2-data:/var/lib/influxdb2
36-
ports:
37-
- "8087:8086"
38-
environment:
39-
DOCKER_INFLUXDB_INIT_MODE: setup
40-
DOCKER_INFLUXDB_INIT_USERNAME: openwisp
41-
DOCKER_INFLUXDB_INIT_PASSWORD: openwisp
42-
DOCKER_INFLUXDB_INIT_ORG: openwisp
43-
DOCKER_INFLUXDB_INIT_BUCKET: openwisp2
44-
DOCKER_INFLUXDB_INIT_RETENTION: 1w
45-
4635
redis:
4736
image: redis:5.0-alpine
4837
ports:
@@ -51,4 +40,3 @@ services:
5140

5241
volumes:
5342
influxdb-data: {}
54-
influxdb2-data: {}

openwisp_monitoring/db/backends/influxdb2/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def test_retry_mechanism(self, mock_query):
420420

421421
class TestDatabaseClientUdp(TestMonitoringMixin, TestCase):
422422
def test_exceed_udp_packet_limit(self):
423-
# InfluxDB 2.x does not use UDP for writing data, but this test is kept
423+
# InfluxDB 2.x does not use UDP for writing data, but this is kept
424424
# for backward compatibility reference
425425
timeseries_db.write(
426426
'test_udp_write', dict(value='O' * 66000), database=self.TEST_DB

0 commit comments

Comments
 (0)