Sha256: 2188d10a48da9b30f760e707b2df7911e278d558a3e19cca23d5ecdbe948f2ac

Contents?: true

Size: 1.97 KB

Versions: 28

Compression:

Stored size: 1.97 KB

Contents

Feature: Invalidate the Cloudfront distribution

  In order to publish my posts
  As a blogger who delivers his blog via an S3-based Cloudfront distribution
  I want to run s3_website
  And see, that the items in the distribution were invalidated
  So that my latest updates will be immediately available to readers

  @s3-and-cloudfront
  Scenario: Upload to S3 and then invalidate the Cloudfront distribution
    When my S3 website is in "features/support/test_site_dirs/cdn-powered.blog.fi"
    And I call the push command
    Then the output should contain
      """
      Invalidating Cloudfront items...
        /
      succeeded
      """

  @s3-and-cloudfront-when-updating-a-file
  Scenario: Update a blog entry and then upload
    When my S3 website is in "features/support/test_site_dirs/cdn-powered.with-one-change.blog.fi"
    And I call the push command
    Then the output should equal
      """
      Deploying features/support/test_site_dirs/cdn-powered.with-one-change.blog.fi/_site/* to s3-website-test.net
      Calculating diff ... done
      Uploading 1 changed file(s)
      Upload index.html: Success!
      Done! Go visit: http://s3-website-test.net.s3-website-us-east-1.amazonaws.com/index.html
      Invalidating Cloudfront items...
        /index.html
        /
      succeeded

      """

  @s3-and-cloudfront-after-deleting-a-file
  Scenario: Delete a blog post and then push the website
    When my S3 website is in "features/support/test_site_dirs/cdn-powered.when-deleted-a-file.blog.fi"
    And I call the push command
    Then the output should equal
      """
      Deploying features/support/test_site_dirs/cdn-powered.when-deleted-a-file.blog.fi/_site/* to s3-website-test.net
      Calculating diff ... done
      No new or changed files to upload
      Delete css/styles.css: Success!
      Done! Go visit: http://s3-website-test.net.s3-website-us-east-1.amazonaws.com/index.html
      Invalidating Cloudfront items...
        /css/styles.css
        /
      succeeded

      """

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
s3_website_monadic-0.0.15 features/cloudfront.feature
s3_website_monadic-0.0.14 features/cloudfront.feature
s3_website_monadic-0.0.13 features/cloudfront.feature
s3_website_monadic-0.0.12 features/cloudfront.feature
s3_website_monadic-0.0.11 features/cloudfront.feature
s3_website_monadic-0.0.9 features/cloudfront.feature
s3_website_monadic-0.0.8 features/cloudfront.feature
s3_website_monadic-0.0.7 features/cloudfront.feature
s3_website_monadic-0.0.6 features/cloudfront.feature
s3_website_monadic-0.0.5 features/cloudfront.feature
s3_website_monadic-0.0.4 features/cloudfront.feature
s3_website_monadic-0.0.3 features/cloudfront.feature
s3_website_monadic-0.0.2 features/cloudfront.feature
s3_website_monadic-0.0.1 features/cloudfront.feature
s3_website-1.7.4 features/cloudfront.feature
s3_website-1.7.3 features/cloudfront.feature
s3_website-1.7.2 features/cloudfront.feature
s3_website-1.7.1 features/cloudfront.feature
s3_website-1.7.0 features/cloudfront.feature
s3_website-1.6.13 features/cloudfront.feature