浏览代码

test(magnesium): add pillar and tests for `3002`

tags/v1.7.2
Imran Iqbal 3 年前
父节点
当前提交
c0660608d7
没有帐户链接到提交者的电子邮件
共有 3 个文件被更改,包括 39 次插入0 次删除
  1. +17
    -0
      test/integration/v3002-py3/controls/pkgs_spec.rb
  2. +16
    -0
      test/integration/v3002-py3/controls/service_spec.rb
  3. +6
    -0
      test/salt/pillar/v3002-py3.sls

+ 17
- 0
test/integration/v3002-py3/controls/pkgs_spec.rb 查看文件

@@ -0,0 +1,17 @@
# frozen_string_literal: true

control 'salt packages' do
title 'should be installed'

version = '3002'

%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should match(/^#{version}/) }
end
end
end

+ 16
- 0
test/integration/v3002-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

+ 6
- 0
test/salt/pillar/v3002-py3.sls 查看文件

@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
salt:
release: '3002'
py_ver: 'py3'

正在加载...
取消
保存