From c783d0a11851850072bcd05d6c87afab99fda211 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 23 Feb 2020 19:08:23 +0000 Subject: [PATCH] Add test for planet::current recipe --- .github/workflows/test-kitchen.yml | 1 + .kitchen.yml | 3 +++ cookbooks/planet/recipes/current.rb | 3 +++ 3 files changed, 7 insertions(+) diff --git a/.github/workflows/test-kitchen.yml b/.github/workflows/test-kitchen.yml index b395f204c..2566c414c 100644 --- a/.github/workflows/test-kitchen.yml +++ b/.github/workflows/test-kitchen.yml @@ -48,6 +48,7 @@ jobs: - passenger - piwik - planet + - planet-current - planet-dump - planet-notes - planet-replication diff --git a/.kitchen.yml b/.kitchen.yml index a1a674889..df5f78b82 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -169,6 +169,9 @@ suites: - name: planet run_list: - recipe[planet::default] + - name: planet-current + run_list: + - recipe[planet::current] - name: planet-dump run_list: - recipe[planet::dump] diff --git a/cookbooks/planet/recipes/current.rb b/cookbooks/planet/recipes/current.rb index 7e2e50f1d..20c77b732 100644 --- a/cookbooks/planet/recipes/current.rb +++ b/cookbooks/planet/recipes/current.rb @@ -17,6 +17,8 @@ # limitations under the License. # +include_recipe "accounts" + package %w[ pyosmium ] @@ -47,6 +49,7 @@ remote_file "/var/lib/planet/planet.pbf" do owner "planet" group "planet" mode 0o644 + not_if { ENV["TEST_KITCHEN"] } end template "/etc/cron.d/planet-update" do -- 2.43.2