From 7501bbec201d121161e8c592749615e4f1e3eee1 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Fri, 8 Nov 2024 12:28:20 +1000 Subject: Add support for Windows Server 2025 (#84285) Adds Windows Server 2025 to the testing matrix. --- .azure-pipelines/azure-pipelines.yml | 8 ++++++++ changelogs/fragments/84229-windows-server-2025.yml | 4 ++++ .../library/command_util_test.ps1 | 2 +- test/lib/ansible_test/_data/completion/windows.txt | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/84229-windows-server-2025.yml diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index d339b43a4f..c3619bc034 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -78,6 +78,10 @@ stages: test: 2022/psrp/http - name: 2022 SSH Key test: 2022/ssh/key + - name: 2025 PSRP HTTP + test: 2025/psrp/http + - name: 2025 SSH Key + test: 2025/ssh/key - stage: Remote dependsOn: [] jobs: @@ -198,6 +202,10 @@ stages: test: 2022/psrp/http - name: 2022 SSH Key test: 2022/ssh/key + - name: 2025 PSRP HTTP + test: 2025/psrp/http + - name: 2025 SSH Key + test: 2025/ssh/key - stage: Incidental dependsOn: [] jobs: diff --git a/changelogs/fragments/84229-windows-server-2025.yml b/changelogs/fragments/84229-windows-server-2025.yml new file mode 100644 index 0000000000..82c16371a3 --- /dev/null +++ b/changelogs/fragments/84229-windows-server-2025.yml @@ -0,0 +1,4 @@ +minor_changes: + - >- + Windows - Add support for Windows Server 2025 to Ansible and as an ``ansible-test`` + remote target - https://github.com/ansible/ansible/issues/84229 diff --git a/test/integration/targets/module_utils_Ansible.ModuleUtils.CommandUtil/library/command_util_test.ps1 b/test/integration/targets/module_utils_Ansible.ModuleUtils.CommandUtil/library/command_util_test.ps1 index ebffae7ff0..ce3ce2503c 100644 --- a/test/integration/targets/module_utils_Ansible.ModuleUtils.CommandUtil/library/command_util_test.ps1 +++ b/test/integration/targets/module_utils_Ansible.ModuleUtils.CommandUtil/library/command_util_test.ps1 @@ -65,7 +65,7 @@ Assert-Equal -actual $actual.executable -expected $exe $test_name = "no working directory set" $actual = Run-Command -command "cmd.exe /c cd" Assert-Equal -actual $actual.rc -expected 0 -Assert-Equal -actual $actual.stdout -expected "$($pwd.Path)`r`n" +Assert-Equal -actual $actual.stdout.ToUpper() -expected "$($pwd.Path)`r`n".ToUpper() Assert-Equal -actual $actual.stderr -expected "" Assert-Equal -actual $actual.executable.ToUpper() -expected "$env:SystemRoot\System32\cmd.exe".ToUpper() diff --git a/test/lib/ansible_test/_data/completion/windows.txt b/test/lib/ansible_test/_data/completion/windows.txt index 85d29810ac..75f9c2e3b4 100644 --- a/test/lib/ansible_test/_data/completion/windows.txt +++ b/test/lib/ansible_test/_data/completion/windows.txt @@ -1,4 +1,5 @@ windows/2016 provider=aws arch=x86_64 connection=winrm+http windows/2019 provider=aws arch=x86_64 connection=winrm+https windows/2022 provider=aws arch=x86_64 connection=winrm+https +windows/2025 provider=aws arch=x86_64 connection=winrm+https windows provider=aws arch=x86_64 connection=winrm+https -- cgit v1.2.3