test(windows): add local testing of Windows using Vagrant/Virtualbox

This commit is contained in:
Dafydd Jones committed 2020-06-26 17:03:40 +01:00
1 parent 1eca9c7551
commit 0465af72da
6 files changed
+123 -8

No files matched your search

@@ -1,14 +1,19 @@
# frozen_string_literal: true
pkgs =
case platform[:family]
when 'windows'
%w[Salt\ Minion]
else
%w[salt-master salt-minion]
end
control 'salt packages' do
title 'should be installed'
version = '3000.3'
%w[
salt-master
salt-minion
].each do |p|
pkgs.each do |p|
describe package(p) do
it { should be_installed }
its('version') { should match(/^#{version}/) }
@@ -1,12 +1,17 @@
# frozen_string_literal: true
services =
case platform[:family]
when 'windows'
%w[salt-minion]
else
%w[salt-master salt-minion]
end
control 'salt services' do
title 'should be running'
%w[
salt-master
salt-minion
].each do |p|
services.each do |p|
describe service(p) do
it { should be_installed }
it { should be_enabled }
+1
View File
@@ -17,3 +17,4 @@ supports:
- platform-name: amazon
- platform-name: oracle
- platform-name: arch
- platform: windows