Skip to content

Add end to end tests#160

Open
aagbsn wants to merge 70 commits intomainfrom
add_end_to_end_tests
Open

Add end to end tests#160
aagbsn wants to merge 70 commits intomainfrom
add_end_to_end_tests

Conversation

@aagbsn
Copy link
Copy Markdown
Contributor

@aagbsn aagbsn commented Mar 24, 2026

No description provided.

aagbsn added 30 commits March 11, 2026 13:35
add these services to docker-compose.yml
FIXME: parametize this
diff --git a/tests/integration/tests/conftest.py b/tests/integration/tests/conftest.py
index 36b7ca6..8ca007e 100644
--- a/tests/integration/tests/conftest.py
+++ b/tests/integration/tests/conftest.py
@@ -98,7 +98,7 @@ def params_since_and_until_with_two_days():

 @pytest.fixture
 def params_since_and_until_with_ten_days():
-    return set_since_and_until_params(since="2026-01-01", until="2026-01-02")
+    return set_since_and_until_params(since="2026-01-01", until="2026-01-10")

 def set_since_and_until_params(since, until):
diff --git a/tests/integration/tests/test_oonidata_aggregate_analysis.py b/tests/integration/tests/test_oonidata_aggregate_analysis.py
index 23762bd..6bad311 100644
--- a/tests/integration/tests/test_oonidata_aggregate_analysis.py
+++ b/tests/integration/tests/test_oonidata_aggregate_analysis.py
@@ -3,7 +3,7 @@ import os

 route = "/api/v1/aggregation/analysis"
 since = "2026-01-01"
-until = "2026-01-02"
+until = "2026-01-10"

 def test_oonidata_aggregation_analysis(client):
diff --git a/tests/integration/tests/test_oonidata_list_analysis.py b/tests/integration/tests/test_oonidata_list_analysis.py
index 1be6fce..64af92e 100644
--- a/tests/integration/tests/test_oonidata_list_analysis.py
+++ b/tests/integration/tests/test_oonidata_list_analysis.py
@@ -2,7 +2,7 @@ import pytest

 route = "/api/v1/analysis"
 since = "2026-01-01"
-until = "2026-01-02"
+until = "2026-01-10"

 def test_oonidata_list_analysis(client):
--- a/tests/integration/docker-compose.yml
+++ b/tests/integration/docker-compose.yml
@@ -57,7 +57,7 @@ services:
     environment:
       CLICKHOUSE_URL: "http://testuser:testuser@clickhouse:9000/ooni"
     command: >
-      bash -c "./run_fastpath --debug --clickhouse-url $CLICKHOUSE_URL  --stdout"
+      bash -c "./run_fastpath --debug --clickhouse-url $CLICKHOUSE_URL --keep-s3-cache --write-to-disk --stdout --start-day 2026-01-01 --end-day 2026-01-10 --noapi"
     depends_on:
       clickhouse:
         condition: service_healthy
aagbsn added 14 commits April 8, 2026 13:55
This reverts commit ca9155f.

Try to use docker directly again and obtain debug logging
fastpath doesn't seem to injest these from disk and this seems to create
a double dependency of the downloader service, so it gets invoked twice
variable expansion works slightly differently in docker compose than
podman compose; so the CLICKHOSUE_URL was not being expanded correctly
@aagbsn aagbsn force-pushed the add_end_to_end_tests branch from e4092e4 to 3cf400e Compare April 10, 2026 08:35
@aagbsn aagbsn force-pushed the add_end_to_end_tests branch from 2ef34e1 to 6d94632 Compare April 20, 2026 11:27
@aagbsn aagbsn force-pushed the add_end_to_end_tests branch from ba5f89a to 2abfea4 Compare April 20, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant