]> git.openstreetmap.org Git - chef.git/commitdiff
Fix some test failures
authorTom Hughes <tom@compton.nu>
Fri, 2 Dec 2022 12:04:17 +0000 (12:04 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 2 Dec 2022 12:04:31 +0000 (12:04 +0000)
test/integration/nodejs/serverspec/nodejs_spec.rb
test/integration/planet-dump/serverspec/planetdump_spec.rb
test/integration/planet-notes/serverspec/planetdump_spec.rb

index f63cb11990540ef63e9941d399b5d37fcbfb0623..2d4e7fd20d617713a3d06dcf78aec415104a42f3 100644 (file)
@@ -7,6 +7,6 @@ describe package("nodejs") do
   it { should be_installed }
 end
 
   it { should be_installed }
 end
 
-describe package("npm") do
+describe package("yarn") do
   it { should be_installed }
 end
   it { should be_installed }
 end
index ed082b910a631d07873f55eabc7c3c5ea17207c3..ea3de5d7f54e0d7f3a8fef4e100b88ae54fff504 100644 (file)
@@ -18,6 +18,7 @@ describe file("/usr/local/bin/planet-mirror-redirect-update") do
   it { should be_executable }
 end
 
   it { should be_executable }
 end
 
-describe file("/etc/cron.d/planet-dump-mirror") do
-  it { should be_file }
+describe service("planet-dump-mirror.timer") do
+  it { should be_enabled }
+  it { should be_running }
 end
 end
index 6d35a497b9e0239c1116b4bb0ccab7c2832a1bf8..18a34b4f72b6cacf8afb6478c4fae0d17f90cbcd 100644 (file)
@@ -8,6 +8,7 @@ describe file("/usr/local/bin/planet-notes-dump") do
   it { should be_executable }
 end
 
   it { should be_executable }
 end
 
-describe file("/etc/cron.d/planet-notes-dump") do
-  it { should be_file }
+describe service("planet-notes-dump.timer") do
+  it { should be_enabled }
+  it { should be_running }
 end
 end