Skip to content

Commit

Permalink
update CI test for newer rms_jobinfo metric
Browse files Browse the repository at this point in the history
Signed-off-by: Karl W Schulz <[email protected]>
  • Loading branch information
koomie committed Jul 15, 2024
1 parent 1b88114 commit ec3d9da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_query_up(self):

def test_query_slurm(self):
prometheus = PrometheusConnect(url=self.url)
results = prometheus.custom_query("slurmjob_info")
assert len(results) >= 1, "Metric slurmjob_info not available"
results = prometheus.custom_query("rmsjob_info")
assert len(results) >= 1, "Metric rmsjob_info not available"

@pytest.mark.skipif(not rocm_host, reason="requires ROCm")
def test_query_rocm(self):
Expand All @@ -49,7 +49,7 @@ def test_query_rocm(self):

def test_job(self):
prometheus = PrometheusConnect(url=self.url)
query = f"slurmjob_info{{jobid=~'.+'}}[{self.time_range}]"
query = f"rmsjob_info{{jobid=~'.+'}}[{self.time_range}]"
results = prometheus.custom_query(query)

last_jobid = 0
Expand Down

0 comments on commit ec3d9da

Please sign in to comment.