Sha256: 53b238c14fe10f9070b7035977f31c3bb54b914edb5b2d931037222f53c3b4ca

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 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"
    Then s3_website will push my blog to S3 and invalidate the Cloudfront distribution
    And 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"
    Then s3_website will push my blog to S3 and invalidate the Cloudfront distribution
    And the output should equal
      """
      Deploying _site/* to s3-website-test.net
      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

      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
s3_website-0.2.1 features/cloudfront.feature
s3_website-0.2.0 features/cloudfront.feature
s3_website-0.1.0 features/cloudfront.feature