Skip to content

Conversation

@sisp
Copy link

@sisp sisp commented Nov 20, 2025

Changes

I've added support for deleting a registry protection rule. It seems this feature was missed in the initial implementation although it was documented.

For this, I've added the DeleteMixin, and I've extended the functional API test as well as added a unit test.

Documentation and testing

Please consider whether this PR needs documentation and tests. This is not required, but highly appreciated:

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.72%. Comparing base (3449af7) to head (e17f9e9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3300   +/-   ##
=======================================
  Coverage   95.72%   95.72%           
=======================================
  Files          98       98           
  Lines        6052     6052           
=======================================
  Hits         5793     5793           
  Misses        259      259           
Flag Coverage Δ
api_func_v4 83.69% <100.00%> (+0.11%) ⬆️
cli_func_v4 78.68% <100.00%> (ø)
unit 90.18% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...v4/objects/registry_protection_repository_rules.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant