browserstack-node-sdk 1.32.5 → 1.32.7
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/templates/azureresources/akscluster.json +57 -3
- package/ats/src/templates/azureresources/storageaccount.json +8 -8
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +58 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a14_0x57f6(_0x1eff4e,_0x141148){const _0x5ad5a9=a14_0x5ad5();return a14_0x57f6=function(_0x57f673,_0x3404d4){_0x57f673=_0x57f673-0x1a3;let _0x5a1d8d=_0x5ad5a9[_0x57f673];return _0x5a1d8d;},a14_0x57f6(_0x1eff4e,_0x141148);}const a14_0x10e507=a14_0x57f6;(function(_0x3e4263,_0x1aee79){const _0x2cebfd=a14_0x57f6,_0x21cef9=_0x3e4263();while(!![]){try{const _0x33532f=-parseInt(_0x2cebfd(0x1f1))/0x1+parseInt(_0x2cebfd(0x1d5))/0x2+parseInt(_0x2cebfd(0x1e3))/0x3*(-parseInt(_0x2cebfd(0x1a4))/0x4)+parseInt(_0x2cebfd(0x1ae))/0x5*(parseInt(_0x2cebfd(0x1bb))/0x6)+-parseInt(_0x2cebfd(0x1cf))/0x7+-parseInt(_0x2cebfd(0x1ed))/0x8+parseInt(_0x2cebfd(0x1db))/0x9;if(_0x33532f===_0x1aee79)break;else _0x21cef9['push'](_0x21cef9['shift']());}catch(_0x17e589){_0x21cef9['push'](_0x21cef9['shift']());}}}(a14_0x5ad5,0xa9563));const fs=require('fs'),got=require(a14_0x10e507(0x1b6)),{table}=require(a14_0x10e507(0x1ee)),{v4:uuidv4}=require(a14_0x10e507(0x1c1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x10e507(0x1ef)),{getCredentialsPath,getAuthHeader}=require(a14_0x10e507(0x1d6)),{sendInstrumentationEvent}=require(a14_0x10e507(0x1e8));function a14_0x5ad5(){const _0x2d7ff0=['JYGfA','hDCfT','183969mMljxY','concurrency','gGuLd','cjEBH','PkjMU','handler','username','sVIea','1845522jPYfMu','https://','eCDWJ','bYBRi','/packages/cli/get-all-grid-profiles','../../utils/instrumentationUtils','lHRrM','name','server-error','Hubmf','414608NvtyjM','table','../../config/constants','GET','204882qwUqPb','log','SbWHX','desc','gridProfile','ERROR','zdTgr','4bMFvWb','grid-profile-name','nuwIx','LHBIQ','grid-profiles','list-grid-profiles-called','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','hKyCz','cloudProvider','push','25CyAoQe','cloud-provider','password','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','statusCode','sDFQU','region','list','got','XFMhG','Browserstack','help','parse','574962NvPlCf','allGridProfiles','stack','body','ZXHnJ','options','uuid','init-not-called','forEach','type','UEqGR','rrKcf','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RnjyG','bstackAccesskey','/packages/cli/get-grid-profiles','Failed\x20to\x20list\x20resources!\x20Error:\x20','KETMU','requestId','error','924462IpAiIx','all-grid-profiles','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','unauthorised','lDhdM','stringify','2395950hrOfJc','../../utils/utilityMethods','exit','usage'];a14_0x5ad5=function(){return _0x2d7ff0;};return a14_0x5ad5();}exports['command']=a14_0x10e507(0x1a8),exports[a14_0x10e507(0x1f4)]=a14_0x10e507(0x1aa),exports['builder']=function(_0x1e6cfe){const _0x7e8bde=a14_0x10e507,_0x408003={};_0x408003[_0x7e8bde(0x1ec)]=_0x7e8bde(0x1d1),_0x408003[_0x7e8bde(0x1e9)]='boolean',_0x408003[_0x7e8bde(0x1c8)]=_0x7e8bde(0x1b9);const _0x1cdc20=_0x408003,_0x51c701={};_0x51c701['description']=_0x1cdc20[_0x7e8bde(0x1ec)],_0x51c701[_0x7e8bde(0x1c4)]=_0x1cdc20['lHRrM'];const _0x6c9826={};return _0x6c9826[_0x7e8bde(0x1d0)]=_0x51c701,_0x1e6cfe[_0x7e8bde(0x1d8)](HELP_HEADER_MESSAGE[_0x7e8bde(0x1b5)][_0x7e8bde(0x1f5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x7e8bde(0x1c0)](_0x6c9826)[_0x7e8bde(0x1b9)](_0x1cdc20[_0x7e8bde(0x1c8)])['argv'];},exports[a14_0x10e507(0x1e0)]=async function(_0x17f72a){const _0x4a2b6c=a14_0x10e507,_0x123c13={'KETMU':function(_0x3905dd){return _0x3905dd();},'hKyCz':function(_0x4571e3){return _0x4571e3();},'nVDJk':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LHBIQ':function(_0x32d3e3,_0x23de0f,_0x2ea020,_0x34bacf,_0x9545ca,_0x1fd0f8,_0x21ad26){return _0x32d3e3(_0x23de0f,_0x2ea020,_0x34bacf,_0x9545ca,_0x1fd0f8,_0x21ad26);},'bYBRi':_0x4a2b6c(0x1a9),'PkjMU':_0x4a2b6c(0x1c2),'cjEBH':function(_0x6478ab){return _0x6478ab();},'ppyWR':_0x4a2b6c(0x1f0),'UEqGR':function(_0x3927c1,_0x2cf678,_0x55f5ad){return _0x3927c1(_0x2cf678,_0x55f5ad);},'lDhdM':function(_0x2ed1cc,_0x5272dd,_0xb2870f,_0x328fd1,_0x171f1f,_0x150d79,_0x154740){return _0x2ed1cc(_0x5272dd,_0xb2870f,_0x328fd1,_0x171f1f,_0x150d79,_0x154740);},'sDFQU':function(_0x3e22ce,_0x38d40e){return _0x3e22ce!==_0x38d40e;},'XFMhG':function(_0x4f6b1a,_0x4ef525){return _0x4f6b1a===_0x4ef525;},'eCDWJ':_0x4a2b6c(0x1b1),'ZXHnJ':_0x4a2b6c(0x1a5),'zdTgr':_0x4a2b6c(0x1af),'gGuLd':_0x4a2b6c(0x1b4),'rrKcf':_0x4a2b6c(0x1dc),'hDCfT':function(_0x19286c,_0xedf161){return _0x19286c(_0xedf161);},'SbWHX':function(_0xc5c397,_0x15c8ef,_0x5a3855,_0x29775c,_0x3695c6,_0x527b34,_0x460a30){return _0xc5c397(_0x15c8ef,_0x5a3855,_0x29775c,_0x3695c6,_0x527b34,_0x460a30);},'sVIea':_0x4a2b6c(0x1d2),'JYGfA':_0x4a2b6c(0x1eb),'nuwIx':'unknown-error'};try{global_registry[_0x4a2b6c(0x1cd)]=_0x123c13[_0x4a2b6c(0x1cc)](uuidv4);let _0x29dd3b=_0x4a2b6c(0x1e4)+AG_API_URL+_0x4a2b6c(0x1ca);_0x17f72a[_0x4a2b6c(0x1bc)]&&(_0x29dd3b=_0x4a2b6c(0x1e4)+AG_API_URL+_0x4a2b6c(0x1e7));!fs['existsSync'](_0x123c13[_0x4a2b6c(0x1ab)](getCredentialsPath))&&(console['error'](_0x123c13['nVDJk']),await _0x123c13[_0x4a2b6c(0x1a7)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1df)],null,_0x17f72a),process[_0x4a2b6c(0x1d7)](0x1));const _0x58e670=JSON['parse'](fs['readFileSync'](_0x123c13[_0x4a2b6c(0x1de)](getCredentialsPath))),_0x2ea938={'method':_0x123c13['ppyWR'],'headers':_0x123c13[_0x4a2b6c(0x1c5)](getAuthHeader,_0x58e670[_0x4a2b6c(0x1b8)][_0x4a2b6c(0x1e1)],_0x58e670[_0x4a2b6c(0x1b8)][_0x4a2b6c(0x1b0)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x58e670['Browserstack'][_0x4a2b6c(0x1e1)],global_registry[_0x4a2b6c(0x1c9)]=_0x58e670[_0x4a2b6c(0x1b8)]['password'],_0x123c13[_0x4a2b6c(0x1d3)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes['INFO'],null,null,_0x17f72a);const _0x40a566=await _0x123c13[_0x4a2b6c(0x1c5)](got,_0x29dd3b,_0x2ea938);if(_0x123c13['sDFQU'](_0x40a566,null)&&_0x123c13[_0x4a2b6c(0x1b3)](_0x40a566,undefined)&&_0x123c13[_0x4a2b6c(0x1b7)](_0x40a566[_0x4a2b6c(0x1b2)],0xc8)){const _0x6b7c09=JSON[_0x4a2b6c(0x1ba)](_0x40a566[_0x4a2b6c(0x1be)]);console[_0x4a2b6c(0x1f2)](_0x123c13[_0x4a2b6c(0x1e5)]);const _0x15c2e2=[];_0x15c2e2[_0x4a2b6c(0x1ad)]([_0x123c13[_0x4a2b6c(0x1bf)],_0x123c13[_0x4a2b6c(0x1a3)],_0x123c13[_0x4a2b6c(0x1dd)],_0x123c13[_0x4a2b6c(0x1c6)]]),_0x6b7c09[_0x4a2b6c(0x1c3)](_0x4bf78f=>{const _0x1f2f45=_0x4a2b6c;_0x15c2e2[_0x1f2f45(0x1ad)]([_0x4bf78f[_0x1f2f45(0x1ea)],_0x4bf78f[_0x1f2f45(0x1ac)],_0x4bf78f['region'],_0x4bf78f[_0x1f2f45(0x1dc)]]);}),console['log'](_0x123c13[_0x4a2b6c(0x1da)](table,_0x15c2e2)),process[_0x4a2b6c(0x1d7)](0x0);}_0x123c13[_0x4a2b6c(0x1b7)](_0x40a566[_0x4a2b6c(0x1b2)],0x191)&&(console[_0x4a2b6c(0x1ce)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x123c13[_0x4a2b6c(0x1f3)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1e2)],null,_0x17f72a),process[_0x4a2b6c(0x1d7)](0x1)),console[_0x4a2b6c(0x1ce)](_0x4a2b6c(0x1c7)+JSON[_0x4a2b6c(0x1d4)](_0x40a566)),await _0x123c13[_0x4a2b6c(0x1a7)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1d9)],_0x40a566,_0x17f72a),process['exit'](0x1);}catch(_0x1b587a){console[_0x4a2b6c(0x1ce)](_0x4a2b6c(0x1cb)+_0x1b587a[_0x4a2b6c(0x1bd)]),await _0x123c13[_0x4a2b6c(0x1a7)](sendInstrumentationEvent,_0x17f72a,_0x123c13['bYBRi'],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1a6)],_0x1b587a,_0x17f72a),process[_0x4a2b6c(0x1d7)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15_0x21e3(_0xc80c7e,_0x28d817){const _0x2672bd=a15_0x2672();return a15_0x21e3=function(_0x21e3e8,_0x16d7c8){_0x21e3e8=_0x21e3e8-0xf6;let _0x58cb16=_0x2672bd[_0x21e3e8];return _0x58cb16;},a15_0x21e3(_0xc80c7e,_0x28d817);}const a15_0x2bf21f=a15_0x21e3;(function(_0xef67c3,_0x1dbb3d){const _0x34b0ab=a15_0x21e3,_0x5ead0f=_0xef67c3();while(!![]){try{const _0x18beb6=-parseInt(_0x34b0ab(0x12c))/0x1+parseInt(_0x34b0ab(0x132))/0x2*(parseInt(_0x34b0ab(0x109))/0x3)+parseInt(_0x34b0ab(0x120))/0x4*(parseInt(_0x34b0ab(0xfd))/0x5)+-parseInt(_0x34b0ab(0x107))/0x6+parseInt(_0x34b0ab(0x128))/0x7+-parseInt(_0x34b0ab(0x136))/0x8+parseInt(_0x34b0ab(0x133))/0x9*(parseInt(_0x34b0ab(0x146))/0xa);if(_0x18beb6===_0x1dbb3d)break;else _0x5ead0f['push'](_0x5ead0f['shift']());}catch(_0x359829){_0x5ead0f['push'](_0x5ead0f['shift']());}}}(a15_0x2672,0x4e27b));const fs=require('fs'),got=require('got'),{table}=require(a15_0x2bf21f(0x13e)),{v4:uuidv4}=require(a15_0x2bf21f(0x144)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2bf21f(0x112)),{sendInstrumentationEvent}=require(a15_0x2bf21f(0x122));exports[a15_0x2bf21f(0x11c)]=a15_0x2bf21f(0x140),exports['desc']=a15_0x2bf21f(0x124),exports['builder']=function(_0x5cd02b){const _0x327b04=a15_0x2bf21f,_0x1027a3={};_0x1027a3[_0x327b04(0x119)]=_0x327b04(0x115),_0x1027a3[_0x327b04(0x118)]=_0x327b04(0x110),_0x1027a3[_0x327b04(0xf9)]='help';const _0x2711ac=_0x1027a3,_0x16f371={};_0x16f371[_0x327b04(0x11e)]=_0x2711ac[_0x327b04(0x119)],_0x16f371['type']=_0x2711ac['PAqYb'];const _0x410a7a={};return _0x410a7a[_0x327b04(0xfa)]=_0x16f371,_0x5cd02b['usage'](HELP_HEADER_MESSAGE[_0x327b04(0x12d)][_0x327b04(0x12f)])[_0x327b04(0x148)](HELP_FOOTER_MESSAGE)[_0x327b04(0x127)](_0x410a7a)[_0x327b04(0x10f)](_0x2711ac[_0x327b04(0xf9)])[_0x327b04(0x11b)];},exports[a15_0x2bf21f(0x103)]=async function(_0x3dc6dd){const _0x5888dc=a15_0x2bf21f,_0x30b360={'OXbCo':function(_0x5f1888){return _0x5f1888();},'aqixK':function(_0x2c4b1d){return _0x2c4b1d();},'AbRoX':_0x5888dc(0x13b),'aNipF':function(_0x5adef5,_0xeb71f9,_0x1dd24e,_0x29a52b,_0x2402ac,_0x43d8d1,_0x3d8e6d){return _0x5adef5(_0xeb71f9,_0x1dd24e,_0x29a52b,_0x2402ac,_0x43d8d1,_0x3d8e6d);},'aDiBG':_0x5888dc(0x11d),'QfprU':_0x5888dc(0x11a),'zdijY':function(_0x58ccd5){return _0x58ccd5();},'GbSUG':'GET','uyLHE':function(_0x561efb,_0xe5c985,_0x10ed97){return _0x561efb(_0xe5c985,_0x10ed97);},'jheec':function(_0x191ded,_0x18a7ac,_0xda9a94,_0x21f0ea,_0x2c3401,_0xcd56e2,_0x348117){return _0x191ded(_0x18a7ac,_0xda9a94,_0x21f0ea,_0x2c3401,_0xcd56e2,_0x348117);},'DhSBD':function(_0x35e581,_0x2c75b7,_0x2d0140){return _0x35e581(_0x2c75b7,_0x2d0140);},'qKgwc':function(_0x50c382,_0x146747){return _0x50c382!==_0x146747;},'PqnQy':function(_0x43ca52,_0x54684e){return _0x43ca52!==_0x54684e;},'VbGJi':function(_0x8cf3c6,_0x3fa701){return _0x8cf3c6===_0x3fa701;},'mmdNT':_0x5888dc(0x134),'axKmy':_0x5888dc(0x13c),'cpFQN':_0x5888dc(0x121),'PZECH':_0x5888dc(0x123),'UKBNu':'running','HQoMv':_0x5888dc(0x108),'inSdF':'cluster-name','hCQiC':function(_0x1bd088,_0x3d13c8){return _0x1bd088(_0x3d13c8);},'cRLFp':_0x5888dc(0x13f),'UzroQ':_0x5888dc(0x126),'bDakJ':function(_0x4c45d9,_0x135ee7,_0x16a0bf,_0x3a61b5,_0x484797,_0x723acc,_0x117b19){return _0x4c45d9(_0x135ee7,_0x16a0bf,_0x3a61b5,_0x484797,_0x723acc,_0x117b19);},'nkdSI':'unknown-error'};try{global_registry[_0x5888dc(0x13d)]=_0x30b360[_0x5888dc(0xfc)](uuidv4);!fs[_0x5888dc(0x13a)](_0x30b360[_0x5888dc(0x10e)](getCredentialsPath))&&(console[_0x5888dc(0x11f)](_0x30b360[_0x5888dc(0x12b)]),await _0x30b360[_0x5888dc(0x105)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes[_0x5888dc(0x10a)],_0x30b360['QfprU'],null,_0x3dc6dd),process[_0x5888dc(0x138)](0x1));const _0x16c8bd=JSON[_0x5888dc(0x10d)](fs[_0x5888dc(0x145)](_0x30b360['zdijY'](getCredentialsPath)));let _0x3a5e6b='https://'+AG_API_URL+_0x5888dc(0xfb);_0x3dc6dd[_0x5888dc(0x142)]&&(_0x3a5e6b=_0x5888dc(0xff)+AG_API_URL+_0x5888dc(0x100));const _0x1e606e={'method':_0x30b360['GbSUG'],'headers':_0x30b360[_0x5888dc(0x149)](getAuthHeader,_0x16c8bd[_0x5888dc(0x10b)][_0x5888dc(0x135)],_0x16c8bd[_0x5888dc(0x10b)][_0x5888dc(0x101)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x16c8bd[_0x5888dc(0x10b)][_0x5888dc(0x135)],global_registry[_0x5888dc(0x139)]=_0x16c8bd['Browserstack']['password'],_0x30b360[_0x5888dc(0x12e)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes[_0x5888dc(0x147)],null,null,_0x3dc6dd);const _0x10ac3a=await _0x30b360[_0x5888dc(0x141)](got,_0x3a5e6b,_0x1e606e);if(_0x30b360[_0x5888dc(0x12a)](_0x10ac3a,null)&&_0x30b360[_0x5888dc(0x10c)](_0x10ac3a,undefined)&&_0x30b360[_0x5888dc(0x129)](_0x10ac3a[_0x5888dc(0x143)],0xc8)){const _0x49429a=JSON[_0x5888dc(0x10d)](_0x10ac3a[_0x5888dc(0xf6)]);console['log'](_0x30b360[_0x5888dc(0x114)]);const _0x5148ec=[];_0x5148ec['push']([_0x30b360['axKmy'],_0x30b360[_0x5888dc(0x131)],_0x30b360[_0x5888dc(0x137)],_0x30b360[_0x5888dc(0xf7)],_0x30b360[_0x5888dc(0x14b)],_0x30b360['inSdF']]),_0x49429a[_0x5888dc(0x111)](_0x3e86d6=>{const _0xcd3fa1=_0x5888dc;_0x5148ec[_0xcd3fa1(0x104)]([_0x3e86d6['id'],_0x3e86d6[_0xcd3fa1(0xf8)],_0x3e86d6[_0xcd3fa1(0x123)],_0x3e86d6['running'],_0x3e86d6[_0xcd3fa1(0x108)],_0x3e86d6[_0xcd3fa1(0x106)]]);}),console[_0x5888dc(0x116)](_0x30b360[_0x5888dc(0x130)](table,_0x5148ec)),process[_0x5888dc(0x138)](0x0);}_0x30b360[_0x5888dc(0x129)](_0x10ac3a[_0x5888dc(0x143)],0x191)&&(console['error'](_0x5888dc(0x125)),await _0x30b360['aNipF'](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes[_0x5888dc(0x10a)],_0x30b360['cRLFp'],null,_0x3dc6dd),process[_0x5888dc(0x138)](0x1)),console[_0x5888dc(0x11f)](_0x5888dc(0x14a)+JSON['stringify'](_0x10ac3a)),await _0x30b360[_0x5888dc(0x105)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360['aDiBG'],messageTypes['ERROR'],_0x30b360[_0x5888dc(0x117)],_0x10ac3a,_0x3dc6dd),process[_0x5888dc(0x138)](0x1);}catch(_0x14ee1d){console[_0x5888dc(0x11f)](_0x5888dc(0xfe)+_0x14ee1d[_0x5888dc(0x113)]),await _0x30b360[_0x5888dc(0x14c)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes['ERROR'],_0x30b360['nkdSI'],_0x14ee1d,_0x3dc6dd),process[_0x5888dc(0x138)](0x1);}};function a15_0x2672(){const _0x799f65=['boolean','forEach','../../utils/utilityMethods','stack','mmdNT','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','log','UzroQ','PAqYb','fSuxZ','init-not-called','argv','command','list-grids-called','description','error','367292dImkcj','grid-name','../../utils/instrumentationUtils','status','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','server-error','options','3886813EziAvK','VbGJi','qKgwc','AbRoX','308295gRfkyJ','list','jheec','grid','hCQiC','cpFQN','2sodryp','257265yeTxBy','\x0aFound\x20the\x20following\x20grids:\x0a','username','2327520uhzIsL','PZECH','exit','bstackAccesskey','existsSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','requestId','table','unauthorised','grids','DhSBD','allGrids','statusCode','uuid','readFileSync','80CBRtRR','INFO','epilogue','uyLHE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HQoMv','bDakJ','body','UKBNu','name','rqOBl','all-grids','/packages/cli/get-grids','OXbCo','15yckquy','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','/packages/cli/get-all-grids','password','aDiBG','handler','push','aNipF','clusterName','2161122ovNdYO','queued','660411LtRzUS','ERROR','Browserstack','PqnQy','parse','aqixK','help'];a15_0x2672=function(){return _0x799f65;};return a15_0x2672();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x20d490=a16_0x74ce;(function(_0xed2c5e,_0x48e63f){const _0x34cdaa=a16_0x74ce,_0x4177a8=_0xed2c5e();while(!![]){try{const _0x2b7b3c=-parseInt(_0x34cdaa(0x1ac))/0x1*(parseInt(_0x34cdaa(0x1b4))/0x2)+parseInt(_0x34cdaa(0x1a8))/0x3*(parseInt(_0x34cdaa(0x1a5))/0x4)+parseInt(_0x34cdaa(0x1b5))/0x5+parseInt(_0x34cdaa(0x1af))/0x6+parseInt(_0x34cdaa(0x1a9))/0x7+-parseInt(_0x34cdaa(0x1ad))/0x8*(-parseInt(_0x34cdaa(0x1b0))/0x9)+parseInt(_0x34cdaa(0x1a7))/0xa*(-parseInt(_0x34cdaa(0x1a4))/0xb);if(_0x2b7b3c===_0x48e63f)break;else _0x4177a8['push'](_0x4177a8['shift']());}catch(_0x4f5afb){_0x4177a8['push'](_0x4177a8['shift']());}}}(a16_0xa9e8,0x48249));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x74ce(_0x3fc06b,_0x376684){const _0xa9e8c3=a16_0xa9e8();return a16_0x74ce=function(_0x74ce2d,_0x13424c){_0x74ce2d=_0x74ce2d-0x1a4;let _0x578937=_0xa9e8c3[_0x74ce2d];return _0x578937;},a16_0x74ce(_0x3fc06b,_0x376684);}exports['command']=a16_0x20d490(0x1b6),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x20d490(0x1b1)]=function(_0x209a9e){const _0x29575f=a16_0x20d490,_0xa424c8={};_0xa424c8[_0x29575f(0x1ae)]=_0x29575f(0x1aa),_0xa424c8[_0x29575f(0x1ab)]='help';const _0x13b3dc=_0xa424c8;return _0x209a9e['usage'](HELP_HEADER_MESSAGE[_0x29575f(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x29575f(0x1a6)](_0x13b3dc['zqurt'])['demandCommand']()[_0x29575f(0x1b3)]()['strict']()[_0x29575f(0x1b2)](_0x13b3dc[_0x29575f(0x1ab)]);},exports['handler']=function(_0x2ebc97){};function a16_0xa9e8(){const _0x236e6b=['start_commands','pMlss','153BGzGLt','16hzZEYn','zqurt','816450LhmVie','470457FEullk','builder','help','recommendCommands','1574oJVgJQ','2513145NasOYW','start','13098767ksbEAv','14284VfCRKo','commandDir','10dNROIg','267PygfQu','3819452HSVpQo'];a16_0xa9e8=function(){return _0x236e6b;};return a16_0xa9e8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a17_0x307c3b=a17_0xe520;(function(_0x42d5ec,_0x3c1e74){const _0x36736b=a17_0xe520,_0x21f229=_0x42d5ec();while(!![]){try{const _0xbdc873=-parseInt(_0x36736b(0xaa))/0x1*(-parseInt(_0x36736b(0x9d))/0x2)+parseInt(_0x36736b(0x9b))/0x3+parseInt(_0x36736b(0xc7))/0x4+parseInt(_0x36736b(0xcb))/0x5+parseInt(_0x36736b(0x94))/0x6+parseInt(_0x36736b(0xdf))/0x7+-parseInt(_0x36736b(0xcc))/0x8;if(_0xbdc873===_0x3c1e74)break;else _0x21f229['push'](_0x21f229['shift']());}catch(_0x428fb8){_0x21f229['push'](_0x21f229['shift']());}}}(a17_0x546f,0x9be0f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x307c3b(0xcf)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a17_0x307c3b(0xba)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a17_0x307c3b(0xb0)),{createK8sClient}=require(a17_0x307c3b(0xc0)),{getCloudProviderObject}=require(a17_0x307c3b(0xcd));function a17_0xe520(_0x225a91,_0x2e97fd){const _0x546f78=a17_0x546f();return a17_0xe520=function(_0xe520ca,_0x11767a){_0xe520ca=_0xe520ca-0x8c;let _0x1fbf44=_0x546f78[_0xe520ca];return _0x1fbf44;},a17_0xe520(_0x225a91,_0x2e97fd);}exports[a17_0x307c3b(0x8f)]=a17_0x307c3b(0xab),exports[a17_0x307c3b(0xaf)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a17_0x307c3b(0xc6)]=function(_0xde4111){const _0x2f2e4f=a17_0x307c3b,_0x1b7db3={};_0x1b7db3[_0x2f2e4f(0xb6)]=_0x2f2e4f(0xc3),_0x1b7db3['dsneC']=_0x2f2e4f(0xbf),_0x1b7db3[_0x2f2e4f(0x8d)]='help';const _0x2646d5=_0x1b7db3,_0xd0fa3e={};_0xd0fa3e[_0x2f2e4f(0x96)]=_0x2646d5[_0x2f2e4f(0xb6)],_0xd0fa3e[_0x2f2e4f(0xa5)]=_0x2646d5[_0x2f2e4f(0xc1)];const _0x28e6ff={};return _0x28e6ff['grid-id']=_0xd0fa3e,_0xde4111[_0x2f2e4f(0xc8)](HELP_HEADER_MESSAGE['start'])[_0x2f2e4f(0x8c)](HELP_FOOTER_MESSAGE)[_0x2f2e4f(0x9e)](_0x28e6ff)[_0x2f2e4f(0xa0)](_0x2646d5[_0x2f2e4f(0x8d)])[_0x2f2e4f(0x90)];},exports[a17_0x307c3b(0xb9)]=async function(_0x32b1c7){const _0x38f7c4=a17_0x307c3b,_0x2d9051={'Tvxxj':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','qCGlG':function(_0x8b626c){return _0x8b626c();},'trQcC':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VQYDw':function(_0x41bfb5,_0x1e74a7,_0xfcdc66,_0x57bf54,_0xf000b,_0x517d1f,_0x2cac1a){return _0x41bfb5(_0x1e74a7,_0xfcdc66,_0x57bf54,_0xf000b,_0x517d1f,_0x2cac1a);},'angaT':'start-grid-called','bcYkq':_0x38f7c4(0xc4),'rhpUk':function(_0x575946,_0x370eb3,_0x162b95,_0x42ddbc,_0x4139af,_0x35cc49,_0x5599bd){return _0x575946(_0x370eb3,_0x162b95,_0x42ddbc,_0x4139af,_0x35cc49,_0x5599bd);},'cyxRS':function(_0x1035f6){return _0x1035f6();},'mtwvh':'<UsernamePlaceholder>','SxfRC':_0x38f7c4(0x98),'jTXXw':_0x38f7c4(0x9f),'oGxfx':function(_0x31b80b,_0x41357d,_0x591be9,_0x48d185){return _0x31b80b(_0x41357d,_0x591be9,_0x48d185);},'GMksV':function(_0x366598,_0x5df06b,_0x4c7008,_0x5ddbab,_0x512f08,_0x23c668,_0x289fba){return _0x366598(_0x5df06b,_0x4c7008,_0x5ddbab,_0x512f08,_0x23c668,_0x289fba);},'Ztntb':function(_0x290792,_0x3c6370){return _0x290792(_0x3c6370);},'tbNkS':function(_0xa27ac8,_0x4f27ca,_0x15af80){return _0xa27ac8(_0x4f27ca,_0x15af80);},'IgdCV':_0x38f7c4(0xa2),'PREKQ':function(_0x388c85,_0x16a6ee){return _0x388c85===_0x16a6ee;},'zWGsT':_0x38f7c4(0x8e),'wdfAH':_0x38f7c4(0xd7),'muRpy':function(_0x4bbf26,_0x14f062,_0x1de744,_0x1e2622,_0x365c6b,_0x3ed66f,_0x30dc31){return _0x4bbf26(_0x14f062,_0x1de744,_0x1e2622,_0x365c6b,_0x3ed66f,_0x30dc31);},'eRltG':_0x38f7c4(0xd6)};let _0x568839;try{!_0x32b1c7[_0x38f7c4(0xd4)]&&(logger[_0x38f7c4(0x97)](_0x2d9051['Tvxxj']),process['exit'](0x1));!fs[_0x38f7c4(0xc9)](_0x2d9051[_0x38f7c4(0xb7)](getCredentialsPath))&&(logger[_0x38f7c4(0x97)](_0x2d9051[_0x38f7c4(0xd2)]),await _0x2d9051[_0x38f7c4(0x91)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051['angaT'],messageTypes[_0x38f7c4(0xb5)],_0x2d9051[_0x38f7c4(0xbc)],null,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1));logger['info'](_0x38f7c4(0xd0)+_0x32b1c7[_0x38f7c4(0xd4)]),await _0x2d9051[_0x38f7c4(0xa8)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051[_0x38f7c4(0x95)],messageTypes[_0x38f7c4(0xb2)],null,null,_0x32b1c7);const _0x3b891b=JSON[_0x38f7c4(0xdc)](fs['readFileSync'](_0x2d9051[_0x38f7c4(0xd5)](getCredentialsPath)));global_registry['bstackUsername']=_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xd8)],global_registry[_0x38f7c4(0xad)]=_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xda)];const _0x25fe04=WS_ENDPOINT[_0x38f7c4(0xdb)](_0x2d9051[_0x38f7c4(0xdd)],_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xd8)])['replace'](_0x2d9051[_0x38f7c4(0xb3)],_0x3b891b['Browserstack']['password']),_0x178f24={};_0x178f24[_0x38f7c4(0xb1)]=ws,_0x178f24[_0x38f7c4(0xae)]=0x36ee80,_0x568839=new ReconnectingWebSocket(_0x25fe04,[],_0x178f24),logger[_0x38f7c4(0x9a)](_0x2d9051['jTXXw']),webSocketUtils[_0x38f7c4(0x92)](_0x568839,_0x32b1c7['user'],_0x32b1c7[_0x38f7c4(0xda)]);const [_0xc0987,_0x40f83c]=await _0x2d9051[_0x38f7c4(0xca)](getGridDetails,_0x3b891b[_0x38f7c4(0xce)]['username'],_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xda)],_0x32b1c7[_0x38f7c4(0xd4)]);if(_0x40f83c){const _0x5e504b=_0x40f83c[_0x38f7c4(0xac)];global_registry['cloudProvider']=_0x5e504b[_0x38f7c4(0xa6)],global_registry['clusterRegion']=_0x5e504b[_0x38f7c4(0xd9)],global_registry[_0x38f7c4(0xb8)]=_0x5e504b[_0x38f7c4(0xb8)];const _0x456942=await _0x2d9051[_0x38f7c4(0xd1)](getCloudProviderObject,_0x5e504b[_0x38f7c4(0xa6)],_0x5e504b[_0x38f7c4(0xb8)],_0x5e504b[_0x38f7c4(0xc5)],_0x568839,webSocketUtils,_0x32b1c7),_0x5253a9=_0x3b891b[_0x38f7c4(0xa6)]||{};await _0x456942[_0x38f7c4(0xbe)](_0x5253a9),_0x456942[_0x38f7c4(0x99)]();const [_0x25d3e1,_0x4141ca,_0xed8bbf,_0x3e8dcd,_0x2f64fb,_0x553d62]=await _0x2d9051['Ztntb'](createK8sClient,_0x456942);await _0x2d9051[_0x38f7c4(0x93)](scaleUpHubDeployment,_0x4141ca,_0x5e504b[_0x38f7c4(0xc5)]),logger[_0x38f7c4(0xac)](_0x2d9051[_0x38f7c4(0xa7)]),process[_0x38f7c4(0xa4)](0x0);}_0x2d9051[_0x38f7c4(0xbb)](_0xc0987['statusCode'],0x191)&&(logger[_0x38f7c4(0x97)](_0x38f7c4(0x9c)),await _0x2d9051['VQYDw'](sendInstrumentationEvent,_0x32b1c7,_0x2d9051['angaT'],messageTypes[_0x38f7c4(0xb5)],_0x2d9051['zWGsT'],null,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1)),_0x2d9051[_0x38f7c4(0xbb)](_0xc0987[_0x38f7c4(0xb4)],0x190)&&(logger[_0x38f7c4(0x97)](JSON['parse'](_0xc0987[_0x38f7c4(0xde)])[_0x38f7c4(0xbd)]),await _0x2d9051[_0x38f7c4(0x91)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051[_0x38f7c4(0x95)],messageTypes['ERROR'],_0x2d9051['wdfAH'],null,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1)),logger[_0x38f7c4(0x97)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x38f7c4(0xa1)](_0xc0987)),await _0x2d9051[_0x38f7c4(0xd3)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051[_0x38f7c4(0x95)],messageTypes[_0x38f7c4(0xb5)],_0x2d9051[_0x38f7c4(0xa9)],_0xc0987,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1);}catch(_0x2da797){const _0x478cea=_0x38f7c4(0xa3)+_0x2da797+'\x20\x0a'+JSON[_0x38f7c4(0xa1)](_0x2da797[_0x38f7c4(0xc2)])+'\x20';logger[_0x38f7c4(0x97)](_0x478cea),process[_0x38f7c4(0xa4)](0x1);}};function a17_0x546f(){const _0x8e665d=['clusterName','handler','../../utils/utilityMethods','PREKQ','bcYkq','message','fetchLocalCreds','string','../../utils/createk8sClient','dsneC','stack','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','init-not-called','name','builder','4824828oKImUH','usage','existsSync','oGxfx','825105lCaZlu','27930416dwXehP','../../cloudproviders/utils','Browserstack','reconnecting-websocket','Starting\x20grid\x20','GMksV','trQcC','muRpy','gridId','cyxRS','server-error','invalid-grid-id','username','region','password','replace','parse','mtwvh','body','7687918ReXQnR','epilogue','uzOSk','unauthorised','command','argv','VQYDw','addListeners','tbNkS','6975906qCdxJH','angaT','description','error','<PasswordPlaceholder>','configureIfNotConfigured','debug','926091PQIMFP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','426IdzKyQ','options','Adding\x20Websocket\x20listeners','help','stringify','Grid\x20started','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','exit','type','cloudProvider','IgdCV','rhpUk','eRltG','887NCiOVk','grid','info','bstackAccesskey','connectionTimeout','desc','../../utils/webSocketUtils','WebSocket','INFO','SxfRC','statusCode','ERROR','mhYJR','qCGlG'];a17_0x546f=function(){return _0x8e665d;};return a17_0x546f();}
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a18_0x1c1f(_0x376099,_0x543031){const _0x1675fb=a18_0x1675();return a18_0x1c1f=function(_0x1c1f59,_0x1dd69b){_0x1c1f59=_0x1c1f59-0x179;let _0x3f18d2=_0x1675fb[_0x1c1f59];return _0x3f18d2;},a18_0x1c1f(_0x376099,_0x543031);}function a18_0x1675(){const _0x3e3d0b=['recommendCommands','stop_commands','1901708AJYacE','243273ReZscO','stop','Stop\x20a\x20running\x20Automation\x20grid.','command','jYozP','../config/constants','desc','strict','demandCommand','5876370wuyuUc','commandDir','help','fwGdd','8wOcLZZ','6360120XcMjxA','usage','builder','6771177VvLLpj','handler','2363736ioukGK','66860bGdpDs'];a18_0x1675=function(){return _0x3e3d0b;};return a18_0x1675();}const a18_0x426d6a=a18_0x1c1f;(function(_0x4b1dbe,_0x1e9447){const _0x44d283=a18_0x1c1f,_0x1167c9=_0x4b1dbe();while(!![]){try{const _0x523370=parseInt(_0x44d283(0x18f))/0x1*(parseInt(_0x44d283(0x184))/0x2)+parseInt(_0x44d283(0x18a))/0x3+-parseInt(_0x44d283(0x18e))/0x4+parseInt(_0x44d283(0x18b))/0x5+-parseInt(_0x44d283(0x180))/0x6+parseInt(_0x44d283(0x188))/0x7+-parseInt(_0x44d283(0x185))/0x8;if(_0x523370===_0x1e9447)break;else _0x1167c9['push'](_0x1167c9['shift']());}catch(_0x56328d){_0x1167c9['push'](_0x1167c9['shift']());}}}(a18_0x1675,0x7814a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x426d6a(0x17c));exports[a18_0x426d6a(0x17a)]=a18_0x426d6a(0x190),exports[a18_0x426d6a(0x17d)]=a18_0x426d6a(0x179),exports[a18_0x426d6a(0x187)]=function(_0x340d06){const _0x57e115=a18_0x426d6a,_0x2f24cc={};_0x2f24cc[_0x57e115(0x17b)]=_0x57e115(0x18d),_0x2f24cc[_0x57e115(0x183)]=_0x57e115(0x182);const _0x1adc74=_0x2f24cc;return _0x340d06[_0x57e115(0x186)](HELP_HEADER_MESSAGE[_0x57e115(0x190)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x57e115(0x181)](_0x1adc74[_0x57e115(0x17b)])[_0x57e115(0x17f)]()[_0x57e115(0x18c)]()[_0x57e115(0x17e)]()[_0x57e115(0x182)](_0x1adc74[_0x57e115(0x183)]);},exports[a18_0x426d6a(0x189)]=function(_0x3a1835){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a19_0x1e60(_0x43e24a,_0x2dcc0f){const _0x2d5ae3=a19_0x2d5a();return a19_0x1e60=function(_0x1e60cd,_0x134826){_0x1e60cd=_0x1e60cd-0x19a;let _0x1bffff=_0x2d5ae3[_0x1e60cd];return _0x1bffff;},a19_0x1e60(_0x43e24a,_0x2dcc0f);}const a19_0x1f0352=a19_0x1e60;(function(_0x173a46,_0x596190){const _0x38308e=a19_0x1e60,_0x476f63=_0x173a46();while(!![]){try{const _0x450ed5=parseInt(_0x38308e(0x1ef))/0x1*(-parseInt(_0x38308e(0x1dc))/0x2)+-parseInt(_0x38308e(0x1b2))/0x3+-parseInt(_0x38308e(0x1bf))/0x4+parseInt(_0x38308e(0x1cc))/0x5*(-parseInt(_0x38308e(0x1c8))/0x6)+-parseInt(_0x38308e(0x1de))/0x7*(-parseInt(_0x38308e(0x1e9))/0x8)+parseInt(_0x38308e(0x1d3))/0x9*(-parseInt(_0x38308e(0x1ca))/0xa)+parseInt(_0x38308e(0x1be))/0xb;if(_0x450ed5===_0x596190)break;else _0x476f63['push'](_0x476f63['shift']());}catch(_0x2876f6){_0x476f63['push'](_0x476f63['shift']());}}}(a19_0x2d5a,0xf20c9));function a19_0x2d5a(){const _0x1db8b6=['replace','password','yiyfN','../../utils/instrumentationUtils','unauthorised','lRBqV','name','info','../../config/constants','63863888soZeRb','1054320xmdoJu','grid-id','stringify','clusterRegion','mdXUx','init-not-called','configureIfNotConfigured','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','CDimo','104514JxjilP','options','51890RStPox','parse','505aLIKUq','jxbEX','clusterName','handler','HrmAg','exit','../../utils/webSocketUtils','1899ofWWLS','../../config/logger','help','Browserstack','readFileSync','statusCode','tVcnD','server-error','LiCEC','38YXJsYc','lcjDg','9030441TfARkt','fcMkV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','debug','message','miYWe','EWnGc','<PasswordPlaceholder>','body','YaQQJ','8zmvbsm','okfty','argv','user','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','addListeners','71007bJdPKk','INFO','stop-grid-called','ERROR','desc','command','Adding\x20Websocket\x20listeners','WebSocket','cloudProvider','invalid-grid-id','../../utils/utilityMethods','type','<UsernamePlaceholder>','Stopping\x20grid\x20','cxMCS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Stop\x20a\x20running\x20Automation\x20grid.','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','usage','MnpNb','gridId','builder','grid','MWOXX','bstackAccesskey','4912581LNUmgk','bstackUsername','username'];a19_0x2d5a=function(){return _0x1db8b6;};return a19_0x2d5a();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1f0352(0x1bd)),{logger}=require(a19_0x1f0352(0x1d4)),{getCredentialsPath,getGridDetails}=require(a19_0x1f0352(0x1a3)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x1f0352(0x1b8)),webSocketUtils=require(a19_0x1f0352(0x1d2)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x1f0352(0x19e)]=a19_0x1f0352(0x1af),exports[a19_0x1f0352(0x19d)]=a19_0x1f0352(0x1a9),exports[a19_0x1f0352(0x1ae)]=function(_0x1e0c8a){const _0x57c65e=a19_0x1f0352,_0x33bfb6={};_0x33bfb6['mdXUx']=_0x57c65e(0x1c6),_0x33bfb6['yiyfN']='string',_0x33bfb6[_0x57c65e(0x1e8)]=_0x57c65e(0x1d5);const _0xb60c19=_0x33bfb6,_0x44bbbb={};_0x44bbbb['description']=_0xb60c19[_0x57c65e(0x1c3)],_0x44bbbb[_0x57c65e(0x1a4)]=_0xb60c19[_0x57c65e(0x1b7)];const _0xec51f7={};return _0xec51f7[_0x57c65e(0x1c0)]=_0x44bbbb,_0x1e0c8a[_0x57c65e(0x1ab)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x57c65e(0x1c9)](_0xec51f7)[_0x57c65e(0x1d5)](_0xb60c19[_0x57c65e(0x1e8)])[_0x57c65e(0x1eb)];},exports[a19_0x1f0352(0x1cf)]=async function(_0x2e5839){const _0x254b7a=a19_0x1f0352,_0x34f23a={'miYWe':_0x254b7a(0x1ed),'Utlrb':function(_0x24ad02){return _0x24ad02();},'okfty':_0x254b7a(0x1a8),'MnpNb':function(_0x115845,_0xb9bdd4,_0x2030a2,_0x291a35,_0x3da7d3,_0x39d520,_0x55c6a3){return _0x115845(_0xb9bdd4,_0x2030a2,_0x291a35,_0x3da7d3,_0x39d520,_0x55c6a3);},'LiCEC':_0x254b7a(0x19b),'jxbEX':_0x254b7a(0x1c4),'HrmAg':_0x254b7a(0x1a5),'cxMCS':_0x254b7a(0x1e6),'tVcnD':_0x254b7a(0x19f),'lRHnR':function(_0x4e22b2,_0x2e02d0,_0x1e2884,_0x2e8f8e){return _0x4e22b2(_0x2e02d0,_0x1e2884,_0x2e8f8e);},'EWnGc':function(_0x2abb46,_0x568108,_0x1526ba,_0xfee027,_0x36cc5a,_0xc6342d,_0x4f27fa){return _0x2abb46(_0x568108,_0x1526ba,_0xfee027,_0x36cc5a,_0xc6342d,_0x4f27fa);},'lRBqV':function(_0x2542d6,_0x32a7a4){return _0x2542d6(_0x32a7a4);},'dOblz':function(_0x4f174a,_0x3415a8,_0x1f8502){return _0x4f174a(_0x3415a8,_0x1f8502);},'bjLRe':'Grid\x20stoppped.','MWOXX':function(_0x5312c5,_0x40566d){return _0x5312c5===_0x40566d;},'CDimo':_0x254b7a(0x1b9),'fcMkV':function(_0x40c86b,_0x2c9b5f,_0x5bbcf3,_0x4a0ee0,_0x361722,_0x3bc5f1,_0x1c8973){return _0x40c86b(_0x2c9b5f,_0x5bbcf3,_0x4a0ee0,_0x361722,_0x3bc5f1,_0x1c8973);},'lcjDg':_0x254b7a(0x1a2),'bsnki':_0x254b7a(0x1da)};let _0x3ac10f;try{!_0x2e5839[_0x254b7a(0x1ad)]&&(logger[_0x254b7a(0x1e1)](_0x34f23a[_0x254b7a(0x1e4)]),process[_0x254b7a(0x1d1)](0x1));!fs['existsSync'](_0x34f23a['Utlrb'](getCredentialsPath))&&(logger[_0x254b7a(0x1e1)](_0x34f23a[_0x254b7a(0x1ea)]),await _0x34f23a[_0x254b7a(0x1ac)](sendInstrumentationEvent,_0x2e5839,_0x34f23a['LiCEC'],messageTypes['ERROR'],_0x34f23a[_0x254b7a(0x1cd)],null,_0x2e5839),process['exit'](0x1));logger[_0x254b7a(0x1bc)](_0x254b7a(0x1a6)+_0x2e5839[_0x254b7a(0x1ad)]),await _0x34f23a[_0x254b7a(0x1ac)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes[_0x254b7a(0x19a)],null,null,_0x2e5839);const _0x330a2a=JSON[_0x254b7a(0x1cb)](fs[_0x254b7a(0x1d7)](_0x34f23a['Utlrb'](getCredentialsPath)));global_registry[_0x254b7a(0x1b3)]=_0x330a2a[_0x254b7a(0x1d6)][_0x254b7a(0x1b4)],global_registry[_0x254b7a(0x1b1)]=_0x330a2a[_0x254b7a(0x1d6)][_0x254b7a(0x1b6)];const _0x575104=WS_ENDPOINT[_0x254b7a(0x1b5)](_0x34f23a[_0x254b7a(0x1d0)],_0x330a2a['Browserstack'][_0x254b7a(0x1b4)])[_0x254b7a(0x1b5)](_0x34f23a[_0x254b7a(0x1a7)],_0x330a2a['Browserstack']['password']),_0x4ec9aa={};_0x4ec9aa[_0x254b7a(0x1a0)]=ws,_0x4ec9aa['connectionTimeout']=0x36ee80,_0x3ac10f=new ReconnectingWebSocket(_0x575104,[],_0x4ec9aa),logger[_0x254b7a(0x1e2)](_0x34f23a[_0x254b7a(0x1d9)]),webSocketUtils[_0x254b7a(0x1ee)](_0x3ac10f,_0x2e5839[_0x254b7a(0x1ec)],_0x2e5839[_0x254b7a(0x1b6)]);const [_0x2d86b9,_0x5b5118]=await _0x34f23a['lRHnR'](getGridDetails,_0x330a2a['Browserstack'][_0x254b7a(0x1b4)],_0x330a2a[_0x254b7a(0x1d6)]['password'],_0x2e5839[_0x254b7a(0x1ad)]);if(_0x5b5118){const _0x35dc2f=_0x5b5118['info'];global_registry['cloudProvider']=_0x35dc2f['cloudProvider'],global_registry[_0x254b7a(0x1c2)]=_0x35dc2f['region'],global_registry['clusterName']=_0x35dc2f[_0x254b7a(0x1ce)];const _0x200dd5=await _0x34f23a[_0x254b7a(0x1e5)](getCloudProviderObject,_0x35dc2f[_0x254b7a(0x1a1)],_0x35dc2f[_0x254b7a(0x1ce)],_0x35dc2f[_0x254b7a(0x1bb)],_0x3ac10f,webSocketUtils,_0x2e5839),_0xeb4c6a=_0x330a2a[_0x254b7a(0x1a1)]||{};await _0x200dd5['fetchLocalCreds'](_0xeb4c6a),_0x200dd5[_0x254b7a(0x1c5)]();const [_0x5c28e1,_0x30de92,_0x21091e,_0x1a7fbd,_0x17252c,_0x110ca1]=await _0x34f23a[_0x254b7a(0x1ba)](createK8sClient,_0x200dd5);await _0x34f23a['dOblz'](scaleDownHubDeployment,_0x30de92,_0x35dc2f[_0x254b7a(0x1bb)]),logger[_0x254b7a(0x1bc)](_0x34f23a['bjLRe']),process['exit'](0x0);}_0x34f23a['MWOXX'](_0x2d86b9[_0x254b7a(0x1d8)],0x191)&&(logger[_0x254b7a(0x1e1)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x34f23a[_0x254b7a(0x1ac)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes[_0x254b7a(0x19c)],_0x34f23a[_0x254b7a(0x1c7)],null,_0x2e5839),process[_0x254b7a(0x1d1)](0x1)),_0x34f23a[_0x254b7a(0x1b0)](_0x2d86b9[_0x254b7a(0x1d8)],0x190)&&(logger['error'](JSON['parse'](_0x2d86b9[_0x254b7a(0x1e7)])[_0x254b7a(0x1e3)]),await _0x34f23a[_0x254b7a(0x1df)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes['ERROR'],_0x34f23a[_0x254b7a(0x1dd)],null,_0x2e5839),process[_0x254b7a(0x1d1)](0x1)),logger[_0x254b7a(0x1e1)](_0x254b7a(0x1e0)+JSON[_0x254b7a(0x1c1)](_0x2d86b9)),await _0x34f23a[_0x254b7a(0x1e5)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes[_0x254b7a(0x19c)],_0x34f23a['bsnki'],_0x2d86b9,_0x2e5839),process[_0x254b7a(0x1d1)](0x1);}catch(_0x17b2de){const _0x23de63=_0x254b7a(0x1aa)+_0x17b2de+'\x20\x0a'+JSON['stringify'](_0x17b2de['stack'])+'\x20';logger[_0x254b7a(0x1e1)](_0x23de63),process[_0x254b7a(0x1d1)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a20_0x220e43=a20_0x3216;(function(_0x2a1a83,_0x448c92){var _0x124632=a20_0x3216,_0x39501b=_0x2a1a83();while(!![]){try{var _0x3a63b3=parseInt(_0x124632(0x1d0))/0x1*(-parseInt(_0x124632(0x18e))/0x2)+-parseInt(_0x124632(0x1c3))/0x3*(-parseInt(_0x124632(0x1c6))/0x4)+parseInt(_0x124632(0x19c))/0x5+-parseInt(_0x124632(0x1bc))/0x6+parseInt(_0x124632(0x1de))/0x7+parseInt(_0x124632(0x1b4))/0x8*(-parseInt(_0x124632(0x18a))/0x9)+parseInt(_0x124632(0x1c8))/0xa*(parseInt(_0x124632(0x1c4))/0xb);if(_0x3a63b3===_0x448c92)break;else _0x39501b['push'](_0x39501b['shift']());}catch(_0x1b50a5){_0x39501b['push'](_0x39501b['shift']());}}}(a20_0x47ab,0xe3d58),require(a20_0x220e43(0x1a3))[a20_0x220e43(0x1b7)](),exports[a20_0x220e43(0x1d9)]=process[a20_0x220e43(0x1a0)][a20_0x220e43(0x1d9)]||a20_0x220e43(0x1bd),exports[a20_0x220e43(0x1cc)]=process[a20_0x220e43(0x1a0)][a20_0x220e43(0x1cc)]||a20_0x220e43(0x1c2),exports[a20_0x220e43(0x1a6)]=process['env'][a20_0x220e43(0x1a6)]||'grid-api.browserstack.com',exports[a20_0x220e43(0x1e1)]=a20_0x220e43(0x1b6)+this[a20_0x220e43(0x1a6)]+a20_0x220e43(0x1ba),exports[a20_0x220e43(0x1da)]=a20_0x220e43(0x1b9),exports[a20_0x220e43(0x18d)]=a20_0x220e43(0x19b),exports[a20_0x220e43(0x1d5)]=a20_0x220e43(0x19e),exports[a20_0x220e43(0x1d8)]='aws',exports['CLUSTER_DEP_STACK_NAME']=a20_0x220e43(0x1ac),exports[a20_0x220e43(0x1a7)]=a20_0x220e43(0x1d3),exports[a20_0x220e43(0x1a8)]=a20_0x220e43(0x19f),exports[a20_0x220e43(0x193)]=a20_0x220e43(0x194),exports[a20_0x220e43(0x18c)]=a20_0x220e43(0x199));var a20_0x4b5f9d={};function a20_0x3216(_0x320e4a,_0x2e88ba){var _0x47ab4d=a20_0x47ab();return a20_0x3216=function(_0x32164d,_0x2f893d){_0x32164d=_0x32164d-0x189;var _0x5d8340=_0x47ab4d[_0x32164d];return _0x5d8340;},a20_0x3216(_0x320e4a,_0x2e88ba);}a20_0x4b5f9d[a20_0x220e43(0x1c0)]=a20_0x220e43(0x1ab),a20_0x4b5f9d[a20_0x220e43(0x1ae)]=a20_0x220e43(0x1ce);var a20_0x47ca1f={};a20_0x47ca1f[a20_0x220e43(0x1c0)]=a20_0x220e43(0x1b3),a20_0x47ca1f['Value']=a20_0x220e43(0x1bf),exports['COMMON_HST_TAGS']=[a20_0x4b5f9d,a20_0x47ca1f];var a20_0x192f60={};a20_0x192f60['browserstack:managedBy']=a20_0x220e43(0x1ce),a20_0x192f60['browserstack:service']=a20_0x220e43(0x1bf),exports[a20_0x220e43(0x196)]=a20_0x192f60,exports[a20_0x220e43(0x1b1)]=[this['AWS']];var a20_0x1b3ce8={};a20_0x1b3ce8['LOG']='log',a20_0x1b3ce8[a20_0x220e43(0x1b5)]=a20_0x220e43(0x1ad),a20_0x1b3ce8['GRID_URL']=a20_0x220e43(0x1bb),a20_0x1b3ce8[a20_0x220e43(0x1d4)]=a20_0x220e43(0x1db),a20_0x1b3ce8['CLI_RUN_FINISHED']=a20_0x220e43(0x1a1),exports[a20_0x220e43(0x1a4)]=a20_0x1b3ce8,exports[a20_0x220e43(0x1cd)]={},exports['LINK_MESSAGE']=a20_0x220e43(0x1d2);function a20_0x47ab(){var _0x92cbef=['LINK_MESSAGE','BS_API_URL','global_registry','BrowserStack','delete','24343jzTQRT','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','BSTACK-ATS-CLUSTER-AUTOSCALER','CLI_RUN_STARTED','DEFAULT_GRID_NAME','root','start','AWS','DASHBOARD_ENDPOINT','CP_CONFIG_FILE','cliRunStarted','INFO','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','2544059jdKbVi','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','unknown','WS_ENDPOINT','HELP_FOOTER_MESSAGE','639xmNoOq','NULL','GCP','IAM_USER_NAME','44PCWTvb','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','[REDACTED]','HELP_HEADER_MESSAGE','warning','AZURE','azure','list','HST_CLUSTER_TAGS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','gcp','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BrowserStackIAMUser','8833220JaAXOx','error','high-scale-grid','browserstack-turboscale-grid','env','cliRunFinished','UNKNOWN','dotenv','WS_EVENTS','RAW_ARGS_REGEX','AG_API_URL','CLUSTER_AUTOSCALER_STACK_NAME','TURBOSCALE_DEPLOYMENT','gridProfile','grid','browserstack:managedBy','BSTACK-ATS-CLUSTER','resourceInfo','Value','stop','REDACTED','SUPPORTED_CLOUD_PROVIDERS','connect','browserstack:service','64576KZoHCP','RESOURCES','wss://','config','CLI_ARGS_REGEX','credentials','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gridUrl','10263600lsrOgA','grid.browserstack.com','success','BrowserStack-Automate-TurboScale','Key','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','api.browserstack.com','3SlbUAk','42856mTZIDo','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','380612RNOvVW','SUCCESS','3920fUhIET','create','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'];a20_0x47ab=function(){return _0x92cbef;};return a20_0x47ab();}var a20_0xbc4c90={};a20_0xbc4c90[a20_0x220e43(0x1d6)]=a20_0x220e43(0x197)+this['LINK_MESSAGE'],a20_0xbc4c90['init']=a20_0x220e43(0x19a)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90['configure']=a20_0x220e43(0x1c1)+this['LINK_MESSAGE'],a20_0xbc4c90[a20_0x220e43(0x1c9)]=a20_0x220e43(0x18f)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)]={},a20_0xbc4c90[a20_0x220e43(0x1cf)]=a20_0x220e43(0x1dd)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x1b2)]=a20_0x220e43(0x1d1)+this['LINK_MESSAGE'],a20_0xbc4c90[a20_0x220e43(0x1d7)]=a20_0x220e43(0x1c5)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x1af)]=a20_0x220e43(0x198)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)][a20_0x220e43(0x1d6)]=a20_0x220e43(0x1ca)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)][a20_0x220e43(0x1aa)]=a20_0x220e43(0x1df)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)][a20_0x220e43(0x1a9)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a20_0x220e43(0x191)]=a20_0xbc4c90,exports[a20_0x220e43(0x189)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';var a20_0x4b9cb9={};a20_0x4b9cb9[a20_0x220e43(0x1c7)]=a20_0x220e43(0x1be),a20_0x4b9cb9['ERROR']=a20_0x220e43(0x19d),a20_0x4b9cb9[a20_0x220e43(0x1dc)]='info',a20_0x4b9cb9['WARNING']=a20_0x220e43(0x192),a20_0x4b9cb9[a20_0x220e43(0x1a2)]=a20_0x220e43(0x1e0),a20_0x4b9cb9[a20_0x220e43(0x18b)]=null,exports['messageTypes']=a20_0x4b9cb9,exports[a20_0x220e43(0x1b8)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x220e43(0x1a5)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x220e43(0x1b0)]=a20_0x220e43(0x190);
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x296f12=a21_0x29ba;(function(_0x6cec32,_0xefedc9){const _0x2218fa=a21_0x29ba,_0x4103ce=_0x6cec32();while(!![]){try{const _0x5efcc3=-parseInt(_0x2218fa(0x14c))/0x1*(parseInt(_0x2218fa(0x14b))/0x2)+-parseInt(_0x2218fa(0x152))/0x3*(parseInt(_0x2218fa(0x148))/0x4)+parseInt(_0x2218fa(0x156))/0x5+parseInt(_0x2218fa(0x151))/0x6+-parseInt(_0x2218fa(0x142))/0x7*(-parseInt(_0x2218fa(0x14e))/0x8)+-parseInt(_0x2218fa(0x140))/0x9*(parseInt(_0x2218fa(0x154))/0xa)+-parseInt(_0x2218fa(0x13e))/0xb*(-parseInt(_0x2218fa(0x138))/0xc);if(_0x5efcc3===_0xefedc9)break;else _0x4103ce['push'](_0x4103ce['shift']());}catch(_0x4b8f1a){_0x4103ce['push'](_0x4103ce['shift']());}}}(a21_0x117a,0xb5a8a));const winston=require(a21_0x296f12(0x13c)),fs=require('fs'),path=require(a21_0x296f12(0x13d)),logDir='log';!fs[a21_0x296f12(0x13a)](logDir)&&fs['mkdirSync'](logDir);const a21_0x2b9c35={};a21_0x2b9c35['format']='YYYY-MM-DD\x20HH:mm:ss';function a21_0x29ba(_0x8e5c17,_0x1db4d9){const _0x117a37=a21_0x117a();return a21_0x29ba=function(_0x29bab1,_0x4e879c){_0x29bab1=_0x29bab1-0x138;let _0x3704d3=_0x117a37[_0x29bab1];return _0x3704d3;},a21_0x29ba(_0x8e5c17,_0x1db4d9);}const a21_0x5ee0c7={};function a21_0x117a(){const _0x209d6d=['console.info','246778gRNkqp','combine','File','format','name','debug','16JgdAuV','level','transports','74yjjiLy','37861cDFJUK','Console','272vOdHeZ','message','join','5164860mUQNfF','1024902FiWKOo','printf','2388480SNneLp','fileLogger','2067620fSQRRy','771828wLnBMx','colorize','existsSync','createLogger','winston','path','341qhBvOn','timestamp','36AGePKb'];a21_0x117a=function(){return _0x209d6d;};return a21_0x117a();}a21_0x5ee0c7[a21_0x296f12(0x149)]=!![];const a21_0x2d7ba6={};a21_0x2d7ba6[a21_0x296f12(0x146)]=a21_0x296f12(0x141),exports['logger']=new winston['createLogger']({'format':winston[a21_0x296f12(0x145)][a21_0x296f12(0x143)](winston[a21_0x296f12(0x145)]['timestamp'](a21_0x2b9c35),winston[a21_0x296f12(0x145)][a21_0x296f12(0x139)](a21_0x5ee0c7),winston[a21_0x296f12(0x145)][a21_0x296f12(0x153)](_0x17c6ed=>_0x17c6ed[a21_0x296f12(0x13f)]+'\x20-\x20'+_0x17c6ed[a21_0x296f12(0x149)]+':\x20'+_0x17c6ed[a21_0x296f12(0x14f)])),'transports':[new winston['transports'][(a21_0x296f12(0x14d))](a21_0x2d7ba6),new winston[(a21_0x296f12(0x14a))][(a21_0x296f12(0x144))]({'filename':path[a21_0x296f12(0x150)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x296f12(0x14a))][(a21_0x296f12(0x144))]({'filename':path[a21_0x296f12(0x150)](logDir,'usage.log'),'level':a21_0x296f12(0x147)})]};exports[a21_0x296f12(0x155)]=new winston[(a21_0x296f12(0x13b))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a22_0xbcfa2e=a22_0x27fb;(function(_0x3da1d7,_0x2e38e4){const _0x2ff86b=a22_0x27fb,_0x1b09ab=_0x3da1d7();while(!![]){try{const _0x4b728c=parseInt(_0x2ff86b(0x176))/0x1*(-parseInt(_0x2ff86b(0x16d))/0x2)+-parseInt(_0x2ff86b(0x166))/0x3*(parseInt(_0x2ff86b(0x16e))/0x4)+-parseInt(_0x2ff86b(0x170))/0x5*(-parseInt(_0x2ff86b(0x165))/0x6)+parseInt(_0x2ff86b(0x173))/0x7*(-parseInt(_0x2ff86b(0x168))/0x8)+parseInt(_0x2ff86b(0x167))/0x9+-parseInt(_0x2ff86b(0x178))/0xa*(parseInt(_0x2ff86b(0x169))/0xb)+-parseInt(_0x2ff86b(0x162))/0xc*(-parseInt(_0x2ff86b(0x17a))/0xd);if(_0x4b728c===_0x2e38e4)break;else _0x1b09ab['push'](_0x1b09ab['shift']());}catch(_0x94a737){_0x1b09ab['push'](_0x1b09ab['shift']());}}}(a22_0x3f3d,0x73a03));function a22_0x27fb(_0x32aaa7,_0x248a1b){const _0x3f3d60=a22_0x3f3d();return a22_0x27fb=function(_0x27fbc8,_0x398c58){_0x27fbc8=_0x27fbc8-0x162;let _0x52e212=_0x3f3d60[_0x27fbc8];return _0x52e212;},a22_0x27fb(_0x32aaa7,_0x248a1b);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0xbcfa2e(0x172));process[a22_0xbcfa2e(0x179)][a22_0xbcfa2e(0x174)]=0x1;function run(_0x465a26){const _0x4c1f05=a22_0xbcfa2e,_0x506264={};_0x506264[_0x4c1f05(0x177)]='commands',_0x506264['rKRwG']=_0x4c1f05(0x16f);const _0x4454b1=_0x506264;_0x465a26[_0x4c1f05(0x163)](HELP_HEADER_MESSAGE[_0x4c1f05(0x175)])[_0x4c1f05(0x16c)](_0x4454b1[_0x4c1f05(0x177)])[_0x4c1f05(0x16a)]()['help'](_0x4454b1[_0x4c1f05(0x171)])[_0x4c1f05(0x164)](HELP_FOOTER_MESSAGE);}module[a22_0xbcfa2e(0x16b)]=run;function a22_0x3f3d(){const _0x5838b3=['./config/constants','7slKMWb','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','root','568DEYXBx','SQDnq','1301010zgUzIe','env','169091XZoTGz','84MoIcMU','usage','epilogue','6AxYFYw','3ELjxmd','6510060KjjYBY','76976cXNtnR','33mhSJSS','demandCommand','exports','commandDir','386owZMxo','635772ayyoFU','help','1638530XBsstl','rKRwG'];a22_0x3f3d=function(){return _0x5838b3;};return a22_0x3f3d();}
|
|
@@ -28,6 +28,13 @@
|
|
|
28
28
|
"description": "Disk size (in GiB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize."
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
+
"osDiskSizeGBWindows": {
|
|
32
|
+
"type": "int",
|
|
33
|
+
"defaultValue": 100,
|
|
34
|
+
"metadata": {
|
|
35
|
+
"description": "Disk size (in GiB) to provision for each of the windows pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize."
|
|
36
|
+
}
|
|
37
|
+
},
|
|
31
38
|
"userMaxNodes": {
|
|
32
39
|
"type": "int",
|
|
33
40
|
"defaultValue": 1,
|
|
@@ -41,6 +48,13 @@
|
|
|
41
48
|
"metadata": {
|
|
42
49
|
"description": "Minimum num of nodes running in a node pool"
|
|
43
50
|
}
|
|
51
|
+
},
|
|
52
|
+
"userMinNodesWindows": {
|
|
53
|
+
"type": "int",
|
|
54
|
+
"defaultValue": 0,
|
|
55
|
+
"metadata": {
|
|
56
|
+
"description": "Minimum num of nodes running in a node pool"
|
|
57
|
+
}
|
|
44
58
|
}
|
|
45
59
|
},
|
|
46
60
|
"resources": [
|
|
@@ -52,7 +66,6 @@
|
|
|
52
66
|
"name": "[parameters('clusterName')]",
|
|
53
67
|
"properties": {
|
|
54
68
|
"dnsPrefix": "[concat(parameters('clusterName'), '-dns')]",
|
|
55
|
-
"kubernetesVersion": "1.26.6",
|
|
56
69
|
"enableRBAC": true,
|
|
57
70
|
"agentPoolProfiles": [
|
|
58
71
|
{
|
|
@@ -76,13 +89,54 @@
|
|
|
76
89
|
"enableNodePublicIP": false,
|
|
77
90
|
"tags": {
|
|
78
91
|
"browserstack:managedBy": "BrowserStack"
|
|
92
|
+
},
|
|
93
|
+
"nodeLabels": {
|
|
94
|
+
"createdBy": "BrowserStack",
|
|
95
|
+
"managedBy": "Browserstack"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "win",
|
|
100
|
+
"osDiskSizeGB": "[parameters('osDiskSizeGBWindows')]",
|
|
101
|
+
"count": "[parameters('userMinNodesWindows')]",
|
|
102
|
+
"enableAutoScaling": true,
|
|
103
|
+
"minCount": "[parameters('userMinNodesWindows')]",
|
|
104
|
+
"maxCount": "[parameters('userMaxNodes')]",
|
|
105
|
+
"vmSize": "[parameters('userInstanceType')]",
|
|
106
|
+
"osType": "Windows",
|
|
107
|
+
"osSKU": "Windows2022",
|
|
108
|
+
"storageProfile": "ManagedDisks",
|
|
109
|
+
"type": "VirtualMachineScaleSets",
|
|
110
|
+
"mode": "User",
|
|
111
|
+
"maxPods": 100,
|
|
112
|
+
"enableFIPS": false,
|
|
113
|
+
"windowsProfile": {},
|
|
114
|
+
"securityProfile": {
|
|
115
|
+
"sshAccess": "LocalUser"
|
|
116
|
+
},
|
|
117
|
+
"availabilityZones": [
|
|
118
|
+
"1",
|
|
119
|
+
"2",
|
|
120
|
+
"3"
|
|
121
|
+
],
|
|
122
|
+
"enableNodePublicIP": false,
|
|
123
|
+
"tags": {
|
|
124
|
+
"browserstack:managedBy": "BrowserStack"
|
|
125
|
+
},
|
|
126
|
+
"nodeLabels": {
|
|
127
|
+
"createdBy": "BrowserStack",
|
|
128
|
+
"managedBy": "Browserstack"
|
|
79
129
|
}
|
|
80
130
|
}
|
|
81
131
|
],
|
|
132
|
+
"windowsProfile": {
|
|
133
|
+
"adminUsername": "azureuser",
|
|
134
|
+
"adminPassword": "Azurepassword@123",
|
|
135
|
+
"enableCSIProxy": true
|
|
136
|
+
},
|
|
82
137
|
"networkProfile": {
|
|
83
138
|
"loadBalancerSku": "standard",
|
|
84
|
-
"networkPlugin": "
|
|
85
|
-
"networkPolicy": "calico"
|
|
139
|
+
"networkPlugin": "azure"
|
|
86
140
|
},
|
|
87
141
|
"autoUpgradeProfile": {
|
|
88
142
|
"upgradeChannel": "none"
|
|
@@ -16,14 +16,15 @@
|
|
|
16
16
|
"name": "[parameters('storageAccountName')]",
|
|
17
17
|
"location": "[resourceGroup().location]",
|
|
18
18
|
"sku": {
|
|
19
|
-
"name": "
|
|
20
|
-
"tier": "
|
|
19
|
+
"name": "Premium_LRS",
|
|
20
|
+
"tier": "Premium"
|
|
21
21
|
},
|
|
22
|
-
"kind": "
|
|
22
|
+
"kind": "BlockBlobStorage",
|
|
23
23
|
"properties": {
|
|
24
24
|
"allowCrossTenantReplication": false,
|
|
25
|
-
"minimumTlsVersion": "
|
|
25
|
+
"minimumTlsVersion": "TLS1_2",
|
|
26
26
|
"allowBlobPublicAccess": false,
|
|
27
|
+
"isHnsEnabled": true,
|
|
27
28
|
"networkAcls": {
|
|
28
29
|
"bypass": "AzureServices",
|
|
29
30
|
"virtualNetworkRules": [],
|
|
@@ -47,8 +48,7 @@
|
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
"keySource": "Microsoft.Storage"
|
|
50
|
-
}
|
|
51
|
-
"accessTier": "Hot"
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
{
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]"
|
|
60
60
|
],
|
|
61
61
|
"sku": {
|
|
62
|
-
"name": "
|
|
63
|
-
"tier": "
|
|
62
|
+
"name": "Premium_LRS",
|
|
63
|
+
"tier": "Premium"
|
|
64
64
|
},
|
|
65
65
|
"properties": {
|
|
66
66
|
"cors": {
|