Skip to content

Commit

Permalink
Issue #112/#117 remove now unused conf/backend_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Mar 1, 2024
1 parent aac1c91 commit f577039
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
12 changes: 0 additions & 12 deletions conf/backend_config.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/openeo_aggregator/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ def create_app(config: Any = None, auto_logging_setup: bool = True, flask_error_

log_version_info(logger=_log)

# TODO #112 move this default to the AggregatorBackendConfig getter (get_backend_config)
os.environ.setdefault(ConfigGetter.OPENEO_BACKEND_CONFIG, str(get_config_dir() / "backend_config.py"))

config: AggregatorConfig = get_config(config)
_log.info(f"Using config: {config.config_source=!r}")

Expand Down
24 changes: 0 additions & 24 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,30 +135,6 @@ def test_health_check_invalid_backend(self, api100, requests_mock, backend1, bac
}


class TestGeneralRealConfig:
"""Some temporary test against real config (that is going to be moved out of this repo at some point)"""

@pytest.fixture(autouse=True)
def real_config(self, monkeypatch):
openeo_driver.config.load._backend_config_getter.flush()
monkeypatch.setenv(
openeo_driver.config.load.ConfigGetter.OPENEO_BACKEND_CONFIG,
str(get_config_dir() / "backend_config.py"),
)
yield
openeo_driver.config.load._backend_config_getter.flush()

def test_title_and_description(self, api100):
res = api100.get("/").assert_status_code(200)
capabilities = res.json
assert capabilities["title"] == "openEO Platform"
assert capabilities["description"] == "openEO Platform, provided through openEO Aggregator Driver"

def test_only_oidc_auth(self, api100):
res = api100.get("/").assert_status_code(200)
capabilities = res.json
endpoints = {e["path"] for e in capabilities["endpoints"]}
assert {e for e in endpoints if e.startswith("/credentials")} == {"/credentials/oidc"}


class TestCatalog:
Expand Down

0 comments on commit f577039

Please sign in to comment.