2017 © Pedro Peláez
 

library s3-filesystem

Amazon S3 extension of the Codeception Filesystem module.

image

polevaultweb/s3-filesystem

Amazon S3 extension of the Codeception Filesystem module.

  • Thursday, December 8, 2016
  • by polevaultweb
  • Repository
  • 1 Watchers
  • 3 Stars
  • 4,386 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 33 % Grown

The README.md

s3-filesystem

An Amazon S3 Filesystem module for Codeception., (*1)

Installation

To install simply require the package in the composer.json file like, (*2)

  "require-dev":
    {
      "polevaultweb/s3-filesystem": "master@dev"
    }

and then use composer update to fetch the package.
After that follow the configuration instructions below., (*3)

S3Filesystem configuration

S3Filesystem extends Filesystem module hence any parameter required and available to that module is required and available in S3Filesystem as well.
In the suite .yml configuration file add the module among the loaded ones:, (*4)

  modules:
      enabled:
          - S3Filesystem
      config:
          S3Filesystem:
              accessKey: xxxxxxxxxxxx
              accessSecret: xxxxxxxxxxxxxxxxxxxxxxxx

Supports

  • doesFileExist
  • doesBucketExist
  • deleteBucket
  • getBucketLocation

And assertions, (*5)

  • seeFile
  • seeBucket
  • seeBucketLocation

Usage

$I = new AcceptanceTester( $scenario );

$I->setBucket( 'my-bucket' );
$I->seeFile( 'path/to/file.jpg' );
$I->seeBucketLocation( 'eu-west-1' );

Or for single uses you can chain like so:, (*6)

$I = new AcceptanceTester( $scenario );

$I->setBucket( 'my-bucket' )->seeFile( 'path/to/file.jpg' );

The Versions

08/12 2016

dev-master

9999999-dev http://github.com/polevaultweb/s3-filesystem

Amazon S3 extension of the Codeception Filesystem module.

  Sources   Download

MIT

The Requires

 

s3 aws codeception