TPT-4285: Implement integration tests for ReservedIP for IPv4#688
Conversation
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.
b6cff8d to
4b0f363
Compare
…e#695) Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4 to 5. - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](actions/dependency-review-action@v4...v5) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# Conflicts: # conftest.py # linode_api4/groups/networking.py # linode_api4/groups/tag.py # linode_api4/objects/networking.py # test/unit/groups/networking_test.py
4b0f363 to
b9ca4cf
Compare
…lement-integration-tests-for-reserved-ip-for-ipv4
| linode_ips[0].assigned_entity.url == f"/v4/linode/instances/{linode.id}" | ||
| ) | ||
|
|
||
| linode.delete() |
There was a problem hiding this comment.
Can we use fixture pattern to ensure the Linode is deleted even if the test failed?
📝 Description
Integration tests for Reserved IPs
Required tags specified in Jira ticket.
✔️ How to Test
make test-int TEST_ARGS="-k reserved_ip -v"make test-int TEST_ARGS="-k reserve_ephemeral -v"