rightscale-cookbooks / rs-lamp

Chef cookbook for setting up all-in-one LAMP server
Other
0 stars 0 forks source link

Add a kitchen test for the skip of dump file import on subsequent run of `rs-lamp::dump_import` #2

Open arangamani opened 10 years ago

arangamani commented 10 years ago

The rs-lamp::dump_import recipe creates a touch file in /var/lib/rightscale with the dump file name when it imports the dump file for the first time. The recipe will check for the corresponding touch file and skip the import if the touch file exists.

There should be a test that runs the rs-lamp::dump_import 2 times and should check for the skip log message in the log file.

douglaswth commented 10 years ago

The idea for this that @arangamani and I came up with is this:

This relies on us moving to rake instead of strainer.