Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deployment/bin/lib
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function cluster_login() {
echo "Converting kubeconfig..."
kubelogin convert-kubeconfig \
-l azurecli \
--kubeconfig=kubeconfig
--kubeconfig=kubeconfig \
--yes
export KUBECONFIG=kubeconfig
}

Expand Down
4 changes: 4 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
build:
context: .
dockerfile: pcstac/Dockerfile.dev
additional_contexts:
pc-apis-stac: "service:stac"
environment:
- ENVIRONMENT=development
- POSTGRES_USER=username
Expand Down Expand Up @@ -73,6 +75,8 @@ services:
build:
context: .
dockerfile: pctiler/Dockerfile.dev
additional_contexts:
pc-apis-tiler: "service:tiler"
environment:
- ENVIRONMENT=development
- FF_VRT="yes"
Expand Down
18 changes: 0 additions & 18 deletions pctiler/pctiler/endpoints/configuration.py

This file was deleted.

15 changes: 1 addition & 14 deletions pctiler/pctiler/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@
from pccommon.openapi import fixup_schema
from pccommon.redis import connect_to_redis
from pctiler.config import get_settings
from pctiler.endpoints import (
configuration,
health,
item,
legend,
pg_mosaic,
vector_tiles,
)
from pctiler.endpoints import health, item, legend, pg_mosaic, vector_tiles
from pctiler.middleware import ModifyResponseMiddleware

# Get the root path if set in the environment
Expand Down Expand Up @@ -114,12 +107,6 @@ async def lifespan(app: FastAPI) -> AsyncGenerator:
tags=["Collection vector tile endpoints"],
)

app.include_router(
configuration.configuration_router,
prefix=settings.configuration_endpoint_prefix,
tags=["Map configuration endpoints"],
)

app.include_router(health.health_router, tags=["Liveliness/Readiness"])

add_timeout(app, settings.request_timeout)
Expand Down
4 changes: 2 additions & 2 deletions pctiler/tests/endpoints/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
@pytest.mark.integration
async def test_config_token_endpoint(client: AsyncClient) -> None:
response = await client.get("/config/map/token")
assert response.status_code == 200
assert response.json()["token"]
# We expect this path to be not found
assert response.status_code == 404
2 changes: 1 addition & 1 deletion scripts/bin/test-stac
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
flake8 pcstac/pcstac pcstac/tests

echo "Running unit tests for stac..."
python3 -m pytest pcstac/tests
python3 -m pytest -vv pcstac/tests

fi