generated from coulomb/repo-seed
Setting up Open CMIS TCK
This commit is contained in:
@@ -138,6 +138,7 @@ def _run_configured_tck(
|
||||
"target_profile_id": context["target_profile"]["id"],
|
||||
"repository_id": _repository_id(context),
|
||||
"browser_binding_url": _browser_url(context),
|
||||
"credentials_ref": _credentials_ref(context),
|
||||
},
|
||||
)
|
||||
|
||||
@@ -424,6 +425,8 @@ def _expand_arg(
|
||||
.replace("{extension_path}", context["extension_path"])
|
||||
.replace("{browser_url}", _browser_url(context) or "")
|
||||
.replace("{repository_id}", _repository_id(context) or "")
|
||||
.replace("{credentials_ref}", _credentials_ref(context) or "")
|
||||
.replace("{target_profile_dir}", _target_profile_dir(context) or "")
|
||||
.replace("{check_group}", selected_group or "")
|
||||
.replace("{target_id}", context["target_profile"]["id"])
|
||||
.replace("{timeout_seconds}", str(int(_timeout_seconds(context))))
|
||||
@@ -442,6 +445,18 @@ def _repository_id(context: dict[str, Any]) -> str | None:
|
||||
return value if isinstance(value, str) else None
|
||||
|
||||
|
||||
def _credentials_ref(context: dict[str, Any]) -> str | None:
|
||||
value = context["target_profile"].get("credentials_ref")
|
||||
return value if isinstance(value, str) else None
|
||||
|
||||
|
||||
def _target_profile_dir(context: dict[str, Any]) -> str | None:
|
||||
path = context["plan"].get("profile_paths", {}).get("target_profile_path")
|
||||
if not isinstance(path, str) or not path:
|
||||
return None
|
||||
return str(Path(path).resolve().parent)
|
||||
|
||||
|
||||
def _timeout_seconds(context: dict[str, Any]) -> float:
|
||||
runtime_policy = context["assessment_profile"].get("runtime_policy", {})
|
||||
opencmis_policy = _opencmis_policy(context)
|
||||
|
||||
Reference in New Issue
Block a user