fix: windows ut pipeline #8592
fix: windows ut pipeline #8592
20 fail, 337 pass in 44s
Annotations
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1
github-actions / Test Results
Get-AKS-NetworkAdapter.Successful network adapter retrieval.Should return network adapter when IP address and adapter are found successfully (D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected Get-NetIPAddress to be called 1 times exactly, but was called 0 times
at Should -Invoke @__params__p, C:\Program Files\WindowsPowerShell\Modules\Pester\5.7.1\Pester.psm1:15432
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1
github-actions / Test Results
Get-AKS-NetworkAdapter.Successful network adapter retrieval.Should handle different IPv4 addresses and interface indexes correctly (D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected Get-NetIPAddress to be called at least 1 times, but was called 0 times
at Should -Invoke @__params__p, C:\Program Files\WindowsPowerShell\Modules\Pester\5.7.1\Pester.psm1:15432
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1
github-actions / Test Results
Get-AKS-NetworkAdapter.Get-NetIPAddress failures that trigger fallback.Should call fallback when Get-NetIPAddress returns null (D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected Get-NetAdapter to be called 0 times exactly, but was called 1 times
at Should -Invoke @__params__p, C:\Program Files\WindowsPowerShell\Modules\Pester\5.7.1\Pester.psm1:15432
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1
github-actions / Test Results
Get-AKS-NetworkAdapter.Get-NetAdapter failures that trigger fallback.Should call fallback when Get-NetAdapter returns null (D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected Get-NetAdapter to be called 1 times exactly, but was called 0 times
at Should -Invoke @__params__p, C:\Program Files\WindowsPowerShell\Modules\Pester\5.7.1\Pester.psm1:15432
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1
github-actions / Test Results
Get-AKS-NetworkAdapter.Get-NetAdapter failures that trigger fallback.Should handle different interface indexes when Get-NetAdapter fails (D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected Get-NetAdapter to be called at least 1 times, but was called 0 times
at Should -Invoke @__params__p, C:\Program Files\WindowsPowerShell\Modules\Pester\5.7.1\Pester.psm1:15432
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1
github-actions / Test Results
Get-AKS-NetworkAdapter.Exception handling and error propagation.Should propagate exceptions from Get-NetworkAdapter-Fallback (D:\a\AgentBaker\AgentBaker\staging\cse\windows\azurecnifunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected Get-NetworkAdapter-Fallback to be called 1 times exactly, but was called 2 times
at Should -Invoke @__params__p, C:\Program Files\WindowsPowerShell\Modules\Pester\5.7.1\Pester.psm1:15432
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.ProcessAndWriteContainerdConfig.containerd template v1 .Should process containerdtemplate.toml with basic configuration (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected no exception to be thrown, but an exception "Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding"." was thrown from D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:163 char:3
+ Set-ContainerdRegistryConfig -Registry "docker.io" -RegistryHost "r …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
at { ProcessAndWriteContainerdConfig -ContainerDVersion "1.7.9" -CNIBinDir $cniBinDir -CNIConfDir $cniConfDir } | Should -Not -Throw, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:75
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:75
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.ProcessAndWriteContainerdConfig.containerd template v1 .Should include hyperv runtimes when hyperv is enabled (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected no exception to be thrown, but an exception "Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding"." was thrown from D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:163 char:3
+ Set-ContainerdRegistryConfig -Registry "docker.io" -RegistryHost "r …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
at { ProcessAndWriteContainerdConfig -ContainerDVersion "1.7.9" -CNIBinDir $cniBinDir -CNIConfDir $cniConfDir } | Should -Not -Throw, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:95
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:95
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.ProcessAndWriteContainerdConfig.containerd template v1 .Should handle older containerd versions (<1.7.9) by removing annotations (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected no exception to be thrown, but an exception "Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding"." was thrown from D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:163 char:3
+ Set-ContainerdRegistryConfig -Registry "docker.io" -RegistryHost "r …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
at { ProcessAndWriteContainerdConfig -ContainerDVersion "1.6.9" -CNIBinDir $cniBinDir -CNIConfDir $cniConfDir } | Should -Not -Throw, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:105
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:105
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.ProcessAndWriteContainerdConfig.containerd template v2.Should process containerdtemplate.toml with basic configuration (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected no exception to be thrown, but an exception "Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding"." was thrown from D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:163 char:3
+ Set-ContainerdRegistryConfig -Registry "docker.io" -RegistryHost "r …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
at { ProcessAndWriteContainerdConfig -ContainerDVersion "2.0.5" -CNIBinDir $cniBinDir -CNIConfDir $cniConfDir } | Should -Not -Throw, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:136
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:136
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.ProcessAndWriteContainerdConfig.containerd template v2.Should include hyperv runtimes when hyperv is enabled (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
Expected no exception to be thrown, but an exception "Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding"." was thrown from D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:163 char:3
+ Set-ContainerdRegistryConfig -Registry "docker.io" -RegistryHost "r …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
at { ProcessAndWriteContainerdConfig -ContainerDVersion "2.0.5" -CNIBinDir $cniBinDir -CNIConfDir $cniConfDir } | Should -Not -Throw, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:156
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:156
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-ContainerdRegistryConfig.Should create hosts.toml file for docker.io registry (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-ContainerdRegistryConfig, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:233
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:191
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-ContainerdRegistryConfig.Should create hosts.toml file for mcr.azk8s.cn registry (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-ContainerdRegistryConfig, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:233
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:210
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-ContainerdRegistryConfig.Should generate correct hosts.toml content structure (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-ContainerdRegistryConfig, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:233
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:232
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-ContainerdRegistryConfig.Should handle custom registry and host correctly (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-ContainerdRegistryConfig, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:233
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:255
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-ContainerdRegistryConfig.Should write to correct hosts.toml file path (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-ContainerdRegistryConfig, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:233
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:278
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-ContainerdRegistryConfig.Should use ascii encoding when writing hosts.toml (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-ContainerdRegistryConfig, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:233
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:293
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-BootstrapProfileRegistryContainerdHost.Should write hosts.toml for default mcr.microsoft.com when MCRRepositoryBase is not set (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-BootstrapProfileRegistryContainerdHost, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:273
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:322
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-BootstrapProfileRegistryContainerdHost.Should sanitize bootstrap profile host and use custom mcr repository base (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-BootstrapProfileRegistryContainerdHost, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:273
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:339
Check warning on line 0 in D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1
github-actions / Test Results
Containerd Functions Tests.Set-BootstrapProfileRegistryContainerdHost.Should map host with repository prefix to v2 path (D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1) failed
test-results/staging_cse_windows.xml [took 0s]
Raw output
PSInvalidCastException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ArgumentTransformationMetadataException: Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Encoding'. Cannot convert the "ascii" value of type "System.String" to type "System.Text.Encoding".
at Set-BootstrapProfileRegistryContainerdHost, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.ps1:273
at <ScriptBlock>, D:\a\AgentBaker\AgentBaker\staging\cse\windows\containerdfunc.tests.ps1:353