mirror of
https://github.com/proffalken/ansible-openhab
synced 2026-01-11 23:08:47 +01:00
Initial import of the role after tidying it up
This commit is contained in:
8
test/integration/openhab/default.yml
Normal file
8
test/integration/openhab/default.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# Copyright (c) 2015 by DevOpsGuys. All rights reserved.
|
||||
#
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
roles:
|
||||
- openhab
|
||||
3
test/integration/openhab/serverspec/Gemfile
Normal file
3
test/integration/openhab/serverspec/Gemfile
Normal file
@@ -0,0 +1,3 @@
|
||||
source 'https://rubygems.org/'
|
||||
gem 'rake'
|
||||
gem 'busser'
|
||||
20
test/integration/openhab/serverspec/openhab_spec.rb
Normal file
20
test/integration/openhab/serverspec/openhab_spec.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
require 'serverspec'
|
||||
|
||||
# Required by serverspec
|
||||
set :backend, :exec
|
||||
|
||||
describe package('openhab') do
|
||||
it { should be_disabled }
|
||||
end
|
||||
|
||||
describe service('openhab') do
|
||||
it { should be_enabled }
|
||||
it { should be_running }
|
||||
end
|
||||
|
||||
describe port(80) do
|
||||
it { should be_listening }
|
||||
end
|
||||
describe port(443) do
|
||||
it { should be_listening }
|
||||
end
|
||||
Reference in New Issue
Block a user