mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Merge pull request #768 from minibikini/v0.5
fixes `tests/actions/ProjectInstall.js`
This commit is contained in:
commit
402abb97ff
@ -11,8 +11,7 @@
|
||||
*
|
||||
* Options:
|
||||
* - name (String) a name for new project
|
||||
* - domain (String) a domain for new project to create the bucket name with
|
||||
* - notificationEmail (String) email to use for AWS alarms
|
||||
* - bucket (String) a bucket name for new project
|
||||
* - profile (String) an AWS profile to create the project in. Must be available in ~/.aws/credentials
|
||||
* - region (String) the first region for your new project
|
||||
* - stage (String) the first stage for your new project
|
||||
|
||||
@ -27,7 +27,7 @@ describe('All Tests', function() {
|
||||
require('./tests/actions/EndpointDeploy');
|
||||
require('./tests/actions/EventDeploy');
|
||||
require('./tests/actions/ProjectInit');
|
||||
// require('./tests/actions/ProjectInstall'); // BROKEN.
|
||||
require('./tests/actions/ProjectInstall');
|
||||
require('./tests/actions/ResourcesDiff');
|
||||
require('./tests/actions/PluginCreate');
|
||||
require('./tests/actions/FunctionRollback');
|
||||
|
||||
@ -31,8 +31,7 @@ let serverless = new Serverless( undefined, {
|
||||
|
||||
let validateEvent = function(evt) {
|
||||
assert.equal(true, typeof evt.options.name !== 'undefined');
|
||||
assert.equal(true, typeof evt.options.domain !== 'undefined');
|
||||
assert.equal(true, typeof evt.options.notificationEmail !== 'undefined');
|
||||
assert.equal(true, typeof evt.options.bucket !== 'undefined');
|
||||
assert.equal(true, typeof evt.options.region !== 'undefined');
|
||||
assert.equal(true, typeof evt.options.noExeCf !== 'undefined');
|
||||
assert.equal(true, typeof evt.options.stage !== 'undefined');
|
||||
@ -119,11 +118,11 @@ describe('Test action: Project Install', function() {
|
||||
this.timeout(0);
|
||||
|
||||
let name = ('testprj-' + uuid.v4()).replace(/-/g, '');
|
||||
let domain = name + '.com';
|
||||
let bucket = name + '.com';
|
||||
let evt = {
|
||||
options: {
|
||||
name: name,
|
||||
domain: domain,
|
||||
bucket: bucket,
|
||||
stage: config.stage,
|
||||
region: config.region,
|
||||
profile: config.profile_development,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user