Build Status | |
---|---|
Coverage | |
CodeQL | |
License |
The two following subsections provide instructions for running either only the infrastructure on docker-compose and the application in the IDE, or for running the full stack (including the application) in docker-compose.
-
Start the necessary infrastructure by running
docker-compose up
-
Start the application from your favorite IDE
- Run
docker-compose --profile irs up
- Run
docker-compose --profile debug up
- This will start additional containers:
- Prometheus, a server to collect and query metrics. Prometheus is available at http://localhost:9091/.
- Retrieve sample BOM:
curl -X 'POST' \
'http://localhost:8080/irs/jobs' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"aspects": [
"SerialPartTypization"
],
"bomLifecycle": "asBuilt",
"depth": 1,
"direction": "downward",
"globalAssetId": "urn:uuid:8a61c8db-561e-4db0-84ec-a693fc5ffdf6"
}'
curl -X 'GET' 'http://localhost:8080/irs/jobs/<jobID from first call>' -H 'accept: application/json'
- Swagger UI: http://localhost:8080/api/swagger-ui
- API docs: http://localhost:8080/api/api-docs
- API docs in yaml: http://localhost:8080/api/api-docs.yaml
The latest version on main is automatically picked up by ArgoCD and deployed to the DEV environment. See https://catenax-ng.github.io/.
http://irs.int.demo.catena-x.net/api/swagger-ui/index.html?configUrl=/api/api-docs/swagger-config
Not available yet.
Smoke tests are running against the application and the consumer connectors in the IRS Smoke tests pipeline.
To run the tests against locally running application provide baseURI
(IRS API base URI, by default http://localhost:8080).
If you want to run it against connector you need to add the following VM options:
-DbaseURI=<consumer-artifact-uri> -Dusername=<username-to-access-consumer> -Dpassword=<password>
System tests are running against multiple IRS deployments and reconstructing a parts tree from multiple partial trees.
To run the tests, download the file artifact dataspace-deployments.json
from the latest IRS Deploy GitHub Actions run into the dev/local
folder.
The commit messages have to match a pattern in the form of:
< type >(optional scope):[<Ticket_ID>] < description >
Example:
chore(api):[TRI-123] some text
Detailed pattern can be found here: commit-msg
cp dev/commit-msg .git/hooks/commit-msg && chmod 500 .git/hooks/commit-msg
For further information please see https://github.com/hazcod/semantic-commit-hook
Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)