]> git.openstreetmap.org Git - chef.git/commitdiff
Add test for planet::current recipe
authorTom Hughes <tom@compton.nu>
Sun, 23 Feb 2020 19:08:23 +0000 (19:08 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 23 Feb 2020 22:45:24 +0000 (22:45 +0000)
.github/workflows/test-kitchen.yml
.kitchen.yml
cookbooks/planet/recipes/current.rb

index b395f204c2f2cf47bd8d48d7157b79abced19b18..2566c414c885c99adc62959f3c4ec056aa275f11 100644 (file)
@@ -48,6 +48,7 @@ jobs:
           - passenger
           - piwik
           - planet
+          - planet-current
           - planet-dump
           - planet-notes
           - planet-replication
index a1a674889c4dde5ce3981d6720c917175a5cc434..df5f78b82588490406b506b843971f0c55a2e568 100644 (file)
@@ -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]
index 7e2e50f1d32a258604f65b8fb5b534929a7e6397..20c77b7322c8752bab271fd6c877695f7271794d 100644 (file)
@@ -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