Skip to content

Commit d728e92

Browse files
add privateCloud Support
1 parent b292e2d commit d728e92

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

commands/utils/set_args.js

+6
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ function sync_args_from_cmd(args) {
455455
lt_config["run_settings"]["timezone"] = "";
456456
}
457457

458+
if ("privateCloud" in args) {
459+
lt_config["run_settings"]["privateCloud"] = args["privateCloud"];
460+
}else if (!lt_config["run_settings"]["privateCloud"]) {
461+
lt_config["run_settings"]["privateCloud"] = false ;
462+
}
463+
458464
//Check for stop on failure location
459465
if ("stop_on_failure" in args) {
460466
lt_config["run_settings"]["stop_on_failure"] = true;

commands/utils/validate.js

+6
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,12 @@ module.exports = validate_config = function (lt_config, validation_configs) {
452452
}
453453
}
454454

455+
if ("privateCloud" in lt_config["privateCloud"]) {
456+
if (!(typeof lt_config["run_settings"]["privateCloud"] === "boolean")) {
457+
reject("Error!! boolean value is expected in command_log key");
458+
}
459+
}
460+
455461
if(lt_config)
456462
resolve(cypress_version);
457463
});

index.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,15 @@ const argv = require("yargs")
251251
describe: "enable accessibility testing for cypress.",
252252
type: "bool",
253253
})
254-
.option("timezone",{
255-
alias: "tz",
254+
.option("tz",{
255+
alias: "timezone",
256256
describe: "Set custom timezone in machine for cypress.",
257257
type: "string",
258+
})
259+
.option("pC",{
260+
alias: "privateCloud",
261+
describe: "Set custom private Cloud",
262+
type: "bool",
258263
});
259264
},
260265
function (argv) {

0 commit comments

Comments
 (0)