2020from utils ._context ._scenarios import scenarios , Scenario
2121from utils ._logger import logger
2222from utils .scripts .junit_report import junit_modifyreport
23- from utils ._context .library_version import LibraryVersion
23+ from utils ._context .component_version import ComponentVersion
2424from utils ._decorators import released , configure as configure_decorators
2525from utils .properties_serialization import SetupProperties
2626
@@ -237,7 +237,7 @@ def _get_skip_reason_from_marker(marker: pytest.Mark) -> str | None:
237237def pytest_pycollect_makemodule (module_path : Path , parent : pytest .Session ) -> None | pytest .Module :
238238 # As now, declaration only works for tracers at module level
239239
240- library = context .library .library
240+ library = context .library .name
241241
242242 manifests = load_manifests ()
243243
@@ -487,7 +487,9 @@ def pytest_sessionfinish(session: pytest.Session, exitstatus: int) -> None:
487487 if context .scenario .is_main_worker :
488488 with open (f"{ context .scenario .host_log_folder } /known_versions.json" , "w" , encoding = "utf-8" ) as f :
489489 json .dump (
490- {library : sorted (versions ) for library , versions in LibraryVersion .known_versions .items ()}, f , indent = 2
490+ {library : sorted (versions ) for library , versions in ComponentVersion .known_versions .items ()},
491+ f ,
492+ indent = 2 ,
491493 )
492494
493495 data = session .config ._json_report .report # noqa: SLF001
@@ -510,7 +512,7 @@ def export_feature_parity_dashboard(session: pytest.Session, data: dict) -> None
510512 "runDate" : data ["created" ],
511513 "environment" : session .config .option .report_environment or "local" ,
512514 "testSource" : "systemtests" ,
513- "language" : context .library .library ,
515+ "language" : context .library .name ,
514516 "variant" : context .weblog_variant ,
515517 "testedDependencies" : [
516518 {"name" : name , "version" : str (version )} for name , version in context .scenario .components .items ()
0 commit comments