Skip to content

TPT-4462: Add integration tests for RDMA interfaces#713

Open
mawilk90 wants to merge 8 commits into
linode:proj/rdma-interfacesfrom
mawilk90:feature/TPT-4462-add-int-tests-for-rdma-interfaces
Open

TPT-4462: Add integration tests for RDMA interfaces#713
mawilk90 wants to merge 8 commits into
linode:proj/rdma-interfacesfrom
mawilk90:feature/TPT-4462-add-int-tests-for-rdma-interfaces

Conversation

@mawilk90

@mawilk90 mawilk90 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

📝 Description

Created integration tests for functionality of RDMA interfaces

Note:

  • env: DevCloud

✔️ How to Test

make test-int TEST_ARGS="-k test_get_vpc_with_rdma_type"
make test-int TEST_ARGS="-k test_get_vpc"
make test-int TEST_ARGS="-k test_get_subnet_with_rdma_type"
make test-int TEST_ARGS="-k test_get_subnet"

@mawilk90 mawilk90 changed the title Feature/tpt 4462 add int tests for rdma interfaces TPT-4462: Add integration tests for RDMA interfaces Jul 7, 2026
@mawilk90 mawilk90 marked this pull request as ready for review July 7, 2026 13:01
@mawilk90 mawilk90 requested review from a team as code owners July 7, 2026 13:01
@mawilk90 mawilk90 requested review from lgarber-akamai and psnoch-akamai and removed request for a team, lgarber-akamai and psnoch-akamai July 7, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds integration coverage for RDMA VPC/Subnet behavior, ensuring vpc_type is surfaced correctly and RDMA resources behave as expected (notably around IPv6 behavior) in DevCloud.

Changes:

  • Extend existing VPC/Subnet integration assertions to validate vpc_type == "regular".
  • Add new RDMA-focused integration tests for loading and filtering RDMA VPCs and for creating/loading RDMA subnets.
  • Introduce a session-scoped create_vpc_with_rdma_type fixture to provision RDMA VPCs for tests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/integration/models/vpc/test_vpc.py Adds assertions for regular VPCs/subnets and introduces RDMA VPC/Subnet integration tests.
test/integration/conftest.py Adds a session-scoped fixture to create/delete an RDMA VPC for integration tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +157 to +159
vpc = test_linode_client.vpcs(VPC.vpc_type == "rdma")[-1]
assert vpc.id == vpc_rdma.id
assert vpc.vpc_type == vpc_rdma.vpc_type
)

# clean-up after test
request.addfinalizer(subnet_rdma.delete)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put the create/cleanup into a fixture just like how test Linode is handled?

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.

4 participants