Integration tests for Kentico Kontent documentation portal, which utilizes Kentico Kontent as a source of its data.
The service is responsible for testing the integration between various Kentico Kontent Documentation services.
Tests copy selected content types from live Kentico Kontent project to a testing Kentico Kontent project. Afterwards, content items are created in the test project and filled with content. This is all done using Kentico Kontent management JavaScript SDK.
The tests then check whether the created content items have been indexed on Algolia, which is used for search functionality on Kentico Kontent Documentation.
- Node (+yarn) installed
- Subscriptions on Kentico Kontent
- Clone the project repository.
- Run
yarn install
in the terminal. - Create
.env
file and set the required keys there. - Run the tests using
yarn test
.
LIVE_CM_API_KEY
- Content management API key of live Kentico Kontent projectLIVE_PROJECT_ID
- Project ID of live Kentico Kontent projectTEST_CM_API_KEY
- Content management API key of test Kentico Kontent projectTEST_PROJECT_ID
- Project ID of test Kentico Kontent projectSEARCH_APP_ID
- Algolia application IDSEARCH_API_KEY
- Algolia admin API keySEARCH_INDEX_NAME
- Index name in Algolia applicationCASCADE_PUBLISH_ID
- Cascade Publish workflow step ID (test KC project)PUBLISHED_ID
- Publish workflow step ID (test KC project)PUBLISHER_TRIGGER_URL
- Trigger endpoint of the Publisher ServiceWEB_URL
- URL of the deployed web instance
Feel free to open a new issue where you describe your proposed changes, or even create a new pull request from your branch with proposed changes.
All the source codes are published under MIT licence.