Bladeren bron

Update testing environment

tags/v0.6.2
Javier Bértoli 6 jaren geleden
bovenliggende
commit
b641216b8b
4 gewijzigde bestanden met toevoegingen van 49 en 8 verwijderingen
  1. +23
    -5
      .kitchen.yml
  2. +19
    -0
      .travis.yml
  3. +7
    -0
      Gemfile
  4. +0
    -3
      test/integration/default/firewalld_spec.rb

+ 23
- 5
.kitchen.yml Bestand weergeven

--- ---
driver: driver:
name: vagrant
name: docker

driver_config:
use_sudo: false
privileged: true
provision_command: mkdir -p /run/sshd
run_command: /lib/systemd/systemd


platforms: platforms:
- name: centos-7.2
- name: debian-9
- name: ubuntu-18.04
- name: centos-7


provisioner: provisioner:
name: salt_solo name: salt_solo
salt_install: bootstrap
salt_bootstrap_url: https://bootstrap.saltstack.com
log_level: info
require_chef: false
salt_version: latest salt_version: latest
formula: firewalld formula: firewalld
salt_copy_filter:
- .kitchen
- .git
pillars: pillars:
top.sls: top.sls:
base: base:
- 24007-24008 - 24007-24008
- 49152-49200 - 49152-49200


verifier:
name: inspec
sudo: false
# cli, documentation, html, progress, json, json-min, json-rspec, junit
reporter: cli
inspec_tests:
- path: test/integration/default

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

+ 19
- 0
.travis.yml Bestand weergeven

sudo: required
cache: bundler
language: ruby

services:
- docker

before_install:
- bundle install

env:
matrix:
- INSTANCE: default-debian-9
- INSTANCE: default-ubuntu-1804
- INSTANCE: default-centos-7

script:
- bundle exec kitchen verify ${INSTANCE}


+ 7
- 0
Gemfile Bestand weergeven

source "https://rubygems.org"

gem "test-kitchen", '>=1.20.0'
gem "kitchen-docker"
gem "kitchen-salt", ">=0.1.0"
gem "kitchen-inspec"


test/integration/default/serverspec/firewalld_server_spec.rb → test/integration/default/firewalld_spec.rb Bestand weergeven

require 'serverspec'
set :backend, :exec

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

Laden…
Annuleren
Opslaan