lib.xp.examples.node.multiRepoConnect.js Maven / Gradle / Ivy
The newest version!
var nodeLib = require('/lib/xp/node');
var assert = require('/lib/xp/testing');
// BEGIN
// Connect to repo 'myRepo', branch 'master'.
var searchConnection = nodeLib.multiRepoConnect({
sources: [
{
repoId: 'my-repo',
branch: 'myBranch',
principals: ['role:system.admin']
},
{
repoId: 'my-other-repo',
branch: 'master',
principals: ['role:system.admin']
}
]
});
// END
assert.assertNotNull(searchConnection);