Mark WilkensXL build versions
Some checks failed
Container Image / build-and-push (push) Has been cancelled
Some checks failed
Container Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -6,7 +6,20 @@ from src.readiness import check_readiness
|
||||
def test_readiness_reports_core_subsystems():
|
||||
result = check_readiness()
|
||||
|
||||
assert {"ready", "version", "checks", "timestamp"}.issubset(result.keys())
|
||||
assert {
|
||||
"ready",
|
||||
"version",
|
||||
"upstream_version",
|
||||
"app_version",
|
||||
"build_flavor",
|
||||
"build_version",
|
||||
"checks",
|
||||
"timestamp",
|
||||
}.issubset(result.keys())
|
||||
assert result["upstream_version"] == "1.0.1"
|
||||
assert result["app_version"] == result["upstream_version"]
|
||||
assert result["build_flavor"] == "wilkensxl"
|
||||
assert result["version"] == result["build_version"]
|
||||
checks = result["checks"]
|
||||
for name in ("database", "data_dir", "local_first"):
|
||||
assert name in checks, f"missing check: {name}"
|
||||
|
||||
11
tests/test_version_metadata.py
Normal file
11
tests/test_version_metadata.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""Tests for WilkensXL build metadata."""
|
||||
|
||||
from src.constants import APP_VERSION, BUILD_FLAVOR, BUILD_VERSION, FULL_VERSION, UPSTREAM_VERSION
|
||||
|
||||
|
||||
def test_custom_build_version_is_distinct_from_upstream_version():
|
||||
assert APP_VERSION == "1.0.1"
|
||||
assert UPSTREAM_VERSION == APP_VERSION
|
||||
assert BUILD_FLAVOR == "wilkensxl"
|
||||
assert BUILD_VERSION.startswith(f"{APP_VERSION}-wilkensxl.")
|
||||
assert FULL_VERSION == BUILD_VERSION
|
||||
Reference in New Issue
Block a user