canonical / mimir-worker-k8s-operator

https://charmhub.io/mimir-worker-k8s
Apache License 2.0
0 stars 0 forks source link

Write tests for the worker #64

Closed lucabello closed 1 month ago

lucabello commented 2 months ago

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.