generated from coulomb/repo-seed
Setting up Open CMIS TCK
This commit is contained in:
@@ -26,6 +26,53 @@ The CMIS target profile uses the guide-board `target-profile` schema:
|
||||
- `known_gaps`: list unsupported optional requirements with a stable gap ID,
|
||||
requirement refs, reason, and status such as `unsupported_by_design`.
|
||||
|
||||
Templates live under `profiles/targets/templates/`:
|
||||
|
||||
- `cmis-browser-anonymous.json`
|
||||
- `cmis-browser-basic-auth-env.json`
|
||||
- `cmis-browser-basic-auth-file.json`
|
||||
|
||||
## Credential References
|
||||
|
||||
Secrets should not be committed to the repository or preserved in guide-board
|
||||
artifacts.
|
||||
|
||||
Supported credential reference forms:
|
||||
|
||||
```text
|
||||
null
|
||||
env:CMIS_TCK_USER,CMIS_TCK_PASSWORD
|
||||
file:/absolute/path/to/cmis-tck-credentials.json
|
||||
```
|
||||
|
||||
Environment variables are useful for local runs:
|
||||
|
||||
```sh
|
||||
export CMIS_TCK_USER='alice'
|
||||
export CMIS_TCK_PASSWORD='local-secret'
|
||||
```
|
||||
|
||||
File credentials use JSON:
|
||||
|
||||
```json
|
||||
{
|
||||
"user": "alice",
|
||||
"password": "local-secret"
|
||||
}
|
||||
```
|
||||
|
||||
The ConsoleRunner adapter writes a private session properties file only for the
|
||||
duration of the run and retains `session.properties.redacted` as the artifact.
|
||||
|
||||
Validate target profiles through guide-board before running:
|
||||
|
||||
```sh
|
||||
cd ../guide-board
|
||||
PYTHONPATH=src python3 -m guide_board \
|
||||
profile validate-target \
|
||||
../open-cmis-tck/profiles/targets/kontextual-cmis-compat.json
|
||||
```
|
||||
|
||||
## Assessment Runtime Fields
|
||||
|
||||
Repository selection and harness execution settings live in the assessment
|
||||
@@ -39,7 +86,28 @@ profile because they are run policy, not target identity:
|
||||
"opencmis_tck": {
|
||||
"repository_id": "compat-tck",
|
||||
"requires_java_maven": true,
|
||||
"command": ["java", "-jar", "/assets/opencmis-tck-runner.jar"]
|
||||
"command": [
|
||||
"python3",
|
||||
"{extension_path}/adapters/opencmis_console_adapter.py",
|
||||
"--browser-url",
|
||||
"{browser_url}",
|
||||
"--repository-id",
|
||||
"{repository_id}",
|
||||
"--check-group",
|
||||
"{check_group}",
|
||||
"--artifact-dir",
|
||||
"{artifact_dir}",
|
||||
"--run-dir",
|
||||
"{run_dir}",
|
||||
"--extension-path",
|
||||
"{extension_path}",
|
||||
"--credentials-ref",
|
||||
"{credentials_ref}",
|
||||
"--target-profile-dir",
|
||||
"{target_profile_dir}",
|
||||
"--timeout-seconds",
|
||||
"{timeout_seconds}"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user