Closed wangxiaoxuan273 closed 2 years ago
To test on terminal:
curl -X PUT -v localhost:5000/v2/mantest/manifests/bc8a5e80bcb03fe9b5d74db83b1c47e6f7e6b7ca -H "Content-Type:application/vnd.oci.artifact.manifest.v1+json" -d '{"mediaType": "application/vnd.oci.artifact.manifest.v1+json"}'
curl -v http://localhost:5000/v2/mantest/manifests/sha256:00b8ca112ff0a7d276dd38ee594affe8bace0fee7e6bc01f262c6c21a3ad61fc -H "Accept: application/vnd.oci.artifact.manifest.v1+json"
Testing results:
push:
pull:
Merging #31 (cfa30d0) into main (0fce2c9) will decrease coverage by
0.05%
. The diff coverage is37.03%
.
@@ Coverage Diff @@
## main #31 +/- ##
==========================================
- Coverage 57.17% 57.12% -0.06%
==========================================
Files 106 106
Lines 10892 10911 +19
==========================================
+ Hits 6228 6233 +5
- Misses 3972 3984 +12
- Partials 692 694 +2
Impacted Files | Coverage Δ | |
---|---|---|
registry/handlers/manifests.go | 52.89% <37.03%> (-1.28%) |
:arrow_down: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Part 4 of #21.
Implemented necessary changes in the handler package.
Signed-off-by: wangxiaoxuan273 wangxiaoxuan119@gmail.com