gpii-universal
Version:
Cross platform, core components of the GPII personalization infrastructure.
46 lines (36 loc) • 1.24 kB
JavaScript
/*!
GPII Cloud-based Flow Manager Test Infrastructure
Copyright 2012 OCAD University
Copyright 2012 Antranig Basman
Copyright 2013 Raising the Floor
Copyright 2014 Lucendo Development Ltd.
Copyright 2018 OCAD University
Licensed under the New BSD license. You may not use this file except in
compliance with this License.
The research leading to these results has received funding from the European Union's
Seventh Framework Programme (FP7/2007-2013) under grant agreement no. 289016.
You may obtain a copy of the License at
https://github.com/GPII/universal/blob/master/LICENSE.txt
*/
;
var fluid = require("infusion"),
gpii = fluid.registerNamespace("gpii");
fluid.registerNamespace("gpii.test.cloudBased");
gpii.test.cloudBased.computeDevice = function (solutionIds, OSid) {
var device = {
OS: {
id: OSid || "web"
},
solutions: []
};
fluid.each(solutionIds, function (solutionId) {
device.solutions.push({ id: solutionId });
});
return JSON.stringify(device);
};
gpii.test.cloudBased.gpiiConfig = function () {
return {
configName: "gpii.config.cloudBased.development",
configPath: "%gpii-universal/gpii/configs/shared"
};
};