From 42cacc253f9f0fbf1411ac19f9dc4169aef5d3f5 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Tue, 23 Jun 2020 08:44:08 +0100 Subject: [PATCH] test(sodium): add pillar and tests for `3001` --- .../integration/v3001-py3/controls/pkgs_spec.rb | 17 +++++++++++++++++ .../v3001-py3/controls/service_spec.rb | 16 ++++++++++++++++ test/salt/pillar/v3001-py3.sls | 6 ++++++ 3 files changed, 39 insertions(+) create mode 100644 test/integration/v3001-py3/controls/pkgs_spec.rb create mode 100644 test/integration/v3001-py3/controls/service_spec.rb create mode 100644 test/salt/pillar/v3001-py3.sls diff --git a/test/integration/v3001-py3/controls/pkgs_spec.rb b/test/integration/v3001-py3/controls/pkgs_spec.rb new file mode 100644 index 0000000..91d629d --- /dev/null +++ b/test/integration/v3001-py3/controls/pkgs_spec.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +control 'salt packages' do + title 'should be installed' + + version = '3001' + + %w[ + salt-master + salt-minion + ].each do |p| + describe package(p) do + it { should be_installed } + its('version') { should match(/^#{version}/) } + end + end +end diff --git a/test/integration/v3001-py3/controls/service_spec.rb b/test/integration/v3001-py3/controls/service_spec.rb new file mode 100644 index 0000000..9d99883 --- /dev/null +++ b/test/integration/v3001-py3/controls/service_spec.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +control 'salt services' do + title 'should be running' + + %w[ + salt-master + salt-minion + ].each do |p| + describe service(p) do + it { should be_installed } + it { should be_enabled } + it { should be_running } + end + end +end diff --git a/test/salt/pillar/v3001-py3.sls b/test/salt/pillar/v3001-py3.sls new file mode 100644 index 0000000..cbeffe1 --- /dev/null +++ b/test/salt/pillar/v3001-py3.sls @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- +salt: + release: '3001' + py_ver: 'py3'