TPS-4285: Implement integration tests for ReservedIP for IPv4#688
Open
mawilk90 wants to merge 28 commits intolinode:proj/reserved-ipsfrom
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…lement-integration-tests-for-reserved-ip-for-ipv4
Contributor
There was a problem hiding this comment.
Pull request overview
This PR expands the integration test suite for the SDK's Reserved IPv4 support, covering the new networking APIs plus cross-resource flows where reserved addresses can be tagged or attached to Linodes and NodeBalancers. It fits into the codebase by adding end-to-end coverage around the Reserved IP models and helpers that were recently added to the client, and it is explicitly stacked on top of linked PR #687.
Changes:
- Adds shared integration fixtures for creating reserved IPs and reserved IPs assigned to a Linode.
- Adds networking integration tests for reserved IP create/update/assign/allocate/type-conversion flows.
- Adds cross-resource reserved IP coverage for tags, NodeBalancers, Linode allocation, and interface-based instance creation.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
test/integration/conftest.py |
Adds reusable fixtures for creating standalone and assigned Reserved IPv4 addresses. |
test/integration/models/networking/test_networking.py |
Adds the main Reserved IPv4 integration coverage and shared assertion helpers. |
test/integration/models/nodebalancer/test_nodebalancer.py |
Adds NodeBalancer creation coverage using a reserved IPv4 address. |
test/integration/models/linode/test_linode.py |
Adds coverage for attaching an existing reserved IPv4 to a Linode. |
test/integration/models/linode/interfaces/test_interfaces.py |
Adds reserved IPv4 coverage for both legacy and Linode interface-generation instance creates. |
test/integration/models/tag/test_tag.py |
Adds tag retrieval coverage for reserved IPv4 tagged objects. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Notes:
✔️ How to Test
make test-int TEST_ARGS="-k reserved_ip -v"make test-int TEST_ARGS="-k reserve_ephemeral -v"