Skip to content

test: Gate MultiTenancy and NetworkConnector integ tests per region - #4014

Open
licjun wants to merge 1 commit into
aws:developfrom
licjun:feat/rip-gate-microvm-netconn-tenancy
Open

licjun wants to merge 1 commit into
aws:developfrom
licjun:feat/rip-gate-microvm-netconn-tenancy

Conversation

@licjun

@licjun licjun commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available

N/A

Description of changes

test_basic_function_with_tenancy_config and the TestBasicNetworkConnector
tests are currently skipped unconditionally with @skipIf(True, ...), so they
never run anywhere.

This replaces those with the standard per-region gating the rest of the suite
uses, so each test runs in regions where the corresponding Lambda feature is
available and is skipped elsewhere:

  • test_basic_function_with_tenancy_config → MULTI_TENANCY
    (this just un-comments the @skipIf that was already there)
  • TestBasicNetworkConnector → NETWORK_CONNECTOR

Adds the two matching constants to integration/config/service_names.py.

TestBasicMicroVMImage is intentionally left skipped — its templates pin a
managed base image ARN and version, which needs a separate fix.

Description of how you validated changes

Ran the affected tests against a real account in us-west-2 — 3 passed:

  • test_basic_function_with_tenancy_config
  • test_basic_network_connector
  • test_network_connector_with_custom_role

ruff check and black --check pass.

Checklist

Examples?

N/A

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Replace the unconditional `@skipIf(True, ...)` on the tenancy config and
NetworkConnector tests with per-region gating via
`current_region_does_not_support`, so the tests run in regions where the
corresponding Lambda features are available instead of never running.

Adds the `MultiTenancy` and `NetworkConnector` service name constants.

Verified in us-west-2: 3 passed
- test_basic_function_with_tenancy_config
- test_basic_network_connector
- test_network_connector_with_custom_role
@licjun
licjun requested a review from a team as a code owner October 13, 2026 18:32

This branch has not been deployed

No deployments
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.

2 participants