Skip to content

Commit

Permalink
tests(slurmctld): mock prometheus exporter start up during install
Browse files Browse the repository at this point in the history
Changes:

* Install `cosl` and `pydantic` as test dependencies as they are both
  required by the `cos_agent` charm library.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Co-authored-by: jedel1043 <[email protected]>
  • Loading branch information
NucciTheBoss and jedel1043 committed Nov 18, 2024
1 parent c62d7c7 commit ce391d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions charms/slurmctld/tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def test_install_success(self, defer, *_) -> None:
self.harness.charm._slurmctld.jwt.get.return_value = "=X="
self.harness.charm._slurmctld.munge = Mock()
self.harness.charm._slurmctld.munge.key.get.return_value = "=X="
self.harness.charm._slurmctld.exporter = Mock()
self.harness.charm._slurmctld.service = Mock()

self.harness.charm.on.install.emit()
Expand Down
4 changes: 4 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ pycryptodome==3.20.0
slurmutils~=0.8.0
dbus-fast>=1.90.2
pyfakefs==5.7.1

# `cos` dependencies
cosl
pydantic

0 comments on commit ce391d1

Please sign in to comment.