Composer vs Catalog Integration Tests
IMPORTANT: This module works running npm test
, but should be configured as a dependency of cells-platform module in order to work properly. This is because all modules needed are provided by a previous step on cells-platform validation pipeline.
This module build a integration tests environment with elements provided by cells-platform. This 2 elements are necessary:
- Composer (inside a docker image)
- Catalog (packed ass a tar.gz file)
All modules configuration are provided by tests.json generated by resolve-deps step in validation process. This is the minimum tests.json required:
{
"catalog": {
"type": "http",
"dependencies": [
"http://bbva-files.s3.amazonaws.com/cells/catalog-data/versions/{{version}}/specsFile.tar.gz"
],
"version": "1.5.2"
},
"composer": {
"type": "docker",
"dependencies": {
"catalog": "cellsbox/composer-catalog-compatibility",
"bridge": "cellsbox/composer-core-compatibility"
},
"version": "0.0.5"
},
"dockerRegistry": "52.210.54.51:5000"
}
It checks that composer say ok to catalog version
- Starts a http daemon with the catalog configured file
- Starts composer as a daemon
- Send a request to check the provided catalog file.
Composer-Catalog compatibility checks
✓ Should composer docker image validate catalog bundle file (30805ms)