block_callbacks.feature 1.8 KB

123456789101112131415161718192021222324252627
  1. @block_callbacks
  2. Feature: Run block 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/block_callbacks" directory should exist
  9. And the "/var/www/block_callbacks/shared" directory should exist
  10. And the "/var/www/block_callbacks/releases/0b60046431d14b6615d53ae6d8bd0ac62ae3eb6f" directory should exist
  11. And the "/tmp/block_callbacks/before_deploy" file should exist
  12. And it should contain a line matching "release_path /var/www/block_callbacks/releases/0b60046431d14b6615d53ae6d8bd0ac62ae3eb6f"
  13. And it should contain a line matching "shared_path /var/www/block_callbacks/shared"
  14. And the "/tmp/block_callbacks/before_migrate" file should exist
  15. And it should contain a line matching "release_path /var/www/block_callbacks/releases/0b60046431d14b6615d53ae6d8bd0ac62ae3eb6f"
  16. And it should contain a line matching "shared_path /var/www/block_callbacks/shared"
  17. And the "/tmp/block_callbacks/before_symlink" file should exist
  18. And it should contain a line matching "release_path /var/www/block_callbacks/releases/0b60046431d14b6615d53ae6d8bd0ac62ae3eb6f"
  19. And it should contain a line matching "shared_path /var/www/block_callbacks/shared"
  20. And the "/tmp/block_callbacks/before_restart" file should exist
  21. And it should contain a line matching "release_path /var/www/block_callbacks/releases/0b60046431d14b6615d53ae6d8bd0ac62ae3eb6f"
  22. And it should contain a line matching "shared_path /var/www/block_callbacks/shared"
  23. And the "/tmp/block_callbacks/after_restart" file should exist
  24. And it should contain a line matching "release_path /var/www/block_callbacks/releases/0b60046431d14b6615d53ae6d8bd0ac62ae3eb6f"
  25. And it should contain a line matching "shared_path /var/www/block_callbacks/shared"