Skip to content

Commit

Permalink
fix string name
Browse files Browse the repository at this point in the history
  • Loading branch information
charlienegri committed Oct 11, 2024
1 parent 0e2ec83 commit a283994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dmci/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def post_insert():
if failed:
if "file" in failed:
FILE_DIST_FAIL.labels(path=request.path).inc()
if "csw" in failed:
if "pycsw" in failed:
CSW_DIST_FAIL.labels(path=request.path).inc()
if "solr" in failed:
SOLR_DIST_FAIL.labels(path=request.path).inc()
Expand All @@ -89,7 +89,7 @@ def post_update():
if failed:
if "file" in failed:
FILE_DIST_FAIL.labels(path=request.path).inc()
if "csw" in failed:
if "pycsw" in failed:
CSW_DIST_FAIL.labels(path=request.path).inc()
if "solr" in failed:
SOLR_DIST_FAIL.labels(path=request.path).inc()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def testApiApp_InsertUpdateRequests(client, monkeypatch):

# Distribution fails, metrics are incremented
with monkeypatch.context() as mp:
f = ["file", "solr", "csw"]
f = ["file", "solr", "pycsw"]
s = ["C"]
e = ["Reason A", "Reason B", "Reason C"]
mp.setattr("dmci.api.app.Worker.validate", lambda *a: (True, "", MOCK_XML))
Expand Down

0 comments on commit a283994

Please sign in to comment.