require_relative'spec_helper'
describe package('ufw') do
it { should be_installed }
end
describe service('ufw') do
it { should be_enabled }
it { should be_running }
end
describe port(22) do
it { should be_listening }
end

##Testing Docker Containers on OSX
On OSX the Vagrant docker provider runs a Boot2Docker VM, then launches your docker container on that VM. Vagrant does SSH Proxying to send the commands through that VM and have them reach the Docker Container. Vagrant serverspec handles this the same way by getting the container host VM infromation and proxying the commands to the machine through an SSH Proxy. This functionality was introduced in this PR

Additional informations

SSH connections

SSH connection is closed before each provision run.
This is mandatory if the provision is applied to multiple vms in the same run,
else all runs will be applied to the first vm (See #22) due to an SSH
connection which already exists.
This functionality was introduced in this PR

Server spec examples

RSpec examples are clear before each provision run.
This is mandatory if the provision is applied to multiple vms in the same run,
else each run replay examples of previous calls also.
This functionality was introduced in this PR

In case of shared examples

If you use shared examples into your test suite, you need to use 'load' instead
of 'require', else errors can occurs (See #23 comments).