You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this subject will become even more important when we start to integrate multiple cloud providers and need to test the inventory / scanning part (calling provider API's).
The current "test" implementation of the inventory is very naive, it calls the real AWS API, so it needs to have real resouces in the cloud to produce results. This is not portable.
Bug description
see #643
Our tests can fail because we are hitting the live version of the API on https://api.boavizta.org/ and its version can change anytime.
start a Docker instance with a version known to be compatible within the tests
https://rust.testcontainers.org/quickstart/testcontainers/ is probably the best solution for this
mock what the API returns
https://docs.rs/wiremock/latest/wiremock/
The text was updated successfully, but these errors were encountered: