Skip to content

TPT-4602: Support NAT service int tests - #1051

Merged
mawilk90 merged 14 commits into
linode:proj/nat-service-for-vpcfrom
mawilk90:TPT-4603-support-nat-service-int-tests
Oct 5, 2026
Merged

mawilk90 merged 14 commits into
linode:proj/nat-service-for-vpcfrom
mawilk90:TPT-4603-support-nat-service-int-tests

Conversation

@mawilk90

Copy link
Copy Markdown
Contributor

📝 Description

Created integration tests for VPC NAT Gateway service.

Note:

  1. It depends on TPT-4603: Added support for NAT Service #1033
  2. Please check the API spec for the required Linode account configuration.

✔️ How to Test

make test-int TEST_ARGS="-run NATGateway" or
make fixtures TEST_ARGS="-run NATGateway"

@mawilk90
mawilk90 requested review from ezilber-akamai and a lite review from Copilot September 28, 2026 09:02
@mawilk90
mawilk90 requested review from a team as code owners September 28, 2026 09:02
@mawilk90
mawilk90 requested review from lgarber-akamai and removed request for a team September 28, 2026 09:02
@mawilk90 mawilk90 added new-feature for new features in the changelog. testing for updates to the testing suite in the changelog. labels Sep 28, 2026
@mawilk90
mawilk90 requested review from psnoch-akamai and removed request for a team September 28, 2026 09:02
@mawilk90 mawilk90 added the do-not-merge PRs that should not be merged until the commented issue is resolved label Sep 28, 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.

Copilot review overview

🟡 Changes recommended

Unresolved critical and moderate correctness issues remain in interface decoding, NAT Gateway modeling, request options, and subnet update handling.

Review effort: Lite
Findings: 1 High severity · 4 Medium severity · 3 Low severity

Open (8)
What changed in this PR

Adds VPC NAT Gateway API support, related VPC associations, and unit/integration coverage.

Changes:

  • Adds NAT Gateway models, endpoints, settings, and region capability.
  • Extends subnet, interface, and IP models with NAT Gateway data.
  • Adds fixtures and lifecycle integration tests.
File Description
vpc_subnet.go NAT Gateway subnet support
test/​unit/​vpc_test.go VPC creation coverage
test/​unit/​vpc_subnets_test.go Subnet NAT Gateway coverage
test/​unit/​vpc_ips_test.go VPC IP NAT coverage
test/​unit/​nat_gateways_test.go NAT Gateway endpoint tests
test/​unit/​interface_test.go Interface NAT coverage
test/​unit/​fixtures/​vpc_subnets_list.json Subnet list fixture
test/​unit/​fixtures/​vpc_subnet_update.json Subnet update fixture
test/​unit/​fixtures/​vpc_subnet_get.json Subnet get fixture
test/​unit/​fixtures/​vpc_subnet_create.json Subnet create fixture
test/​unit/​fixtures/​vpc_specific_ips_list.json Specific IPs fixture
test/​unit/​fixtures/​vpc_ips_list.json VPC IPs fixture
test/​unit/​fixtures/​nat_gateways_update.json NAT Gateway update fixture
test/​unit/​fixtures/​nat_gateways_list.json NAT Gateway list fixture
test/​unit/​fixtures/​nat_gateways_list_interfaces.json NAT Gateway interfaces fixture
test/​unit/​fixtures/​nat_gateways_list_addresses.json NAT Gateway addresses fixture
test/​unit/​fixtures/​nat_gateways_list_address_interfaces.json Address interfaces fixture
test/​unit/​fixtures/​nat_gateways_get.json NAT Gateway get fixture
test/​unit/​fixtures/​nat_gateways_get_types.json NAT Gateway types fixture
test/​unit/​fixtures/​nat_gateways_get_settings.json NAT Gateway settings fixture
test/​unit/​fixtures/​nat_gateways_get_address.json NAT Gateway address fixture
test/​unit/​fixtures/​nat_gateways_create.json NAT Gateway create fixture
test/​unit/​fixtures/​nat_gateways_add_address.json Add-address fixture
test/​unit/​fixtures/​interface_list.json Interface list fixture
test/​integration/​vpc_subnet_test.go Subnet association integration test
test/​integration/​network_nat_gateway_test.go NAT Gateway integration scenarios
test/​integration/​fixtures/​TestVPC_Subnet_WithNATGateway.yaml Subnet NAT fixture
test/​integration/​fixtures/​TestNATGateway_Update.yaml Update integration fixture
test/​integration/​fixtures/​TestNATGateway_GetTypes.yaml Types integration fixture
test/​integration/​fixtures/​TestNATGateway_GetSettings.yaml Settings integration fixture
test/​integration/​fixtures/​TestNATGateway_Create_smoke.yaml Creation smoke fixture
regions.go NAT Gateway region capability
nat_gateways.go NAT Gateway models and methods
interfaces.go Interface NAT Gateway data
instance_ips.go VPC IP NAT Gateway data

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread interfaces.go
Comment thread nat_gateways.go
Comment thread nat_gateways.go
Comment thread nat_gateways.go
Comment thread vpc_subnet.go
Comment thread nat_gateways.go Outdated
Comment thread nat_gateways.go Outdated
Comment thread test/integration/network_nat_gateway_test.go Outdated
@mawilk90 mawilk90 removed the do-not-merge PRs that should not be merged until the commented issue is resolved label Sep 29, 2026

@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 are passing locally!

Comment thread interfaces.go
@mawilk90
mawilk90 merged commit 592cdda into linode:proj/nat-service-for-vpc Oct 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants