From 6b1525fbf754cd7a363c9955058a6d2c88c4caed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20B=C3=A9rtoli?= Date: Wed, 3 Oct 2018 18:27:27 -0300 Subject: [PATCH] Add some archive state tests, update changelog --- .kitchen.yml | 2 +- CHANGELOG.rst | 20 ++++++++++++++++++++ test/integration/default/archives_spec.rb | 21 +++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 test/integration/default/archives_spec.rb diff --git a/.kitchen.yml b/.kitchen.yml index 6f4f3f4..070d4b8 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -49,7 +49,7 @@ provisioner: verifier: name: inspec - sudo: false + sudo: true # cli, documentation, html, progress, json, json-min, json-rspec, junit reporter: - cli diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 747499f..14d8a88 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,3 +17,23 @@ packages formula 0.0.4 (2018-03-06) - Allow to specify held system packages also as a list (#10) + +0.0.5 (2018-03-14) + +- Add snap support + +0.0.6 (2018-04-09) + +- Add snap with classic confinement support + +0.0.7 (2018-07-11) + +- Fix pip/gems for FreeBSD + +0.0.8 (2018-08-23) + +- Add archive support + +0.0.9 (2018-10-03) + +- Add support for plain files using arcihve diff --git a/test/integration/default/archives_spec.rb b/test/integration/default/archives_spec.rb new file mode 100644 index 0000000..9c5339e --- /dev/null +++ b/test/integration/default/archives_spec.rb @@ -0,0 +1,21 @@ +### ARCHIVE PKGS +control 'Archive packages' do + title 'should be downloaded and installed' + desc '(only testing in the Debian platform, as these are OS-independent' + + only_if do + os.debian? + end + + %w( + docker-compose.yml + phantomjs-2.1.1-linux-x86_64.tar.bz2 + ).each do |f| + describe file("/usr/local/src/#{f}") do + it { should exist } + end + end + describe file('/usr/local/bin/kubectl') do + it { should be_executable } + end +end