Skip to content

Commit

Permalink
Expand connection plugins used in CI
Browse files Browse the repository at this point in the history
Expands the testing matrix of the Windows connection plugins used in CI
to cover all the supported connections of Windows.
  • Loading branch information
jborean93 committed Aug 22, 2024
1 parent c510555 commit fbad0f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ stages:
nameFormat: Server {0}
testFormat: devel/windows/{0}
targets:
- test: 2016
- test: 2019
- test: 2022
- test: 2016/winrm/http
- test: 2019/winrm/https
- test: 2022/winrm/https
- test: 2022/psrp/https
- test: 2022/ssh/key
groups:
- 1
- stage: Summary
Expand Down
10 changes: 7 additions & 3 deletions tests/utils/shippable/windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ declare -a args
IFS='/:' read -ra args <<< "$1"

version="${args[1]}"
connection="${args[2]}"
connection_setting="${args[3]}"

if [ "${#args[0]}" -gt 2 ]; then
target="shippable/windows/group${args[2]}/"
if [ "${#args[0]}" -gt 4 ]; then
target="shippable/windows/group${args[4]}/"
else
target="shippable/windows/"
fi
Expand All @@ -18,4 +20,6 @@ provider="${P:-default}"

# shellcheck disable=SC2086
ansible-test windows-integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
--windows "${version}" --docker default --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
--controller "docker:default" \
--target "remote:windows/${version},connection=${connection}+${connection_setting},provider=${provider}" \
--remote-terminate always --remote-stage "${stage}"

0 comments on commit fbad0f5

Please sign in to comment.