Skip to content

Commit

Permalink
Merge pull request #20 from TranslatorSRI/query_runner
Browse files Browse the repository at this point in the history
Fix install during setup
  • Loading branch information
maximusunc authored Jun 22, 2024
2 parents 847960b + 0d2a6ea commit b1990ce
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY . .
# make sure all is writeable for the nru USER later on
RUN chmod -R 777 .

RUN pip install .
RUN pip install -e .

# switch to the non-root user (nru). defined in the base image
USER nru
17 changes: 17 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.7'

services:
harness:
image: test-harness
container_name: test-harness
build:
context: .
volumes:
- ./logs:/app/logs
command: test-harness download sprint_4_tests
environment:
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
SLACK_TOKEN: ${SLACK_TOKEN}
SLACK_CHANNEL: ${SLACK_CHANNEL}
ZE_BASE_URL: ${ZE_BASE_URL}
ZE_REFRESH_TOKEN: ${ZE_REFRESH_TOKEN}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="sri-test-harness",
version="0.2.0",
version="0.2.1",
author="Max Wang",
author_email="[email protected]",
url="https://github.com/TranslatorSRI/TestHarness",
Expand Down
2 changes: 1 addition & 1 deletion test_harness/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from translator_testing_model.datamodel.pydanticmodel import TestCase

from test_harness.runner.runner import QueryRunner
from test_harness.runner.query_runner import QueryRunner
from test_harness.reporter import Reporter
from test_harness.slacker import Slacker
from test_harness.result_collector import ResultCollector
Expand Down
Empty file added test_harness/runner/__init__.py
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ async def get_ars_responses(
}
async with httpx.AsyncClient(timeout=30) as client:
# retain this response for testing
# res = await client.post(f"{base_url}/ars/api/retain/{parent_pk}")
# res.raise_for_status()
res = await client.post(f"{base_url}/ars/api/retain/{parent_pk}")
res.raise_for_status()
# Get all children queries
res = await client.get(f"{base_url}/ars/api/messages/{parent_pk}?trace=y")
res.raise_for_status()
Expand Down

0 comments on commit b1990ce

Please sign in to comment.