Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,18 @@ jobs:
Write-Host " -> test_scripts/$s"
}

# Optional until every bundled branch carries it (the feature bundle builds an older branch).
$optionalScripts = @('run_isolation_session_network_test.ps1')
foreach ($s in $optionalScripts) {
$src = "$(Build.SourcesDirectory)/tests/scripts/$s"
if (Test-Path -LiteralPath $src -PathType Leaf) {
Copy-Item $src "$out/test_scripts/"
Write-Host " -> test_scripts/$s"
} else {
Write-Host " (skip) optional test script not on this branch: $s"
}
}

# Use self's staging logic even when the selected source branch predates the helper.
& "$(Pipeline.Workspace)/lock-check/scripts/ci/stage-isolation-session-test-helpers.ps1" `
-SourceDirectory "$(Build.SourcesDirectory)/tests/scripts" `
Expand Down
5 changes: 3 additions & 2 deletions scripts/ci/build-windows-sdk-test-bundle.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Copy-Item -LiteralPath $nodeExe, (Join-Path (Split-Path -Parent $nodeExe) 'LICEN

Copy-Item -Path (Join-Path $repoRoot 'tests\configs\isolation_session_*.json') -Destination (New-Directory (Join-Path $OutputDirectory 'test_configs'))
$scriptsOut = New-Directory (Join-Path $OutputDirectory 'test_scripts')
foreach ($name in 'run_isolation_session_tests.ps1', 'run_isolation_session_state_aware_tests.ps1', 'run_isolation_session_resize_smoke.ps1') {
foreach ($name in 'run_isolation_session_tests.ps1', 'run_isolation_session_state_aware_tests.ps1', 'run_isolation_session_resize_smoke.ps1', 'run_isolation_session_network_test.ps1') {
Comment thread
ionvasilian marked this conversation as resolved.
Resolved
Copy-Item -LiteralPath (Join-Path $repoRoot "tests\scripts\$name") -Destination $scriptsOut
}
$helperPaths = @(& (Join-Path $PSScriptRoot 'stage-isolation-session-test-helpers.ps1') `
Expand Down Expand Up @@ -307,7 +307,8 @@ $required = @(
"sdk-integration\node_modules\@microsoft\mxc-sdk\bin\$Architecture\mxc-wslc-gateway.tar",
'test_scripts\run_isolation_session_tests.ps1',
'test_scripts\run_isolation_session_state_aware_tests.ps1',
'test_scripts\run_isolation_session_resize_smoke.ps1'
'test_scripts\run_isolation_session_resize_smoke.ps1',
'test_scripts\run_isolation_session_network_test.ps1'
)
if ($Architecture -eq 'x64') {
$required += @(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "1.1.0-alpha",
"containment": "isolation_session",
"process": {
"commandLine": "echo"
},
"network": {
"egress": {
"default": "deny",
"allow": [
{
"to": [
{
"cidr": "127.0.0.1/32"
}
],
"ports": [
{
"protocol": "tcp",
"port": 5001
}
]
}
]
},
"ingress": {
"default": "deny",
"hostLoopback": "deny"
}
}
}
Loading
Loading