Fork me on GitHub

Namespace test.live


Defined in: live.test.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 

Live cloud tests.

Field Summary
Field Attributes Field Name and Description
<static>  
test.live.blob
<static>  
test.live.connection
<static>  
test.live.container
<static>  
test.live.utils
Namespace Detail
test.live

Live cloud tests.

Warning - Mutates Datastore!

This actually adds/deletes containers / files on a live cloud account. Care has been taken to not collide with any real data, but you are strongly advised to not run the tests against a production cloud storage account.

Configuration

Tests require a configuration in the format of:

Configuration = [
  {
    provider: 'aws',
    acount: '<ACCOUNT NAME>',
    secretKey: '<SECRET KEY>',
    [ssl: false]
  },
  {  // ... other providers ...
  }
];

Taken from a file. Tests are run against each configuration provided. Currently supported providers are: - 'aws' AWS Simple Storage Service (S3) - 'google': Google Storage For Developers

Setup/Teardown and Wrappers (Dev)

The nodeunit tests are wrapped to inject cloud-specific information and to run suites against each different cloud configuration. The underlying test prototypes look pretty similar to ordinary nodeunit tests, except the function signature is:

function (test, opts)

instead of:

function (test)

where opts are injected cloud information.

Several tests use a setup/teardown wrapper that creates a (hopefully) unique and non-existent test container, optionally adds blobs, and wipes out everything on teardown. See test.live.utils.createTestSetup() for more information.

Field Detail
<static> test.live.blob

Defined in: blob.js.

<static> test.live.connection

Defined in: connection.js.

<static> test.live.container

Defined in: container.js.

<static> test.live.utils

Defined in: utils.js.