Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arangamani opened this issue Jan 16, 2014 · 1 comment

Comments

@arangamani
Copy link
Member

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
Copy link
Contributor

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

  • We have a rake job for the test that runs kitchen converge twice before running verify
  • We make a ServerSpec test that checks the log for the skip message

This relies on us moving to rake instead of strainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants