Skip to content

Commit

Permalink
[fix] Workflow and test updated #274
Browse files Browse the repository at this point in the history
Fixes #274
  • Loading branch information
praptisharma28 committed Jun 1, 2024
1 parent 4a6ae39 commit d02db9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
20 changes: 4 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ services:
dockerfile: Dockerfile
ports:
- "8000:8000"
- "8089:8089/udp"
- "8090:8090/udp"
- "8091:8091/udp"
- "8092:8092/udp"
depends_on:
- influxdb
- influxdb2
- redis

influxdb:
Expand All @@ -29,20 +32,6 @@ services:
INFLUXDB_USER: openwisp
INFLUXDB_USER_PASSWORD: openwisp

influxdb2:
image: influxdb:2.0-alpine
volumes:
- influxdb2-data:/var/lib/influxdb2
ports:
- "8087:8086"
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: openwisp
DOCKER_INFLUXDB_INIT_PASSWORD: openwisp
DOCKER_INFLUXDB_INIT_ORG: openwisp
DOCKER_INFLUXDB_INIT_BUCKET: openwisp2
DOCKER_INFLUXDB_INIT_RETENTION: 1w

redis:
image: redis:5.0-alpine
ports:
Expand All @@ -51,4 +40,3 @@ services:

volumes:
influxdb-data: {}
influxdb2-data: {}
2 changes: 1 addition & 1 deletion openwisp_monitoring/db/backends/influxdb2/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def test_retry_mechanism(self, mock_query):

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

0 comments on commit d02db9c

Please sign in to comment.