Skip to content

Conversation

@MikeAT
Copy link
Contributor

@MikeAT MikeAT commented Jan 3, 2025

RcodeZero: Bugfix when adding a record where a record with a different type already exists

Description

The RcodeZero driver generated broken API-Requests when adding records with different type (eg. adding an AAAA record to an existing A record). This PR fixes #2042:

Status

Done, ready for review

Checklist (tick everything that applies)

  • Code linting (required, can be done after the PR checks)
  • Documentation
  • Tests
  • ICLA (required for bigger changes)

@MikeAT
Copy link
Contributor Author

MikeAT commented Jan 3, 2025

Could you please merge this documentation PR too?

@Kami
Copy link
Member

Kami commented Mar 2, 2025

@MikeAT Thanks for the contribution.

Would it be possible to add a unit test case for this fix?

@Kami
Copy link
Member

Kami commented Mar 3, 2025

@MikeAT The documentation PR has been merged.

It looks like the existing tests are failing. It would be great if you could look into that (you likely need to add mock response fixtures for v2 API responses and implement corresponding methods on the MockHttp class) and add a (regression) test case for a bug this PR is fixing.

Thanks.

@MikeAT
Copy link
Contributor Author

MikeAT commented Mar 3, 2025

Hi @Kami,

sorry, I forgot to commit the API v2 tests. And I added the regression test for the fixed bug.

@MikeAT MikeAT changed the title RcodeZero Driver: fix issue when adding a reocrd where a record with a different type already exists RcodeZero Driver: fix issue when adding a record where a record with a different type already exists Mar 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.35%. Comparing base (5e6b553) to head (5b56d39).

Files with missing lines Patch % Lines
libcloud/dns/drivers/rcodezero.py 66.67% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            trunk    #2038      +/-   ##
==========================================
- Coverage   83.35%   83.35%   -0.00%     
==========================================
  Files         353      353              
  Lines       81848    81858      +10     
  Branches     8998     8999       +1     
==========================================
+ Hits        68224    68232       +8     
- Misses      10797    10798       +1     
- Partials     2827     2828       +1     
Files with missing lines Coverage Δ
libcloud/test/dns/test_rcodezero.py 100.00% <100.00%> (ø)
libcloud/dns/drivers/rcodezero.py 70.10% <66.67%> (-0.73%) ⬇️
🚀 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.

RcodeZero driver: error when adding a record where already a record with another type exists

4 participants