-
Notifications
You must be signed in to change notification settings - Fork 44
fix(evaluation): scope SIL AzureML validation code path and script reference #387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
276d7c7
fix(infrastructure): replace hardcoded NAT Gateway availability zones…
6ed22e1
feat(infrastructure): add validation for nat_gateway_zones variable
b37d59b
docs(infrastructure): add migration notes for nat_gateway_zones zone …
942a939
Merge branch 'main' into fix/nat-gateway-zones-issue-14
kgmwang1 0c48809
Merge branch 'main' into fix/nat-gateway-zones-issue-14
kgmwang1 5fe6cb0
style(infrastructure): strip trailing whitespace from terraform files
f8e19f1
fix(infrastructure): resolve merge conflict and set nat_gateway_zones…
c074ca3
fix(evaluation): scope SIL AzureML validation code path and script re…
675b67c
adding validation to infrastructure/terraform/variables.tf
kgmwang1 c4ec000
fix(evaluation): correct help text default path and NAT gateway zone
c91e077
Merge branch 'main' into fix/sil-azureml-validation-code-path
kgmwang1 0b45edf
Merge remote-tracking branch 'origin/main' into fix/sil-azureml-valid…
cf62f41
Merge branch 'fix/sil-azureml-validation-code-path' of https://github…
bc10603
Merge branch 'main' into fix/sil-azureml-validation-code-path
WilliamBerryiii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Azure ML ignore file - uses gitignore syntax | ||
| # Place in code root to exclude files from job snapshots | ||
|
|
||
| # Python bytecode and cache | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
| *.pyc | ||
| *.pyo | ||
|
|
||
| # Virtual environments | ||
| .venv/ | ||
| venv/ | ||
| env/ | ||
| .env/ | ||
|
|
||
| # Testing and coverage | ||
| .pytest_cache/ | ||
| .mypy_cache/ | ||
| .coverage | ||
| htmlcov/ | ||
| *.cover | ||
|
|
||
| # Build artifacts | ||
| *.egg-info/ | ||
| dist/ | ||
| build/ | ||
| *.egg | ||
|
|
||
| # IDE and editor files | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # OS files | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| # Temp folders used in OSMO jobs | ||
| .tmp/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 138 additions & 0 deletions
138
infrastructure/terraform/modules/platform/tests/validation.tftest.hcl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| // Platform module variable validation tests | ||
| // Validates that invalid nat_gateway_zones values are rejected by validation blocks | ||
|
|
||
| mock_provider "azurerm" {} | ||
| mock_provider "azuread" {} | ||
| mock_provider "azapi" {} | ||
| mock_provider "random" {} | ||
|
|
||
| override_data { | ||
| target = data.azurerm_client_config.current | ||
| values = { | ||
| tenant_id = "00000000-0000-0000-0000-000000000000" | ||
| } | ||
| } | ||
|
|
||
| variables { | ||
| current_user_oid = "00000000-0000-0000-0000-000000000001" | ||
| } | ||
|
|
||
| run "setup" { | ||
| module { | ||
| source = "./tests/setup" | ||
| } | ||
| } | ||
|
|
||
| // ============================================================ | ||
| // NAT Gateway Zones — Invalid Zone Value | ||
| // ============================================================ | ||
|
|
||
| run "nat_gateway_zones_invalid_zone_rejected" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| resource_prefix = run.setup.resource_prefix | ||
| environment = run.setup.environment | ||
| instance = run.setup.instance | ||
| location = run.setup.location | ||
| resource_group = run.setup.resource_group | ||
| current_user_oid = run.setup.current_user_oid | ||
| nat_gateway_zones = ["4"] | ||
| } | ||
|
|
||
| expect_failures = [var.nat_gateway_zones] | ||
| } | ||
|
|
||
| // ============================================================ | ||
| // NAT Gateway Zones — Non-numeric Value | ||
| // ============================================================ | ||
|
|
||
| run "nat_gateway_zones_non_numeric_rejected" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| resource_prefix = run.setup.resource_prefix | ||
| environment = run.setup.environment | ||
| instance = run.setup.instance | ||
| location = run.setup.location | ||
| resource_group = run.setup.resource_group | ||
| current_user_oid = run.setup.current_user_oid | ||
| nat_gateway_zones = ["abc"] | ||
| } | ||
|
|
||
| expect_failures = [var.nat_gateway_zones] | ||
| } | ||
|
|
||
| // ============================================================ | ||
| // NAT Gateway Zones — Duplicate Zones | ||
| // ============================================================ | ||
|
|
||
| run "nat_gateway_zones_duplicates_rejected" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| resource_prefix = run.setup.resource_prefix | ||
| environment = run.setup.environment | ||
| instance = run.setup.instance | ||
| location = run.setup.location | ||
| resource_group = run.setup.resource_group | ||
| current_user_oid = run.setup.current_user_oid | ||
| nat_gateway_zones = ["1", "1"] | ||
| } | ||
|
|
||
| expect_failures = [var.nat_gateway_zones] | ||
| } | ||
|
|
||
| // ============================================================ | ||
| // NAT Gateway Zones — Valid Single Zone | ||
| // ============================================================ | ||
|
|
||
| run "nat_gateway_zones_single_zone_accepted" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| resource_prefix = run.setup.resource_prefix | ||
| environment = run.setup.environment | ||
| instance = run.setup.instance | ||
| location = run.setup.location | ||
| resource_group = run.setup.resource_group | ||
| current_user_oid = run.setup.current_user_oid | ||
| nat_gateway_zones = ["2"] | ||
| } | ||
| } | ||
|
|
||
| // ============================================================ | ||
| // NAT Gateway Zones — Valid Multiple Zones | ||
| // ============================================================ | ||
|
|
||
| run "nat_gateway_zones_multiple_zones_accepted" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| resource_prefix = run.setup.resource_prefix | ||
| environment = run.setup.environment | ||
| instance = run.setup.instance | ||
| location = run.setup.location | ||
| resource_group = run.setup.resource_group | ||
| current_user_oid = run.setup.current_user_oid | ||
| nat_gateway_zones = ["1", "2", "3"] | ||
| } | ||
| } | ||
|
|
||
| // ============================================================ | ||
| // NAT Gateway Zones — Empty List (No AZ Support) | ||
| // ============================================================ | ||
|
|
||
| run "nat_gateway_zones_empty_accepted" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| resource_prefix = run.setup.resource_prefix | ||
| environment = run.setup.environment | ||
| instance = run.setup.instance | ||
| location = run.setup.location | ||
| resource_group = run.setup.resource_group | ||
| current_user_oid = run.setup.current_user_oid | ||
| nat_gateway_zones = [] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.