file_callbacks.feature 1.5 KB

123456789101112131415161718192021222324
  1. @file_callbacks
  2. Feature: Run file callbacks
  3. In order to write my application recipe
  4. As a recipe developer
  5. I want my callbacks to be called
  6. Scenario: Deploy a basic app
  7. Given a new server
  8. Then the "/var/www/file_callbacks" directory should exist
  9. And the "/var/www/file_callbacks/shared" directory should exist
  10. And the "/var/www/file_callbacks/releases/7cfe06bf4d245264e9d3ec88b54da9d275fe9174" directory should exist
  11. And the "/tmp/file_callbacks/before_migrate" file should exist
  12. And it should contain a line matching "release_path /var/www/file_callbacks/releases/7cfe06bf4d245264e9d3ec88b54da9d275fe9174"
  13. And it should contain a line matching "shared_path /var/www/file_callbacks/shared"
  14. And the "/tmp/file_callbacks/before_symlink" file should exist
  15. And it should contain a line matching "release_path /var/www/file_callbacks/releases/7cfe06bf4d245264e9d3ec88b54da9d275fe9174"
  16. And it should contain a line matching "shared_path /var/www/file_callbacks/shared"
  17. And the "/tmp/file_callbacks/before_restart" file should exist
  18. And it should contain a line matching "release_path /var/www/file_callbacks/releases/7cfe06bf4d245264e9d3ec88b54da9d275fe9174"
  19. And it should contain a line matching "shared_path /var/www/file_callbacks/shared"
  20. And the "/tmp/file_callbacks/after_restart" file should exist
  21. And it should contain a line matching "release_path /var/www/file_callbacks/releases/7cfe06bf4d245264e9d3ec88b54da9d275fe9174"
  22. And it should contain a line matching "shared_path /var/www/file_callbacks/shared"