Artifact
|
- |
#id
|
- |
returns the correct value
|
- |
#filename
|
- |
returns the correct value
|
- |
#filepath
|
- |
returns the correct value
|
- |
#dir
|
- |
returns the correct value
|
- |
#bucketName
|
- |
returns the correct value
|
- |
#objectKey
|
- |
returns the correct value
|
- |
#secretAccessKey
|
- |
returns the correct value
|
- |
#sessionToken
|
- |
returns the correct value
|
- |
#accessKeyId
|
- |
returns the correct value
|
- |
#ready
|
- |
when the artifact readys successfully
|
- |
fetches, loads and unzips correctly
|
- |
when the artifact fails to ready
|
- |
rejects with an error
|
- |
#match
|
- |
when files are matched
|
- |
should return the correct files (without path)
|
- |
should return the correct files (with path)
|
- |
#get
|
- |
when the file exists
|
- |
should return the file
|
- |
when the file does not exist
|
- |
throws an error
|
- |
#attribute
|
- |
when the file and key exists
|
- |
should return the file
|
- |
when the files does not exist
|
- |
should throw an error
|
- |
when the key is not present
|
- |
should throw an error
|
- |
#unzip
|
- |
when the artifact can be unzipped
|
- |
should unzip the file
|
- |
when the artifact cannot be unzipped
|
- |
reject with an error
|
- |
#write
|
- |
writes a file to the correct location
|
- |
#fetch
|
- |
when the artifact can be retrieved
|
- |
should retrieve the correct data
|
- |
when the artifact cannot be retrieved
|
- |
should reject with an error
|
- |
#client
|
- |
returns an S3 client
|
- |
Artifact#toArtifact
|
- |
correctly builds an artifact instance
|
- |
Artifact#toArtifactMapEntry
|
- |
correctly builds an artifact instance
|
- |
File
|
- |
#new
|
- |
initialises correctly
|
- |
#contentType
|
- |
when .html
|
- |
returns the correct contentType
|
- |
when .txt
|
- |
returns the correct contentType
|
- |
when (no extension)
|
- |
returns the expected contentType
|
- |
#upload
|
- |
when the upload succeeds
|
- |
returns the correct fully resolved path
|
- |
when there is no prefix
|
- |
returns the correct fully resolved path
|
- |
when the upload fails
|
- |
throws a well-formed error
|
- |
Attribute
|
- |
#new
|
- |
should instantiate correctly
|
- |
#type
|
- |
when the mapping is a static value
|
- |
should return the correct value
|
- |
when the mapping is an object
|
- |
should return the correct value
|
- |
#value
|
- |
when the mapping is a static value
|
- |
should return the correct value
|
- |
when the mapping is an object
|
- |
when the mapping is an unrecognised key
|
- |
should return the correct value
|
- |
when the mapping contains an invalid key
|
- |
should return the correct value
|
- |
when the mapping contains an invalid artifact
|
- |
should return the correct value
|
- |
when the mapping is valid
|
- |
should return the correct value
|
- |
Destination
|
- |
#new
|
- |
instantiates correctly
|
- |
.roleArn resolution
|
- |
resolves to the correct value
|
- |
.bucket resolution
|
- |
resolves to the correct value
|
- |
#credentials
|
- |
when the request is successful
|
- |
returns a correctly instantiated AWS Credentials object
|
- |
when the request is invalid
|
- |
returns a correctly instantiated AWS Credentials object
|
- |
#files
|
- |
when the artifact exists
|
- |
resolves with an array of instantiated files
|
- |
when there are no files
|
- |
resolves with an empty array
|
- |
when the artifact does not exist
|
- |
resolves with an empty array
|
- |
#upload
|
- |
when all files can be uploaded successfully
|
- |
resolves with an array of remote locations
|
- |
Uploader
|
- |
#new
|
- |
when the job is valid
|
- |
instantiates correctly
|
- |
when there are no input artifacts
|
- |
throws an error
|
- |
#userParameters
|
- |
when data is valid
|
- |
returns the correct data object
|
- |
when there is no data
|
- |
throws an error
|
- |
when data is not valid
|
- |
throws an error
|
- |
#destinations
|
- |
when the job is valid
|
- |
returns an array of destination objects
|
- |
when the job is invalid
|
- |
throws an error
|
- |
#perform
|
- |
when the destination can be uploaded
|
- |
returns an array of remote locations
|
- |
Schema
|
- |
compiles successfully
|
- |
#validate
|
- |
when a schema is valid
|
- |
resolves with the correct object
|
- |
when a schema is invalid
|
- |
rejects on empty schema
|
- |