equinor / flotilla

Flotilla is the main point of access for operators to interact with multiple robots in a facility.
Eclipse Public License 2.0
16 stars 37 forks source link

Create an integration test for running a mission #1010

Open andchiind opened 1 year ago

andchiind commented 1 year ago

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.

oysand commented 1 year ago

Check if we can use the test API for STID, SLIMM and Echo

Christdej commented 11 months ago

To be able to call the backend from the from the frontend we have a few choices:

Christdej commented 11 months ago

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.

UsamaEquinorAFK commented 11 months ago

Have we fixed the authentication problem ? @Christdej @andchiind ?

Christdej commented 11 months ago

Nope, I would suggest doing

1203 and #1204

Before starting on this

aeshub commented 9 months ago

This issue has automatically been marked as stale as there has been no activity for 60 days.

aeshub commented 3 months ago

This issue has automatically been marked as stale as there has been no activity for 60 days.

aeshub commented 3 weeks ago

This issue has automatically been marked as stale as there has been no activity for 60 days.