ansible-alpine-host/spec/dockers/firewall_spec.rb

23 lines
437 B
Ruby
Raw Normal View History

2022-07-02 22:26:54 +00:00
# frozen_string_literal: true
require 'spec_helper'
require 'ansible_inventory'
host_name = ENV['TARGET_HOSTNAME']
host_vars = AnsibleInventory.host_vars host_name
describe service('ipset') do
it { should be_enabled }
it { should be_running }
end
describe service('iptables') do
it { should be_enabled }
it { should be_running }
end
describe service('ip6tables') do
it { should be_enabled }
it { should be_running }
end