瀏覽代碼

Add basic test suite

tags/v0.6.2
Adam Mendlik 7 年之前
父節點
當前提交
112580daa1
共有 3 個文件被更改,包括 48 次插入0 次删除
  1. +2
    -0
      .gitignore
  2. +40
    -0
      .kitchen.yml
  3. +6
    -0
      test/integration/default/serverspec/firewalld_server_spec.rb

+ 2
- 0
.gitignore 查看文件

@@ -4,3 +4,5 @@ metadata.json
*.swp
*.tmp
/.project
.kitchen/
.kitchen.local.yml

+ 40
- 0
.kitchen.yml 查看文件

@@ -0,0 +1,40 @@
---
driver:
name: vagrant

platforms:
- name: centos-7.2

provisioner:
name: salt_solo
salt_install: bootstrap
salt_bootstrap_url: https://bootstrap.saltstack.com
salt_version: latest
formula: firewalld
pillars:
top.sls:
base:
'*':
- firewalld
firewalld.sls:
firewalld:
enabled: True
IndividualCalls: 'no'
LogDenied: 'off'
services:
glusterfs:
short: glusterfs
description: 'GlusterFS network filesystem'
ports:
tcp:
- 24007-24008
- 49152-49200

suites:
- name: default
provisioner:
salt_bootstrap_options: -X -d
state_top:
base:
'*':
- firewalld

+ 6
- 0
test/integration/default/serverspec/firewalld_server_spec.rb 查看文件

@@ -0,0 +1,6 @@
require 'serverspec'
set :backend, :exec

describe service('firewalld') do
it { should be_running }
end

Loading…
取消
儲存