From 3b0dcf7f29e2de01f6b617102e761cf6c239596d Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 29 Jan 2018 16:00:41 -0800 Subject: [PATCH] Test Windows 2012+ using Azure by default. --- test/runner/lib/core_ci.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/runner/lib/core_ci.py b/test/runner/lib/core_ci.py index 6ab6568fef..29ba6bb510 100644 --- a/test/runner/lib/core_ci.py +++ b/test/runner/lib/core_ci.py @@ -73,6 +73,9 @@ class AnsibleCoreCI(object): azure=( 'azure', 'rhel', + 'windows/2012', + 'windows/2012-R2', + 'windows/2016', ), parallels=( 'osx', @@ -88,6 +91,11 @@ class AnsibleCoreCI(object): # assign default provider based on platform self.provider = candidate break + for candidate in providers: + if '%s/%s' % (platform, version) in providers[candidate]: + # assign default provider based on platform and version + self.provider = candidate + break if self.provider in ('aws', 'azure'): if self.provider != 'aws':