Skip to content

TPT-4475: Add integration tests for Configurable VPC top-level IPv4 Prefixes#905

Open
mawilk90 wants to merge 4 commits into
linode:devfrom
mawilk90:feature/TPT-4475-linode-cli-add-integration-tests-for-configurable-vpc-top-level-ipv4-prefixes
Open

TPT-4475: Add integration tests for Configurable VPC top-level IPv4 Prefixes#905
mawilk90 wants to merge 4 commits into
linode:devfrom
mawilk90:feature/TPT-4475-linode-cli-add-integration-tests-for-configurable-vpc-top-level-ipv4-prefixes

Conversation

@mawilk90

@mawilk90 mawilk90 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

📝 Description

Intergration tests for configurable VPC IPv4

NOTE:
PR with openapi.json is already merged, however openapi.json file is not updated yet in linode-api-openapi repo so CLI can be build locally only using the latest openapi.json taken from the PR mentioned above

✔️ How to Test

make test-int TEST_SUITE=vpc TEST_ARGS="-k test_get_vpc_default_ranges"
make test-int TEST_SUITE=vpc TEST_ARGS="-k test_vpc_with_ipv4"
make test-int TEST_SUITE=vpc TEST_ARGS="-k test_vpc_update_with_ipv4"
make test-int TEST_SUITE=vpc TEST_ARGS="-k test_vpc_with_forbidden_ipv4_fail"

@mawilk90 mawilk90 requested review from a team as code owners July 13, 2026 11:57
@mawilk90 mawilk90 requested review from Copilot, ezilber-akamai, psnoch-akamai and zliang-akamai and removed request for a team and zliang-akamai July 13, 2026 11:57
@mawilk90 mawilk90 added testing for updates to the testing suite in the changelog. new-feature for new features in the changelog. do-not-merge PRs that should not be merged until the commented issue is resolved labels Jul 13, 2026

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 new integration coverage for configurable VPC top-level IPv4 ranges/prefix behavior in the Linode CLI test suite, validating both successful VPC creation with custom IPv4 ranges and failure behavior for forbidden ranges.

Changes:

  • Added an integration test to validate default-ranges-all-list returns IPv4 default/forbidden ranges as lists.
  • Added parametrized integration tests to create VPCs with 1–2 custom IPv4 ranges and verify they are reflected in vpcs view.
  • Added a negative integration test to ensure creating a VPC with a forbidden IPv4 range fails with a 400 and expected error text.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
tests/integration/vpc/test_vpc.py Adds new integration tests for default/forbidden IPv4 ranges and VPC creation with configurable IPv4 ranges.
tests/integration/vpc/conftest.py Adds a fixture to create and clean up VPCs using custom IPv4 CLI arguments.

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

Comment thread tests/integration/vpc/conftest.py Outdated
Comment thread tests/integration/vpc/test_vpc.py
Comment thread tests/integration/vpc/test_vpc.py Outdated

@ezilber-akamai ezilber-akamai 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.

Tests look good and passing locally. Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge PRs that should not be merged until the commented issue is resolved new-feature for new features in the changelog. testing for updates to the testing suite in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants