Open andchiind opened 1 year ago
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 ?
Nope, I would suggest doing
Before starting on this
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.
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.