-
Notifications
You must be signed in to change notification settings - Fork 27
/
kitchen.yml
67 lines (62 loc) · 1.83 KB
/
kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
# Check this doc: https://github.com/test-kitchen/kitchen-azurerm
# you may set the following environment variables:
# AZURE_CLIENT_ID="your-azure-client-id-here"
# AZURE_CLIENT_SECRET="your-client-secret-here"
# AZURE_TENANT_ID="your-azure-tenant-id-here"
# (check doc https://github.com/test-kitchen/kitchen-azurerm for more details)
driver:
name: azurerm
subscription_id: <%= ENV['AZ_SUBSCRIPTION_ID'] %>
location: 'westus2'
machine_size: 'Standard_D2s_v3'
username: azure
password: <%=
require "securerandom"
if File.exists?("./.kitchen/pwd.txt")
ENV['MACHINE_PASS'] = File.read("./.kitchen/pwd.txt")
else
ENV['MACHINE_PASS'] = SecureRandom.base64(24)
File.open("./.kitchen/pwd.txt", "w") { |f| f.write ENV['MACHINE_PASS'] }
end
ENV['MACHINE_PASS']
%>
provisioner:
name: dsc
dsc_local_configuration_manager_version: wmf5
dsc_local_configuration_manager:
reboot_if_needed: true
debug_mode: none
modules_path: output\module
verifier:
shell: powershell
name: pester
copy_folders:
- output/module
downloads:
"./PesterTestResults.xml": "./output/testResults/"
bootstrap:
repository_url: "https://www.powershellgallery.com/api/v2"
modules:
- PackageManagement
- PowerShellGet
platforms:
- name: win2019
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2019-Datacenter:latest
transport:
name: winrm
#- name: win2016
# driver:
# image_urn: MicrosoftWindowsServer:WindowsServer:2016-Datacenter:latest
# transport:
# name: winrm
# elevated: true
# lifecycle:
# pre_converge:
# - remote: '''[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12'' | Set-Content -Path $PROFILE'
suites:
- name: allProducts
- name: defaultProducts
- name: onlyOneProduct
- name: wildcardInProduct