This repository is intended for synthetic testing monday code
https://app.datadoghq.eu/synthetics/details/ubm-tk8-fte
This test uses our monday.com test account, creates a new app, and deploys monday code to it.
- log in to the account
- go to dev center, copy dev token
- create a new app and give it a unique name, copy the app id
- deploy monday code using a github action, using the token and app id
- wait X minuets for the deployment to complete (not actually getting any indication of completion)
- check the app in the dev center to see if the code was deployed and monday code sections are active
- invoke the deployment url /health, expect 200
https://app.datadoghq.eu/synthetics/details/4v8-zi9-tz6
This test uses our monday.com test account, with a constant existing app on each test
- log in to the account
- go to dev center, copy dev token
- create a new draft version for the app
- deploy monday code using a github action, using the token and app id (automatically deploys to the latest draft version)
- wait X minuets for the deployment to complete (not actually getting any indication of completion)
- check the new version does not have a "Live Url"
- promote the new version to live
- check that the version now also has a live url
- create a random value for a constant env-var and set it
- invoke /health and expect 200
- invoke /deep-health and expect 200 - this endpoint uses the SDK secure storage set/get/delete, and also accepts a random work from the test, which is being returned in the 200 response body
- invoke /topic-name and expect 200 - this endpoint uses the env-var of the deployment which exposes the deployment tag. this is then used to assert it is equal to the latest version tag shown in the dev center- so we now the live url directs us to the latest version
- invoke /e v-var and expect 200 - this returns the random env-var set in a previous step, and asserts equality
- go to the monitoring section and assert the request count in the last X minutes is not 0
- go to the logs section and assert the logs are not empty. and contain expected text (including the random word created for the test)
- create a new env-var, assert it was added, and then delete it