Track plugins loaded by master and slaves

Send a mapping of the plugins the master server has loaded to slaves
vice versa.  Limit the plugins that may be loaded by instances to only
those that the master server has loaded.
This commit is contained in:
Hornwitser committed 2020-05-06 20:14:40 +02:00
1 parent 4060c75142
commit 1629eaf225
7 files changed
+53 -12

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ describe("lib/link/connectors", function() {
it("should call register on hello", function() {
let called = false;
testConnector.register = () => { called = true; };
testConnector._processHandshake({ seq: 1, type: 'hello', data: { version: "test" }});
testConnector._processHandshake({ seq: 1, type: 'hello', data: { version: "test", plugins: {} }});
assert(called, "register was not called");
});
it("should emit connected on ready", async function() {