To contribute a Conformance Test Result, please follow these steps:
NOTE: The following steps presuppose that you have already forked and cloned the
pact-catalog
repository. If that is not the case, please go back to the main instructions and follow them in order.
From the parent directory of your local repository run
Please note: All text between angle brackets (< >
) should be replaced by actual values. Please make sure that the values replacing <your-user-id>
, <your-solution-id>
, <your-solution-version>
only include lowercase letters and dashes (instead of whitespace). The value replacing <your-solution-version>
should follow the X.Y.Z
format. The value replacing <test-number>
should follow the XYZ
format, i.e., include three digits from 0 to 9. If this is the first test for a particular solution, please replace it with 001
. Please make sure that these remain consistent.
touch catalog/conformance-tests/result-<your-solution-id>-<test-number>.json
E.g., touch catalog/conformance-tests/result-example-solution-001.json
Open the json
file created in step 5. and fill it adapting the following structure:
Scenario 1: If you tested your solution with another Organization's solution
{
"tested_solution": {
"solution_id": "<your-solution-id>", // e.g. 'Example Solution' has solution id "example-solution"
"version": "<your-solution-version>" // e.g. "0.0.0"
},
"tested_by": {
"version": "<solution-version>",
"solution_id": "<solution-id>" // e.g. "another-solution"
},
"test_result": "passed",
"test_date": "<date>",
"pathfinder_version": "<pathfinder-framework-version>" // "1.0.0" or "1.0.1" or "2.0.0" or "2.0.1" or "2.1.0"
}
Scenario 2: If you tested your solution with an Organization who doesn't have a solution yet or has a solution but not (yet) onboarded to the PACT Catalog
{
"tested_solution": {
"solution_id": "<your-solution-id>", // e.g. 'Example Solution' has solution id "example-solution"
"version": "<your-solution-version>" // e.g. "0.0.0"
},
"tested_by": {
"collaborator_id": "<user-id>" // This field must match the `user-id` this Organization has registered in the PACT Catalog e.g. "abc-corp"
},
"test_result": "passed",
"test_date": "<date>",
"pathfinder_version": "<pathfinder-framework-version>" // "1.0.0" or "1.0.1" or "2.0.0" or "2.0.1" or "2.1.0"
}
In case your solution did not pass the test but you nevertheless want to add the conformance test result to the catalog, replace the value of the "test_result"
field by "failed"
.
The <pathfinder-framework-version>
can be either 1.0.0
or 1.0.1
or 2.0.0
or 2.0.1
or "2.1.0".
If your solution was tested for specific extensions, please add also the field "tests"
, based on the following structure:
"extensions_tested": [
{
"namespace": "@<user-id>",
"extension_name": "<extension-id>",
"version": "<extension-version>"
}
]
Please refer to this example to see how your conformance test json
should look like.
Please continue from step 6 of the main instructions.
Your Pull Request will be reviewed and your conformance test result added to the PACT Online Catalog as soon as possible.
NOTE: Conformance test results are shown in the
Conformance
tab of a specific solution's page. If you have not yet added the tested solution to the catalog, then the data about the test results will not be visible. It will, nevertheless, be included in the catalog, and will become visible as soon as the tested solution is also added.
NOTE: By submitting a Conformance Test Result you acknowledge that you have read and accepted the Catalog's Terms and Conditions.