The Mimir worker is currently lacking tests. They were written before the refactor that uses cos-lib, and weren't working even then; it will be easier to just rewrite them.
Currently, tox.ini comments out the testing section, so you'll first need to uncomment those.
About the test types:
Unit tests, I don't know if we need (maybe just for the version parsing? There's not much else happening)
Scenario tests, could check the Blocked/Waiting status perhaps?
Integration tests, should probably replicate parts of the tests in the Coordinator (the deploy/relate flow with S3 Integrator, Minio, and Grafana Agent) to check the HA solution as a whole is working
Enhancement Proposal
The Mimir worker is currently lacking tests. They were written before the refactor that uses
cos-lib
, and weren't working even then; it will be easier to just rewrite them.Currently,
tox.ini
comments out the testing section, so you'll first need to uncomment those.About the test types:
I would do this after https://github.com/canonical/mimir-coordinator-k8s-operator/issues/62, so we can copy-paste from the coordinator and cut the unused bits.