File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,12 @@ def body(self):
246246 assert isinstance (err , dict )
247247 assert err ["code" ] == "invalid-payload"
248248 assert err ["description" ] == "unknown trusted publishing issuer"
249+ assert metrics .increment .calls == [
250+ pretend .call (
251+ "warehouse.oidc.mint_token_from_oidc.unknown_issuer" ,
252+ tags = ["issuer_url:nonexistent-issuer" ],
253+ )
254+ ]
249255
250256
251257@pytest .mark .parametrize (
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def mint_token_from_oidc(request: Request):
147147 if not service_name :
148148 request .metrics .increment (
149149 "warehouse.oidc.mint_token_from_oidc.unknown_issuer" ,
150- tags = { "issuer_url" : unverified_issuer },
150+ tags = [ f "issuer_url: { unverified_issuer } " ] ,
151151 )
152152 return _invalid (
153153 errors = [
You can’t perform that action at this time.
0 commit comments