From: Tom Hughes Date: Thu, 20 Feb 2020 18:40:51 +0000 (+0000) Subject: Add test for ftp cookbook X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/9cd15acbf56a0b0d9561b353dfa63d856cfc0fff?hp=484bf308fb9f43eda4c2d7ac7b3d3d23a3288044 Add test for ftp cookbook --- diff --git a/.kitchen.yml b/.kitchen.yml index 2e48b43d5..9f87919ba 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -87,6 +87,9 @@ suites: - name: forum run_list: - recipe[forum::default] + - name: ftp + run_list: + - recipe[ftp::default] - name: geodns run_list: - recipe[geodns::default] diff --git a/.travis.yml b/.travis.yml index 4df85e104..99ddba7fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,6 +51,9 @@ jobs: - name: "Test Kitchen (forum)" script: - bundle exec kitchen test forum-ubuntu-1804 + - name: "Test Kitchen (ftp)" + script: + - bundle exec kitchen test ftp-ubuntu-1804 - name: "Test Kitchen (geodns)" script: - bundle exec kitchen test geodns-ubuntu-1804 diff --git a/test/integration/ftp/serverspec/vsftpd_spec.rb b/test/integration/ftp/serverspec/vsftpd_spec.rb new file mode 100644 index 000000000..d6ed28f9e --- /dev/null +++ b/test/integration/ftp/serverspec/vsftpd_spec.rb @@ -0,0 +1,17 @@ +require "serverspec" + +# Required by serverspec +set :backend, :exec + +describe package("vsftpd") do + it { should be_installed } +end + +describe service("vsftpd") do + it { should be_enabled } + it { should be_running } +end + +describe port(21) do + it { should be_listening.with("tcp6") } +end