Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: errors returned by zot should match the dist-spec errors #1868

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

adodon2go
Copy link
Collaborator

What type of PR is this?
bug

Which issue does this PR fix:
Error codes that zot sends to clients should match https://specs.opencontainers.org/distribution-spec/?v=v1.0.0#error-codes

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #1868 (721a1db) into main (56e3580) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1868      +/-   ##
==========================================
- Coverage   92.04%   92.02%   -0.02%     
==========================================
  Files         152      152              
  Lines       26472    26454      -18     
==========================================
- Hits        24365    24344      -21     
- Misses       1557     1559       +2     
- Partials      550      551       +1     
Files Coverage Δ
pkg/api/errors/errors.go 100.00% <100.00%> (ø)
pkg/api/routes.go 94.24% <ø> (-0.02%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rchincha rchincha merged commit 75085dc into project-zot:main Sep 29, 2023
32 of 33 checks passed
@adodon2go adodon2go deleted the dist-spec-errors branch September 29, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants