Skip to content

Commit

Permalink
try fixing server config during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Dec 21, 2023
1 parent 966b5f5 commit 3725b4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import pytest_asyncio
from rest_tools.client import RestClient

from file_catalog.config import Config
from file_catalog.mongo import Mongo
from file_catalog.server import create

Expand Down Expand Up @@ -86,14 +87,15 @@ async def rest(monkeypatch: MonkeyPatch, mongo: Mongo, port: int) -> AsyncGenera
monkeypatch.delenv("OTEL_EXPORTER_OTLP_ENDPOINT", raising=False)
monkeypatch.setenv("WIPACTEL_EXPORT_STDOUT", "FALSE")

config: Dict[str, Any] = {
config: Config = Config()
config.update({
"AUTH_AUDIENCE": "file-catalog-testing",
"AUTH_OPENID_URL": "https://keycloak.icecube.wisc.edu/auth/realms/IceCube",
"FC_HOST": "localhost",
"FC_PORT": port,
"FC_PUBLIC_URL": f"http://localhost:{port}",
"FC_QUERY_FILE_LIST_LIMIT": 10000,
}
})

rest_server = create(config=config,
port=port,
Expand Down

0 comments on commit 3725b4b

Please sign in to comment.