From 112580daa17a845d125b6a2cdf6c9b46015e71af Mon Sep 17 00:00:00 2001 From: Adam Mendlik Date: Fri, 10 Mar 2017 11:30:39 -0700 Subject: [PATCH] Add basic test suite --- .gitignore | 2 + .kitchen.yml | 40 +++++++++++++++++++ .../serverspec/firewalld_server_spec.rb | 6 +++ 3 files changed, 48 insertions(+) create mode 100644 .kitchen.yml create mode 100644 test/integration/default/serverspec/firewalld_server_spec.rb diff --git a/.gitignore b/.gitignore index 302fe24..d3ec1ee 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ metadata.json *.swp *.tmp /.project +.kitchen/ +.kitchen.local.yml diff --git a/.kitchen.yml b/.kitchen.yml new file mode 100644 index 0000000..eaa7f3b --- /dev/null +++ b/.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 diff --git a/test/integration/default/serverspec/firewalld_server_spec.rb b/test/integration/default/serverspec/firewalld_server_spec.rb new file mode 100644 index 0000000..dddd8dd --- /dev/null +++ b/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