https://github.com/open-component-model/ocm-integrationtest
https://github.com/open-component-model/ocm-integrationtest
ocm open-component-model
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/open-component-model/ocm-integrationtest
- Owner: open-component-model
- License: apache-2.0
- Created: 2023-05-11T08:08:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-15T09:18:19.000Z (7 months ago)
- Last Synced: 2025-12-18T07:58:48.936Z (6 months ago)
- Topics: ocm, open-component-model
- Language: Python
- Homepage: https://ocm.software/
- Size: 2.49 MB
- Stars: 0
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[](https://api.reuse.software/info/github.com/open-component-model/ocm-integrationtest) [](https://open-component-model.github.io/ocm-integrationtest/report.html)
# Open-Component-Model Integration Test
## About this project
This repository runs the OCM integration tests. It installs a local OCI registry, performs various OCM commands and checks for the expected results.
## Requirements and Setup
This project uses Python 3.9+ to run the tests against the [OCM CLI](https://github.com/open-component-model/ocm). It is targeted to be executed in a Github action workflow. You can also run the tests locally:
* Install Python 3.9+
* Create a virtual environment, e.g `python -m venv /ocmtest`
* Install pip: `python -m pip install --upgrade pip`
* Activate environment: `. /ocmtest/bin/activate`
* Install requirements: `pip install -r requirements.txt`
* Install docker
* Install htpasswd
* Install [crane](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md)
* Create SSL certificates and store them in `./certs` directory (see `create-cert.sh` for instructions [Link](create-cert.sh) (be sure to have a hostname with a fully qualified domain name)
* Create a user for the OCI registry and passwd file: `htpasswd -b -v certs/htpasswd ocmuser `
* Set environment variables: `export FDQN_NAME=:4430; export USER_NAME=ocmuser; export PASSWD=`
* If you user alternative container runtimes to docker (like e.g. colima) you may need to set DOCKER_HOST env var. e.g.: `export DOCKER_HOST=unix:///Users//.colima/default/docker.sock`
* Run local OCI registry in docker: `./start_docker.sh`
* Build local test binaries: `./build.sh`
* Run tests: `pytest tests`
* Stop and remove container: `./stop_docker.sh`
## Support, Feedback, Contributing
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/open-component-model/ocm-integrationtest/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
## Code of Conduct
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](CODE_OF_CONDUCT.md) at all times.
## Licensing
Copyright 2022-2023 SAP SE or an SAP affiliate company and open-component-model contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/open-component-model/ocm-integrationtest).
## Test Report
[Latest Test Report](https://open-component-model.github.io/ocm-integrationtest/report.html)
## Statistics
Statistics of the latest [test runs](https://github.com/open-component-model/ocm-integrationtest/actions/workflows/integrationtest.yaml):
Date + Time | OCM Version | Result
------------|-------------|-------
2024-11-07 11:27:07+0000 | ocm version 0.17.0-dev+2188c1ce78e3cf6aaede3d458388fa947891c581 | ✅ (passed)
2024-11-08 06:11:31+0000 | ocm version 0.17.0-dev+3577e7e9d72f25a84037aa34818a18c735e95d0a | ✅ (passed)
2024-11-08 09:51:21+0000 | ocm version 0.17.0-dev+3577e7e9d72f25a84037aa34818a18c735e95d0a | ✅ (passed)
2024-11-08 11:22:46+0000 | ocm version 0.18.0-dev+beabf65653edb08fff31c056e8645a4fdba75c72 | ✅ (passed)
2024-11-08 13:38:35+0000 | ocm version 0.18.0-dev+2ea69c7ecca1e8be7e9d9f94dfdcac6090f1c69d | ✅ (passed)
2024-11-08 18:53:47+0000 | ocm version 0.18.0-dev+2ea69c7ecca1e8be7e9d9f94dfdcac6090f1c69d | ✅ (passed)
2024-11-08 19:39:22+0000 | ocm version 0.18.0-dev+2ea69c7ecca1e8be7e9d9f94dfdcac6090f1c69d | ✅ (passed)
2024-11-09 06:10:19+0000 | ocm version 0.18.0-dev+b711f7eae82c8b17bca71166ea5a066b6061573c | ✅ (passed)
2024-11-10 05:46:52+0000 | ocm version 0.18.0-dev+b711f7eae82c8b17bca71166ea5a066b6061573c | ✅ (passed)
2024-11-10 06:10:35+0000 | ocm version 0.18.0-dev+b711f7eae82c8b17bca71166ea5a066b6061573c | ✅ (passed)
2024-11-10 08:50:12+0000 | ocm version 0.18.0-dev+b711f7eae82c8b17bca71166ea5a066b6061573c | ✅ (passed)
2024-11-10 09:11:22+0000 | ocm version 0.18.0-dev+b711f7eae82c8b17bca71166ea5a066b6061573c | ✅ (passed)
2024-11-11 06:12:14+0000 | ocm version 0.18.0-dev+b711f7eae82c8b17bca71166ea5a066b6061573c | ✅ (passed)
2024-11-11 08:09:22+0000 | ocm version 0.18.0-dev+284e158798079127086eeaef762d61045bc5a583 | ✅ (passed)
2024-11-11 08:25:24+0000 | ocm version 0.18.0-dev+4bdd42657537734cb2eb850fb0b9a0f578a7cf06 | ✅ (passed)
2024-11-12 06:11:18+0000 | ocm version 0.18.0-dev+ef17caf31be954488ea7f32610b10267218db620 | ✅ (passed)
2024-11-12 11:12:48+0000 | ocm version 0.18.0-dev+1b607462f2b11ba6f1e554e1a688d5379752dbf6 | ✅ (passed)
2024-11-12 14:10:51+0000 | ocm version 0.18.0-dev+782970c77f9da3ab8d73eb7904a50d0b1a9d1aba | ✅ (passed)
2024-11-12 14:37:31+0000 | ocm version 0.18.0-dev+782970c77f9da3ab8d73eb7904a50d0b1a9d1aba | ✅ (passed)
2024-11-13 06:11:33+0000 | ocm version 0.18.0-dev+a1890c261fc2a5ffb58ee1590662b04a752fa9a0 | ✅ (passed)
2024-11-14 06:11:39+0000 | ocm version 0.19.0-dev+b3873862269e3d19f3e2c8532bbb38ded6a162d1 | ✅ (passed)
2024-11-14 10:23:28+0000 | ocm version 0.19.0-dev+b3873862269e3d19f3e2c8532bbb38ded6a162d1 | ✅ (passed)
2024-11-14 12:39:31+0000 | ocm version 0.19.0-dev+b3873862269e3d19f3e2c8532bbb38ded6a162d1 | ✅ (passed)
2024-11-14 13:23:19+0000 | ocm version 0.19.0-dev+5447b0c55c00cff22c832b9ada51bd3942d5f56a | ✅ (passed)
2024-11-14 13:30:31+0000 | ocm version 0.19.0-dev+5447b0c55c00cff22c832b9ada51bd3942d5f56a | ✅ (passed)
2024-11-14 13:35:40+0000 | ocm version 0.19.0-dev+5447b0c55c00cff22c832b9ada51bd3942d5f56a | ✅ (passed)
2024-11-15 06:12:14+0000 | ocm version 0.19.0-dev+5447b0c55c00cff22c832b9ada51bd3942d5f56a | ✅ (passed)
2024-11-16 06:11:10+0000 | ocm version 0.19.0-dev+bb7c5f7639d35c2ab3b718571f80445a9a7fc3ca | ✅ (passed)
2024-11-17 05:26:47+0000 | ocm version 0.19.0-dev+bb7c5f7639d35c2ab3b718571f80445a9a7fc3ca | ✅ (passed)
2024-11-17 06:11:04+0000 | ocm version 0.19.0-dev+bb7c5f7639d35c2ab3b718571f80445a9a7fc3ca | ✅ (passed)
2024-11-17 08:36:30+0000 | ocm version 0.19.0-dev+bb7c5f7639d35c2ab3b718571f80445a9a7fc3ca | ✅ (passed)
2024-11-17 08:54:12+0000 | ocm version 0.19.0-dev+bb7c5f7639d35c2ab3b718571f80445a9a7fc3ca | ✅ (passed)
2024-11-18 06:12:20+0000 | ocm version 0.19.0-dev+bb7c5f7639d35c2ab3b718571f80445a9a7fc3ca | ✅ (passed)
2024-11-18 08:23:28+0000 | ocm version 0.19.0-dev+edadfe3417cf61e376183b58ccb6e29bd2a5ff11 | ✅ (passed)
2024-11-18 08:38:55+0000 | ocm version 0.19.0-dev+74be7054fe6037a7ee6bb8b2a48486e03f26cee9 | ✅ (passed)