Skip to content

Integration Test

Ryan Andriamahery edited this page Feb 21, 2022 · 6 revisions

We use the Test-driven development (TDD) process during development. To meet this process, you must ensure that the integration tests (IT) pass both locally and in CI.

All environment variables that should be configured are found in src/main/resources/application.properties.

Cognito

  • Actually, only Pro version of Localstack provides automatically authentication token used during tests (related to #10). In that case, we should set manually the test.aws.cognito.idToken variable and its value. This value can be obtained by the following process :

Authenticate as "test+ryan@hei.school" in : HEI Admin UI (Contact us to contact@hei.school for password) image Once successfully authenticated, follow these steps :

  1. Open your browser's developer's tools
  2. Go to the "Application" section
  3. Go to "Storage > Session Storage"
  4. Copy the bearer value

Cognito Token

Note : An authentication token expires every 24 hours

Sentry

It's an open-source error tracking with full stacktraces & asynchronous context (https://sentry.io).

  • Our default sentry environment (env) is "dev"
  • Contact us to contact@hei.school to get our Sentry DSN (sentry.dsn) value.

Clone this wiki locally