https://github.com/microcks/microcks-postman-runtime
A bridge for running Postman tests from HTTP interface
https://github.com/microcks/microcks-postman-runtime
api microcks postman testing
Last synced: 2 months ago
JSON representation
A bridge for running Postman tests from HTTP interface
- Host: GitHub
- URL: https://github.com/microcks/microcks-postman-runtime
- Owner: microcks
- License: apache-2.0
- Created: 2017-08-04T14:34:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T12:25:59.000Z (9 months ago)
- Last Synced: 2024-10-30T05:42:58.000Z (9 months ago)
- Topics: api, microcks, postman, testing
- Language: JavaScript
- Homepage: https://microcks.io
- Size: 251 KB
- Stars: 8
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY-INSIGHTS.yml
- Governance: GOVERNANCE.md
- Roadmap: ROADMAP.md
Awesome Lists containing this project
README
# Microcks Postman Runtime
`microcks-postman-runtime` is a thin HTTP wrapper around [`postman-runtime`](https://github.com/postmanlabs/postman-runtime/) lib. It allows running tests for Microcks and then sending results on a `callbackUrl`
[](https://github.com/microcks/microcks-postman-runtime/actions)
[](https://quay.io/repository/microcks/microcks-postman-runtime?tab=tags)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://microcks.io/discord-invite/)
[](https://artifacthub.io/packages/search?repo=microcks-postman-runtime-image)
[](https://landscape.cncf.io/?item=app-definition-and-development--application-definition-image-build--microcks)## Build Status
Latest released version is `0.6.0`.
Current development version is `0.7.0-SNAPSHOT`.
#### Fossa license and security scans
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fmicrocks%2Fmicrocks-postman-runtime?ref=badge_shield&issueType=license)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fmicrocks%2Fmicrocks-postman-runtime?ref=badge_shield&issueType=security)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fmicrocks%2Fmicrocks-postman-runtime?ref=badge_small)#### Signature, Provenance, SBOM
[](https://microcks.io/documentation/references/container-images#software-supply-chain-security)
#### OpenSSF best practices on Microcks core
[](https://bestpractices.coreinfrastructure.org/projects/7513)
[](https://securityscorecards.dev/viewer/?uri=github.com/microcks/microcks)## Community
* [Documentation](https://microcks.io/documentation/tutorials/getting-started/)
* [Microcks Community](https://github.com/microcks/community) and community meeting
* Join us on [Discord](https://microcks.io/discord-invite/), on [GitHub Discussions](https://github.com/orgs/microcks/discussions) or [CNCF Slack #microcks channel](https://cloud-native.slack.com/archives/C05BYHW1TNJ)To get involved with our community, please make sure you are familiar with the project's [Code of Conduct](./CODE_OF_CONDUCT.md).
## How to use it?
This is a simple sample of the interface for calling this component:
```sh
curl -X POST http://localhost:3000/tests/598850b8b2799dac88a33cd5 -H "Content-Type: application/json" -d '{"operation": "GET /order/:id", "callbackUrl": "http://localhost:9090/api/tests/598850b8b2799dac88a33cd5/testCaseResult", "testScript": { "listen": "test", "script": { "type": "text/javascript", "exec": [ "var jsonData = JSON.parse(responseBody);", "var expectedId = globals[\"id\"]", "tests[\"Check id value\"] = jsonData.id === expectedId;", "tests[\"Check id value again\"] = jsonData.id === expectedId;" ] } }, "requests": [ { "endpointUrl": "http://localhost:8080/rest/Test%20API/0.0.1/order/123456", "name": "get-123456", "method": "GET", "queryParams": [{"key": "id", "value": "123456"}] } ] }'
```
It is important to note that when submitting multiple requests to this component, Postman will end treating requests as it encounters a failure. So you may specify many requests into the interface but have less returns as a result.