-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create an integration test for running a mission #1010
Comments
Check if we can use the test API for STID, SLIMM and Echo |
To be able to call the backend from the from the frontend we have a few choices:
|
The easiest option might be to set the environment to "test", and then make the Program.cs use the same authentication and authrization setup as the TestWebApplicationFactory when the environment is "test" and then in the frontend create a test-user that will be able to authenticate. |
Have we fixed the authentication problem ? @Christdej @andchiind ? |
This issue has automatically been marked as stale as there has been no activity for 60 days. |
This issue has automatically been marked as stale as there has been no activity for 60 days. |
This issue has automatically been marked as stale as there has been no activity for 60 days. |
Related to change with tests, were the tests will not share database resources. Also easier setup of tests. |
Describe the improvement you would like to see
Create an integration test which checks that that we are able to create and start a custom and echo mission. This test should utilise a database that is not in memory, such as the dev database but ideally we would use a test database. We should also not mock anything, but we should use isar-robot as our target robot. This test should run as a github action check before merging a PR, but ideally after finishing migrations.
Linked to
How will this change existing functionality?
This will allow us to test that there won't be any significant errors that halt testing offshore, and it will let us detect database validation errors which the in-memory database is unable to simulate.
How will this improvement affect the current Threat Model?
Assuming we correctly retrieve our keys for validating our HTTP requests in the github actions, the threat model should not be affected.
The text was updated successfully, but these errors were encountered: