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 21, 2024
1 parent 3136977 commit f0ae92e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,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
- 2
Expand Down
12 changes: 8 additions & 4 deletions tests/utils/shippable/windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ 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

stage="${S:-prod}"
provider="${P:-default}"
provider="${P:-dev}"

# 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 f0ae92e

Please sign in to comment.