Merge branch '0.15.0'

This commit is contained in:
Nick O'Leary
2016-10-09 23:00:28 +01:00
75 changed files with 5930 additions and 952 deletions

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2014 IBM Corp.
* Copyright 2014, 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -72,18 +72,8 @@ module.exports = {
var storage = {
getFlows: function() {
var defer = when.defer();
defer.resolve(testFlows);
return defer.promise;
},
getCredentials: function() {
var defer = when.defer();
defer.resolve(testCredentials);
return defer.promise;
},
saveCredentials: function() {
// do nothing
},
return when.resolve({flows:testFlows,credentials:testCredentials});
}
};
var settings = {
@@ -102,8 +92,7 @@ module.exports = {
return messageId;
};
redNodes.init({settings:settings, storage:storage});
credentials.init(storage,express());
redNodes.init({settings:settings, storage:storage,log:log});
RED.nodes.registerType("helper", helperNode);
if (Array.isArray(testNode)) {
for (i = 0; i < testNode.length; i++) {
@@ -114,7 +103,7 @@ module.exports = {
}
flows.load().then(function() {
flows.startFlows();
should.deepEqual(testFlows, flows.getFlows());
should.deepEqual(testFlows, flows.getFlows().flows);
cb();
});
},