slnodejs 6.1.807 → 6.1.810
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/tsOutputs/api.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const skipBrowserAgentKey: string;
|
|
|
9
9
|
export declare const slWindowObject: string;
|
|
10
10
|
export { LoggerFactory };
|
|
11
11
|
export { CockpitNotifier } from './common/agent-events/cockpit-notifier';
|
|
12
|
-
export declare function createRemoteAgent(cliArgs: ITestRunnerArgs, useRelativeCoverage?: boolean, disableStateTracker?: boolean): Promise<RemoteAgent>;
|
|
12
|
+
export declare function createRemoteAgent(cliArgs: ITestRunnerArgs, useRelativeCoverage?: boolean, disableStateTracker?: boolean, checkBsidResolvedFromLabId?: boolean): Promise<RemoteAgent>;
|
|
13
13
|
export declare function cliArgsToAgentConfig(cliArgs: ITestRunnerArgs): Promise<import("./common/config-process/config").AgentConfig>;
|
|
14
14
|
export declare function bsidResolvedFromLabid(cliArgs: ITestRunnerArgs): boolean;
|
|
15
15
|
export declare function createAgentConfig(configJson: object): import("./common/config-process/config").AgentConfig;
|
package/tsOutputs/api.js
CHANGED
|
@@ -28,11 +28,19 @@ exports.slWindowObject = constants_1.Constants.SL_WINDOW_OBJECT;
|
|
|
28
28
|
var cockpit_notifier_1 = require("./common/agent-events/cockpit-notifier");
|
|
29
29
|
Object.defineProperty(exports, "CockpitNotifier", { enumerable: true, get: function () { return cockpit_notifier_1.CockpitNotifier; } });
|
|
30
30
|
const logger = logger_1.LoggerFactory.getCreateApplicationLogger();
|
|
31
|
-
function createRemoteAgent(cliArgs, useRelativeCoverage = false, disableStateTracker = false) {
|
|
31
|
+
function createRemoteAgent(cliArgs, useRelativeCoverage = false, disableStateTracker = false, checkBsidResolvedFromLabId = true) {
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const agentConfig = yield cliArgsToAgentConfig(cliArgs);
|
|
34
34
|
const agent = new factory_1.NodeAgentFactory(agentConfig).createRemoteAgent(useRelativeCoverage, disableStateTracker);
|
|
35
|
-
agent
|
|
35
|
+
/* This was added in order to prevent the remote-agent from opening new execution in case of bsid resolved from labid
|
|
36
|
+
The customers that required this feature in that point in time were opening executions manually using the 'start' command
|
|
37
|
+
So it was assumed that it will always be the case, but in recent releases of our plugins we have added the ability to start the execution from the remote-agent
|
|
38
|
+
itself and this is breaking that functionality when labId is provided (the remote-agent tries to load a non-existing )
|
|
39
|
+
https://sealights.atlassian.net/browse/SLDEV-14814
|
|
40
|
+
*/
|
|
41
|
+
if (checkBsidResolvedFromLabId) {
|
|
42
|
+
agent.isStartingExecution = !bsidResolvedFromLabid(cliArgs);
|
|
43
|
+
}
|
|
36
44
|
return agent;
|
|
37
45
|
});
|
|
38
46
|
}
|