browserstack-node-sdk 1.32.6 → 1.32.8
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 +1 -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
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a13_0x2ca3(){const _0x2a8355=['21458SGiinc','handler','usage','126269ktutKC','DhPNM','help','list_commands','2096072rKWsBQ','2453556cpEOmL','55YDsjGp','493503egQDwK','../config/constants','88716fSkyGN','mdMPt','epilogue','30HMLLLd','builder','240mRTQWI','29oUZtRP','root','4mwZyjB','List\x20down\x20the\x20Grid\x20resources.','list','348930dzVOfs','desc','strict','demandCommand','18oStxAc'];a13_0x2ca3=function(){return _0x2a8355;};return a13_0x2ca3();}function a13_0x2a5f(_0x6d8716,_0xc8463e){const _0x2ca3f1=a13_0x2ca3();return a13_0x2a5f=function(_0x2a5ffd,_0x46c6e9){_0x2a5ffd=_0x2a5ffd-0x1d5;let _0x8e7bb9=_0x2ca3f1[_0x2a5ffd];return _0x8e7bb9;},a13_0x2a5f(_0x6d8716,_0xc8463e);}const a13_0x3890ac=a13_0x2a5f;(function(_0xf59f91,_0x43358d){const _0x5ad4ad=a13_0x2a5f,_0x3a00e1=_0xf59f91();while(!![]){try{const _0x155213=-parseInt(_0x5ad4ad(0x1e3))/0x1*(parseInt(_0x5ad4ad(0x1ed))/0x2)+-parseInt(_0x5ad4ad(0x1db))/0x3*(-parseInt(_0x5ad4ad(0x1e5))/0x4)+parseInt(_0x5ad4ad(0x1e0))/0x5*(-parseInt(_0x5ad4ad(0x1dd))/0x6)+parseInt(_0x5ad4ad(0x1d9))/0x7+parseInt(_0x5ad4ad(0x1d8))/0x8*(parseInt(_0x5ad4ad(0x1ec))/0x9)+parseInt(_0x5ad4ad(0x1e8))/0xa*(-parseInt(_0x5ad4ad(0x1da))/0xb)+parseInt(_0x5ad4ad(0x1e2))/0xc*(-parseInt(_0x5ad4ad(0x1f0))/0xd);if(_0x155213===_0x43358d)break;else _0x3a00e1['push'](_0x3a00e1['shift']());}catch(_0x1ccb23){_0x3a00e1['push'](_0x3a00e1['shift']());}}}(a13_0x2ca3,0x4206d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3890ac(0x1dc));exports['command']=a13_0x3890ac(0x1e7),exports[a13_0x3890ac(0x1e9)]=a13_0x3890ac(0x1e6),exports[a13_0x3890ac(0x1e1)]=function(_0x3f64f1){const _0x4352a4=a13_0x3890ac,_0x5b318b={};_0x5b318b[_0x4352a4(0x1de)]=_0x4352a4(0x1d7),_0x5b318b[_0x4352a4(0x1d5)]='help';const _0x4f31d1=_0x5b318b;return _0x3f64f1['commandDir'](_0x4f31d1[_0x4352a4(0x1de)])[_0x4352a4(0x1eb)]()[_0x4352a4(0x1ef)](HELP_HEADER_MESSAGE['list'][_0x4352a4(0x1e4)])[_0x4352a4(0x1df)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x4352a4(0x1ea)]()[_0x4352a4(0x1d6)](_0x4f31d1['DhPNM']);},exports[a13_0x3890ac(0x1ee)]=function(_0x4f3392){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x57e8df=a14_0x578f;(function(_0xad1ee2,_0x4e720e){const _0x4b5746=a14_0x578f,_0x8bfe88=_0xad1ee2();while(!![]){try{const _0x241ff=-parseInt(_0x4b5746(0x8e))/0x1+-parseInt(_0x4b5746(0x92))/0x2+parseInt(_0x4b5746(0xd4))/0x3*(-parseInt(_0x4b5746(0xaf))/0x4)+parseInt(_0x4b5746(0x9a))/0x5+parseInt(_0x4b5746(0x8f))/0x6+-parseInt(_0x4b5746(0x91))/0x7+parseInt(_0x4b5746(0xd3))/0x8;if(_0x241ff===_0x4e720e)break;else _0x8bfe88['push'](_0x8bfe88['shift']());}catch(_0x4e0226){_0x8bfe88['push'](_0x8bfe88['shift']());}}}(a14_0x2a2a,0xd0c31));function a14_0x578f(_0x20cf96,_0x3cd2b0){const _0x2a2aaa=a14_0x2a2a();return a14_0x578f=function(_0x578f79,_0xab6fd2){_0x578f79=_0x578f79-0x83;let _0x9d6c3f=_0x2a2aaa[_0x578f79];return _0x9d6c3f;},a14_0x578f(_0x20cf96,_0x3cd2b0);}function a14_0x2a2a(){const _0x51d805=['argv','epilogue','GET','error','stringify','spZTx','list-grid-profiles-called','tIKwd','GmpdC','boolean','region','qLTKi','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','all-grid-profiles','kdunM','push','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','5914424aWmGea','XBeBD','jcWMo','type','/packages/cli/get-grid-profiles','BDHim','srTSM','name','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','HhqMl','unknown-error','INFO','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','log','statusCode','parse','lRFEo','kVDSw','options','password','cloud-provider','usage','IkWsB','desc','OTwWQ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','https://','init-not-called','forEach','ERROR','builder','exit','/packages/cli/get-all-grid-profiles','../../config/constants','gridProfile','36664296EhLUUW','3mwzGgQ','NHLkL','bstackAccesskey','description','help','list','qwcYj','table','Browserstack','rzqsD','got','server-error','../../utils/utilityMethods','1509270GQTZCU','8673378IJMPLh','Sidgj','9689414KAcbFF','1757858TKeGBq','IaKmP','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','username','jxldc','mbFOZ','requestId','grid-profiles','387480rPSgev','RopvY','concurrency'];a14_0x2a2a=function(){return _0x51d805;};return a14_0x2a2a();}const fs=require('fs'),got=require(a14_0x57e8df(0x8b)),{table}=require(a14_0x57e8df(0x88)),{v4:uuidv4}=require(a14_0x57e8df(0xae)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x57e8df(0xd1)),{getCredentialsPath,getAuthHeader}=require(a14_0x57e8df(0x8d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a14_0x57e8df(0x99),exports[a14_0x57e8df(0xc6)]=a14_0x57e8df(0xbb),exports[a14_0x57e8df(0xce)]=function(_0x2009b9){const _0x52687c=a14_0x57e8df,_0x1df3c1={};_0x1df3c1['IaKmP']=_0x52687c(0x94),_0x1df3c1[_0x52687c(0xb5)]=_0x52687c(0xa6),_0x1df3c1[_0x52687c(0xa2)]=_0x52687c(0x85);const _0x544e75=_0x1df3c1,_0x1abbcd={};_0x1abbcd[_0x52687c(0x84)]=_0x544e75[_0x52687c(0x93)],_0x1abbcd[_0x52687c(0xb2)]=_0x544e75[_0x52687c(0xb5)];const _0x691807={};return _0x691807[_0x52687c(0xaa)]=_0x1abbcd,_0x2009b9[_0x52687c(0xc4)](HELP_HEADER_MESSAGE[_0x52687c(0x86)][_0x52687c(0xd2)])[_0x52687c(0x9e)](HELP_FOOTER_MESSAGE)[_0x52687c(0xc1)](_0x691807)['help'](_0x544e75['spZTx'])[_0x52687c(0x9d)];},exports['handler']=async function(_0x2b3f33){const _0x8c4204=a14_0x57e8df,_0xc69370={'rzqsD':function(_0x797d26){return _0x797d26();},'hWJzT':_0x8c4204(0xa9),'kVDSw':function(_0xfdacdc,_0x57a918,_0x270839,_0x29841b,_0x1972a0,_0xb71f84,_0x168995){return _0xfdacdc(_0x57a918,_0x270839,_0x29841b,_0x1972a0,_0xb71f84,_0x168995);},'XBeBD':_0x8c4204(0xa3),'tIKwd':_0x8c4204(0xcb),'NHLkL':_0x8c4204(0x9f),'OTwWQ':function(_0x13a9c3,_0x4899d8,_0x5f1cc4){return _0x13a9c3(_0x4899d8,_0x5f1cc4);},'qwcYj':function(_0x511ea3,_0x592572,_0x31f2c8){return _0x511ea3(_0x592572,_0x31f2c8);},'jcWMo':function(_0x51ac0e,_0x190f26){return _0x51ac0e!==_0x190f26;},'jxldc':function(_0x444c51,_0x189783){return _0x444c51===_0x189783;},'mbFOZ':_0x8c4204(0xb7),'GmpdC':'grid-profile-name','KIzao':_0x8c4204(0xc3),'kdunM':_0x8c4204(0xa7),'lRFEo':_0x8c4204(0x9c),'BDHim':function(_0x8953ff,_0x582eed){return _0x8953ff(_0x582eed);},'RopvY':function(_0x4bc89e,_0x2a254b,_0x1e4e12,_0x1a9bbd,_0x519b7f,_0x45c987,_0x4d1a7f){return _0x4bc89e(_0x2a254b,_0x1e4e12,_0x1a9bbd,_0x519b7f,_0x45c987,_0x4d1a7f);},'HhqMl':'unauthorised','IkWsB':function(_0x148d34,_0x4e6aa3,_0x3a0da0,_0x127d8e,_0x3eae76,_0x48f202,_0x2eb479){return _0x148d34(_0x4e6aa3,_0x3a0da0,_0x127d8e,_0x3eae76,_0x48f202,_0x2eb479);},'qLTKi':_0x8c4204(0x8c),'Sidgj':_0x8c4204(0xb9)};try{global_registry[_0x8c4204(0x98)]=_0xc69370[_0x8c4204(0x8a)](uuidv4);let _0x2a19a4='https://'+AG_API_URL+_0x8c4204(0xb3);_0x2b3f33['allGridProfiles']&&(_0x2a19a4=_0x8c4204(0xca)+AG_API_URL+_0x8c4204(0xd0));!fs[_0x8c4204(0xc9)](_0xc69370[_0x8c4204(0x8a)](getCredentialsPath))&&(console[_0x8c4204(0xa0)](_0xc69370['hWJzT']),await _0xc69370[_0x8c4204(0xc0)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xa4)],null,_0x2b3f33),process[_0x8c4204(0xcf)](0x1));const _0x47f9ba=JSON[_0x8c4204(0xbe)](fs['readFileSync'](_0xc69370['rzqsD'](getCredentialsPath))),_0x308208={'method':_0xc69370[_0x8c4204(0xd5)],'headers':_0xc69370[_0x8c4204(0xc7)](getAuthHeader,_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0x95)],_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0xc2)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0x95)],global_registry[_0x8c4204(0x83)]=_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0xc2)],_0xc69370[_0x8c4204(0xc0)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xba)],null,null,_0x2b3f33);const _0x42b40b=await _0xc69370[_0x8c4204(0x87)](got,_0x2a19a4,_0x308208);if(_0xc69370['jcWMo'](_0x42b40b,null)&&_0xc69370[_0x8c4204(0xb1)](_0x42b40b,undefined)&&_0xc69370['jxldc'](_0x42b40b[_0x8c4204(0xbd)],0xc8)){const _0x5512f5=JSON[_0x8c4204(0xbe)](_0x42b40b['body']);console[_0x8c4204(0xbc)](_0xc69370[_0x8c4204(0x97)]);const _0xb50ed7=[];_0xb50ed7[_0x8c4204(0xac)]([_0xc69370[_0x8c4204(0xa5)],_0xc69370['KIzao'],_0xc69370[_0x8c4204(0xab)],_0xc69370[_0x8c4204(0xbf)]]),_0x5512f5[_0x8c4204(0xcc)](_0x32ed2f=>{const _0x3c564d=_0x8c4204;_0xb50ed7[_0x3c564d(0xac)]([_0x32ed2f[_0x3c564d(0xb6)],_0x32ed2f['cloudProvider'],_0x32ed2f['region'],_0x32ed2f[_0x3c564d(0x9c)]]);}),console[_0x8c4204(0xbc)](_0xc69370[_0x8c4204(0xb4)](table,_0xb50ed7)),process['exit'](0x0);}_0xc69370[_0x8c4204(0x96)](_0x42b40b['statusCode'],0x191)&&(console[_0x8c4204(0xa0)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0xc69370[_0x8c4204(0x9b)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xb8)],null,_0x2b3f33),process['exit'](0x1)),console[_0x8c4204(0xa0)](_0x8c4204(0xc8)+JSON[_0x8c4204(0xa1)](_0x42b40b)),await _0xc69370[_0x8c4204(0xc5)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xa8)],_0x42b40b,_0x2b3f33),process[_0x8c4204(0xcf)](0x1);}catch(_0x3acdc1){console[_0x8c4204(0xa0)](_0x8c4204(0xad)+_0x3acdc1['stack']),await _0xc69370[_0x8c4204(0xc5)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0x90)],_0x3acdc1,_0x2b3f33),process[_0x8c4204(0xcf)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15_0x59a7(_0x3d9e16,_0x3afa94){const _0x58cf26=a15_0x58cf();return a15_0x59a7=function(_0x59a722,_0x402ca9){_0x59a722=_0x59a722-0x8e;let _0x6a4149=_0x58cf26[_0x59a722];return _0x6a4149;},a15_0x59a7(_0x3d9e16,_0x3afa94);}const a15_0xff0d1b=a15_0x59a7;(function(_0x782042,_0x315217){const _0x5f08c8=a15_0x59a7,_0x3a070f=_0x782042();while(!![]){try{const _0x2fb934=parseInt(_0x5f08c8(0xc5))/0x1*(-parseInt(_0x5f08c8(0x96))/0x2)+parseInt(_0x5f08c8(0xda))/0x3*(parseInt(_0x5f08c8(0xa5))/0x4)+parseInt(_0x5f08c8(0xa3))/0x5*(parseInt(_0x5f08c8(0xcd))/0x6)+parseInt(_0x5f08c8(0xd3))/0x7+-parseInt(_0x5f08c8(0xc4))/0x8+-parseInt(_0x5f08c8(0xc3))/0x9*(-parseInt(_0x5f08c8(0xba))/0xa)+-parseInt(_0x5f08c8(0xc6))/0xb;if(_0x2fb934===_0x315217)break;else _0x3a070f['push'](_0x3a070f['shift']());}catch(_0x15c3bd){_0x3a070f['push'](_0x3a070f['shift']());}}}(a15_0x58cf,0x782b0));const fs=require('fs'),got=require('got'),{table}=require(a15_0xff0d1b(0xb5)),{v4:uuidv4}=require(a15_0xff0d1b(0xb1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xff0d1b(0xe3)),{getCredentialsPath,getAuthHeader}=require(a15_0xff0d1b(0xdd)),{sendInstrumentationEvent}=require(a15_0xff0d1b(0xd2));exports[a15_0xff0d1b(0xd9)]=a15_0xff0d1b(0x9f),exports[a15_0xff0d1b(0xc9)]=a15_0xff0d1b(0xb3),exports[a15_0xff0d1b(0xbb)]=function(_0x1554fb){const _0x3c5172=a15_0xff0d1b,_0x1e1e42={};_0x1e1e42['hzYEH']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1e1e42['LcddH']=_0x3c5172(0xb8),_0x1e1e42['IzWJF']='help';const _0x50c5c4=_0x1e1e42,_0x5ada40={};_0x5ada40[_0x3c5172(0xaf)]=_0x50c5c4['hzYEH'],_0x5ada40['type']=_0x50c5c4[_0x3c5172(0xcb)];const _0x59f183={};return _0x59f183[_0x3c5172(0xde)]=_0x5ada40,_0x1554fb[_0x3c5172(0xe1)](HELP_HEADER_MESSAGE[_0x3c5172(0x9e)]['grid'])[_0x3c5172(0xd4)](HELP_FOOTER_MESSAGE)[_0x3c5172(0xb0)](_0x59f183)[_0x3c5172(0xa4)](_0x50c5c4[_0x3c5172(0xad)])[_0x3c5172(0xd6)];},exports[a15_0xff0d1b(0xb9)]=async function(_0x54e646){const _0x4afa89=a15_0xff0d1b,_0x37bcc1={'fngCj':function(_0x51ded5){return _0x51ded5();},'Tnwgb':function(_0x2bd659){return _0x2bd659();},'VCmbu':_0x4afa89(0xe0),'xoEnv':function(_0x546c4d,_0x59044a,_0x53b778,_0x277bf6,_0x1729ab,_0xe06f26,_0x4d33a4){return _0x546c4d(_0x59044a,_0x53b778,_0x277bf6,_0x1729ab,_0xe06f26,_0x4d33a4);},'CBRdq':'list-grids-called','TVIGo':_0x4afa89(0x95),'ROlaX':function(_0x2d574b){return _0x2d574b();},'GUjzi':_0x4afa89(0xb6),'PyLID':function(_0x3c00bf,_0x1d7659,_0x22386e){return _0x3c00bf(_0x1d7659,_0x22386e);},'RAgzV':function(_0x4052af,_0x58c66b){return _0x4052af!==_0x58c66b;},'pUUGp':function(_0xe8fe7e,_0x2882a8){return _0xe8fe7e!==_0x2882a8;},'AczQR':function(_0x206fe3,_0x206977){return _0x206fe3===_0x206977;},'ZQdJS':_0x4afa89(0xa8),'ZyFUg':_0x4afa89(0xa6),'TrZat':'grid-name','oRquX':_0x4afa89(0x91),'eDupQ':_0x4afa89(0xc8),'AbnOT':_0x4afa89(0x98),'KrLZr':'cluster-name','wlkcA':function(_0x4e1524,_0x385079){return _0x4e1524(_0x385079);},'HKrvr':'unauthorised','MsCkT':_0x4afa89(0xca),'cnFeg':'unknown-error'};try{global_registry[_0x4afa89(0xe2)]=_0x37bcc1[_0x4afa89(0x8f)](uuidv4);!fs['existsSync'](_0x37bcc1[_0x4afa89(0xd0)](getCredentialsPath))&&(console[_0x4afa89(0xab)](_0x37bcc1['VCmbu']),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes['ERROR'],_0x37bcc1[_0x4afa89(0xa0)],null,_0x54e646),process[_0x4afa89(0xd1)](0x1));const _0x4cf5a6=JSON[_0x4afa89(0xb2)](fs[_0x4afa89(0xa9)](_0x37bcc1[_0x4afa89(0x9a)](getCredentialsPath)));let _0x3d62ee='https://'+AG_API_URL+_0x4afa89(0xd5);_0x54e646[_0x4afa89(0xcf)]&&(_0x3d62ee=_0x4afa89(0xd7)+AG_API_URL+'/packages/cli/get-all-grids');const _0x2e1b23={'method':_0x37bcc1[_0x4afa89(0x92)],'headers':_0x37bcc1[_0x4afa89(0x8e)](getAuthHeader,_0x4cf5a6['Browserstack'][_0x4afa89(0x97)],_0x4cf5a6[_0x4afa89(0xae)][_0x4afa89(0xb7)]),'throwHttpErrors':![]};global_registry[_0x4afa89(0xbd)]=_0x4cf5a6['Browserstack'][_0x4afa89(0x97)],global_registry[_0x4afa89(0x90)]=_0x4cf5a6['Browserstack'][_0x4afa89(0xb7)],_0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes[_0x4afa89(0xc1)],null,null,_0x54e646);const _0x4eb948=await _0x37bcc1['PyLID'](got,_0x3d62ee,_0x2e1b23);if(_0x37bcc1['RAgzV'](_0x4eb948,null)&&_0x37bcc1[_0x4afa89(0xdb)](_0x4eb948,undefined)&&_0x37bcc1['AczQR'](_0x4eb948[_0x4afa89(0xbf)],0xc8)){const _0x42fbfb=JSON['parse'](_0x4eb948[_0x4afa89(0xc0)]);console[_0x4afa89(0x93)](_0x37bcc1[_0x4afa89(0xc7)]);const _0x4b0c24=[];_0x4b0c24['push']([_0x37bcc1[_0x4afa89(0xbc)],_0x37bcc1['TrZat'],_0x37bcc1[_0x4afa89(0xa1)],_0x37bcc1[_0x4afa89(0xaa)],_0x37bcc1['AbnOT'],_0x37bcc1[_0x4afa89(0xdf)]]),_0x42fbfb['forEach'](_0x2cd190=>{const _0x2fa3c8=_0x4afa89;_0x4b0c24[_0x2fa3c8(0x9b)]([_0x2cd190['id'],_0x2cd190[_0x2fa3c8(0xcc)],_0x2cd190[_0x2fa3c8(0x91)],_0x2cd190[_0x2fa3c8(0xc8)],_0x2cd190['queued'],_0x2cd190[_0x2fa3c8(0x9c)]]);}),console[_0x4afa89(0x93)](_0x37bcc1[_0x4afa89(0xdc)](table,_0x4b0c24)),process['exit'](0x0);}_0x37bcc1[_0x4afa89(0xa2)](_0x4eb948[_0x4afa89(0xbf)],0x191)&&(console[_0x4afa89(0xab)](_0x4afa89(0xb4)),await _0x37bcc1['xoEnv'](sendInstrumentationEvent,_0x54e646,_0x37bcc1['CBRdq'],messageTypes[_0x4afa89(0xbe)],_0x37bcc1['HKrvr'],null,_0x54e646),process[_0x4afa89(0xd1)](0x1)),console[_0x4afa89(0xab)](_0x4afa89(0x99)+JSON[_0x4afa89(0x9d)](_0x4eb948)),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1['CBRdq'],messageTypes[_0x4afa89(0xbe)],_0x37bcc1[_0x4afa89(0xce)],_0x4eb948,_0x54e646),process[_0x4afa89(0xd1)](0x1);}catch(_0xf56202){console['error'](_0x4afa89(0xd8)+_0xf56202[_0x4afa89(0xac)]),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes[_0x4afa89(0xbe)],_0x37bcc1[_0x4afa89(0x94)],_0xf56202,_0x54e646),process[_0x4afa89(0xd1)](0x1);}};function a15_0x58cf(){const _0x2bc9fe=['boolean','handler','1539970TXKfaT','builder','ZyFUg','bstackUsername','ERROR','statusCode','body','INFO','CBRdq','9Leeoqv','4605704QJeZub','9862NLKbHC','1378564MumozF','ZQdJS','running','desc','server-error','LcddH','name','510FdkFCw','MsCkT','allGrids','Tnwgb','exit','../../utils/instrumentationUtils','3068681zdXTJq','epilogue','/packages/cli/get-grids','argv','https://','Failed\x20to\x20list\x20resources!\x20Error:\x20','command','3UmMUkC','pUUGp','wlkcA','../../utils/utilityMethods','all-grids','KrLZr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','usage','requestId','../../config/constants','PyLID','fngCj','bstackAccesskey','status','GUjzi','log','cnFeg','init-not-called','62GRteBZ','username','queued','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ROlaX','push','clusterName','stringify','list','grids','TVIGo','oRquX','AczQR','44040HvInln','help','631628XvSZcL','grid-id','xoEnv','\x0aFound\x20the\x20following\x20grids:\x0a','readFileSync','eDupQ','error','stack','IzWJF','Browserstack','description','options','uuid','parse','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','table','GET','password'];a15_0x58cf=function(){return _0x2bc9fe;};return a15_0x58cf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x4c80eb=a16_0x3d25;function a16_0x3d25(_0x520044,_0x294ab2){const _0x2d5005=a16_0x2d50();return a16_0x3d25=function(_0x3d2514,_0x11a818){_0x3d2514=_0x3d2514-0xdd;let _0x5ed246=_0x2d5005[_0x3d2514];return _0x5ed246;},a16_0x3d25(_0x520044,_0x294ab2);}(function(_0x5a6066,_0x22b639){const _0xb75d2c=a16_0x3d25,_0x353572=_0x5a6066();while(!![]){try{const _0x51a9a1=parseInt(_0xb75d2c(0xe9))/0x1*(parseInt(_0xb75d2c(0xf2))/0x2)+parseInt(_0xb75d2c(0xf0))/0x3+-parseInt(_0xb75d2c(0xdd))/0x4+-parseInt(_0xb75d2c(0xee))/0x5*(-parseInt(_0xb75d2c(0xe3))/0x6)+parseInt(_0xb75d2c(0xe4))/0x7*(-parseInt(_0xb75d2c(0xf5))/0x8)+-parseInt(_0xb75d2c(0xe5))/0x9*(parseInt(_0xb75d2c(0xe7))/0xa)+-parseInt(_0xb75d2c(0xea))/0xb*(-parseInt(_0xb75d2c(0xe2))/0xc);if(_0x51a9a1===_0x22b639)break;else _0x353572['push'](_0x353572['shift']());}catch(_0x735779){_0x353572['push'](_0x353572['shift']());}}}(a16_0x2d50,0x99c1a));function a16_0x2d50(){const _0x1a1c02=['205392tBUQEO','14kPWPVJ','119331fGwOkD','strict','450cHaehm','help','1jeuAkd','231XNKXCz','Start\x20an\x20existing\x20Automation\x20grid.','commandDir','demandCommand','30vzWFch','oSzZp','753390OrexCd','start','1363610zlvbkO','usage','../config/constants','2576664onUMfC','1793192MnPbdn','desc','VzuoU','builder','epilogue','674616hBswNV'];a16_0x2d50=function(){return _0x1a1c02;};return a16_0x2d50();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4c80eb(0xf4));exports['command']=a16_0x4c80eb(0xf1),exports[a16_0x4c80eb(0xde)]=a16_0x4c80eb(0xeb),exports[a16_0x4c80eb(0xe0)]=function(_0x3ac656){const _0x2a038e=a16_0x4c80eb,_0x45173b={};_0x45173b[_0x2a038e(0xdf)]='start_commands',_0x45173b[_0x2a038e(0xef)]=_0x2a038e(0xe8);const _0x5e1ca0=_0x45173b;return _0x3ac656[_0x2a038e(0xf3)](HELP_HEADER_MESSAGE['start'])[_0x2a038e(0xe1)](HELP_FOOTER_MESSAGE)[_0x2a038e(0xec)](_0x5e1ca0[_0x2a038e(0xdf)])[_0x2a038e(0xed)]()['recommendCommands']()[_0x2a038e(0xe6)]()[_0x2a038e(0xe8)](_0x5e1ca0[_0x2a038e(0xef)]);},exports['handler']=function(_0x4ece71){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x20310f=a17_0x30fc;(function(_0x1062fd,_0x3fa8b9){const _0x1e1c7d=a17_0x30fc,_0x7239ce=_0x1062fd();while(!![]){try{const _0x15d739=-parseInt(_0x1e1c7d(0x1cf))/0x1+parseInt(_0x1e1c7d(0x1aa))/0x2+-parseInt(_0x1e1c7d(0x1bb))/0x3+parseInt(_0x1e1c7d(0x198))/0x4+-parseInt(_0x1e1c7d(0x18c))/0x5+-parseInt(_0x1e1c7d(0x1c4))/0x6*(-parseInt(_0x1e1c7d(0x1ca))/0x7)+parseInt(_0x1e1c7d(0x1b1))/0x8;if(_0x15d739===_0x3fa8b9)break;else _0x7239ce['push'](_0x7239ce['shift']());}catch(_0x248f70){_0x7239ce['push'](_0x7239ce['shift']());}}}(a17_0x1bc0,0xf0453));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x20310f(0x194)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x20310f(0x1b0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a17_0x20310f(0x1d1)),{scaleUpHubDeployment}=require(a17_0x20310f(0x1a0)),{sendInstrumentationEvent}=require(a17_0x20310f(0x1be)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x20310f(0x19d)),{getCloudProviderObject}=require(a17_0x20310f(0x1a2));function a17_0x1bc0(){const _0x52517a=['QHKPc','../../utils/gridComponents','command','../../cloudproviders/utils','body','start-grid-called','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','stringify','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','DABSb','Start\x20an\x20existing\x20Automation\x20grid.','33952lHQzeO','error','readFileSync','tLpeV','user','builder','../../config/constants','30151360paaebB','fetchLocalCreds','string','wspgc','WiuQy','<UsernamePlaceholder>','usage','debug','WebSocket','grid','5227512LdtsVN','parse','hpFxD','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','message','clusterName','replace','CdNus','84AwBQOO','INFO','info','connectionTimeout','server-error','stack','8288bHJOBw','gridId','password','start','YDype','556002COrgfL','vCYhE','../../utils/utilityMethods','pafVj','desc','username','ERROR','statusCode','LZRyr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Adding\x20Websocket\x20listeners','tuWRm','handler','grid-id','existsSync','ZMhiM','5114055uADitn','dIlUc','kpVgI','cloudProvider','Browserstack','name','invalid-grid-id','ndgoR','reconnecting-websocket','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rEfuR','2011968KeRJiK','Grid\x20started','description','help','EVosS','../../utils/createk8sClient','options'];a17_0x1bc0=function(){return _0x52517a;};return a17_0x1bc0();}function a17_0x30fc(_0x55eba9,_0xd6b145){const _0x1bc0bd=a17_0x1bc0();return a17_0x30fc=function(_0x30fcbd,_0x2f69b2){_0x30fcbd=_0x30fcbd-0x18b;let _0x2d22ff=_0x1bc0bd[_0x30fcbd];return _0x2d22ff;},a17_0x30fc(_0x55eba9,_0xd6b145);}exports[a17_0x20310f(0x1a1)]=a17_0x20310f(0x1ba),exports[a17_0x20310f(0x1d3)]=a17_0x20310f(0x1a9),exports[a17_0x20310f(0x1af)]=function(_0x342b45){const _0xd90e7d=a17_0x20310f,_0x4155c0={};_0x4155c0['DABSb']=_0xd90e7d(0x1bf),_0x4155c0[_0xd90e7d(0x18e)]=_0xd90e7d(0x1b3),_0x4155c0[_0xd90e7d(0x19f)]=_0xd90e7d(0x19b);const _0x10146f=_0x4155c0,_0x408504={};_0x408504[_0xd90e7d(0x19a)]=_0x10146f[_0xd90e7d(0x1a8)],_0x408504['type']=_0x10146f[_0xd90e7d(0x18e)];const _0x70a0c6={};return _0x70a0c6[_0xd90e7d(0x1dc)]=_0x408504,_0x342b45[_0xd90e7d(0x1b7)](HELP_HEADER_MESSAGE[_0xd90e7d(0x1cd)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xd90e7d(0x19e)](_0x70a0c6)[_0xd90e7d(0x19b)](_0x10146f['QHKPc'])['argv'];},exports[a17_0x20310f(0x1db)]=async function(_0x486c75){const _0x4f13b3=a17_0x20310f,_0x45b102={'wspgc':_0x4f13b3(0x1a7),'WiuQy':function(_0x3640fd){return _0x3640fd();},'wLJyt':_0x4f13b3(0x196),'pafVj':function(_0x1e8d5b,_0x7647c6,_0x2bdeb8,_0x3166c9,_0x539429,_0x3a1998,_0xcc9c37){return _0x1e8d5b(_0x7647c6,_0x2bdeb8,_0x3166c9,_0x539429,_0x3a1998,_0xcc9c37);},'EVosS':_0x4f13b3(0x1a4),'tuWRm':'init-not-called','CdNus':_0x4f13b3(0x1b6),'tLpeV':'<PasswordPlaceholder>','QVfiu':_0x4f13b3(0x1d9),'NLcCJ':function(_0x42c2c0,_0x1da3c9,_0x906539,_0x56b23f){return _0x42c2c0(_0x1da3c9,_0x906539,_0x56b23f);},'YDype':function(_0x17e923,_0x6f1c8e,_0xb77a28,_0x2ab029,_0x4dfc18,_0x118398,_0x1688a5){return _0x17e923(_0x6f1c8e,_0xb77a28,_0x2ab029,_0x4dfc18,_0x118398,_0x1688a5);},'rEfuR':function(_0x4ba1ae,_0x310ad5){return _0x4ba1ae(_0x310ad5);},'dIlUc':function(_0x2b3972,_0x532c77,_0x1a0512){return _0x2b3972(_0x532c77,_0x1a0512);},'ZMhiM':_0x4f13b3(0x199),'iobCQ':function(_0x3fd73b,_0x477f17){return _0x3fd73b===_0x477f17;},'ibJWV':'unauthorised','LZRyr':function(_0x2b7c32,_0x2d5f09){return _0x2b7c32===_0x2d5f09;},'vCYhE':_0x4f13b3(0x192),'ndgoR':function(_0x454538,_0x3ed013,_0x57d158,_0x36c134,_0x4853be,_0x2cbcc0,_0x8e4cd){return _0x454538(_0x3ed013,_0x57d158,_0x36c134,_0x4853be,_0x2cbcc0,_0x8e4cd);},'hpFxD':_0x4f13b3(0x1c8)};let _0x46b2bd;try{!_0x486c75[_0x4f13b3(0x1cb)]&&(logger['error'](_0x45b102[_0x4f13b3(0x1b4)]),process[_0x4f13b3(0x195)](0x1));!fs[_0x4f13b3(0x1dd)](_0x45b102['WiuQy'](getCredentialsPath))&&(logger[_0x4f13b3(0x1ab)](_0x45b102['wLJyt']),await _0x45b102['pafVj'](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1d5)],_0x45b102[_0x4f13b3(0x1da)],null,_0x486c75),process[_0x4f13b3(0x195)](0x1));logger[_0x4f13b3(0x1c6)]('Starting\x20grid\x20'+_0x486c75['gridId']),await _0x45b102[_0x4f13b3(0x1d2)](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1c5)],null,null,_0x486c75);const _0x495902=JSON[_0x4f13b3(0x1bc)](fs[_0x4f13b3(0x1ac)](_0x45b102[_0x4f13b3(0x1b5)](getCredentialsPath)));global_registry['bstackUsername']=_0x495902[_0x4f13b3(0x190)][_0x4f13b3(0x1d4)],global_registry['bstackAccesskey']=_0x495902[_0x4f13b3(0x190)][_0x4f13b3(0x1cc)];const _0x1069a6=WS_ENDPOINT[_0x4f13b3(0x1c2)](_0x45b102[_0x4f13b3(0x1c3)],_0x495902['Browserstack']['username'])['replace'](_0x45b102[_0x4f13b3(0x1ad)],_0x495902[_0x4f13b3(0x190)][_0x4f13b3(0x1cc)]),_0x5d64ab={};_0x5d64ab[_0x4f13b3(0x1b9)]=ws,_0x5d64ab[_0x4f13b3(0x1c7)]=0x36ee80,_0x46b2bd=new ReconnectingWebSocket(_0x1069a6,[],_0x5d64ab),logger[_0x4f13b3(0x1b8)](_0x45b102['QVfiu']),webSocketUtils['addListeners'](_0x46b2bd,_0x486c75[_0x4f13b3(0x1ae)],_0x486c75['password']);const [_0x3d9b61,_0x2d6a84]=await _0x45b102['NLcCJ'](getGridDetails,_0x495902[_0x4f13b3(0x190)]['username'],_0x495902['Browserstack'][_0x4f13b3(0x1cc)],_0x486c75['gridId']);if(_0x2d6a84){const _0x2872ad=_0x2d6a84[_0x4f13b3(0x1c6)];global_registry[_0x4f13b3(0x18f)]=_0x2872ad[_0x4f13b3(0x18f)],global_registry['clusterRegion']=_0x2872ad['region'],global_registry['clusterName']=_0x2872ad['clusterName'];const _0x4e60ef=await _0x45b102[_0x4f13b3(0x1ce)](getCloudProviderObject,_0x2872ad[_0x4f13b3(0x18f)],_0x2872ad[_0x4f13b3(0x1c1)],_0x2872ad[_0x4f13b3(0x191)],_0x46b2bd,webSocketUtils,_0x486c75),_0x2bfb1e=_0x495902[_0x4f13b3(0x18f)]||{};await _0x4e60ef[_0x4f13b3(0x1b2)](_0x2bfb1e),_0x4e60ef['configureIfNotConfigured']();const [_0xd72d23,_0x5b0561,_0x40ef0d,_0x3da8d8,_0x1805cc,_0x5f396a]=await _0x45b102[_0x4f13b3(0x197)](createK8sClient,_0x4e60ef);await _0x45b102[_0x4f13b3(0x18d)](scaleUpHubDeployment,_0x5b0561,_0x2872ad[_0x4f13b3(0x191)]),logger[_0x4f13b3(0x1c6)](_0x45b102[_0x4f13b3(0x18b)]),process[_0x4f13b3(0x195)](0x0);}_0x45b102['iobCQ'](_0x3d9b61[_0x4f13b3(0x1d6)],0x191)&&(logger['error'](_0x4f13b3(0x1d8)),await _0x45b102[_0x4f13b3(0x1ce)](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1d5)],_0x45b102['ibJWV'],null,_0x486c75),process['exit'](0x1)),_0x45b102[_0x4f13b3(0x1d7)](_0x3d9b61['statusCode'],0x190)&&(logger[_0x4f13b3(0x1ab)](JSON[_0x4f13b3(0x1bc)](_0x3d9b61[_0x4f13b3(0x1a3)])[_0x4f13b3(0x1c0)]),await _0x45b102[_0x4f13b3(0x1ce)](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1d5)],_0x45b102[_0x4f13b3(0x1d0)],null,_0x486c75),process[_0x4f13b3(0x195)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4f13b3(0x1a6)](_0x3d9b61)),await _0x45b102[_0x4f13b3(0x193)](sendInstrumentationEvent,_0x486c75,_0x45b102['EVosS'],messageTypes[_0x4f13b3(0x1d5)],_0x45b102[_0x4f13b3(0x1bd)],_0x3d9b61,_0x486c75),process[_0x4f13b3(0x195)](0x1);}catch(_0x684348){const _0x100814=_0x4f13b3(0x1a5)+_0x684348+'\x20\x0a'+JSON[_0x4f13b3(0x1a6)](_0x684348[_0x4f13b3(0x1c9)])+'\x20';logger[_0x4f13b3(0x1ab)](_0x100814),process[_0x4f13b3(0x195)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a18_0x14ee(_0x52ae29,_0xdeee2d){const _0x50d5f0=a18_0x50d5();return a18_0x14ee=function(_0x14eea6,_0x2acb89){_0x14eea6=_0x14eea6-0x110;let _0x23bc7a=_0x50d5f0[_0x14eea6];return _0x23bc7a;},a18_0x14ee(_0x52ae29,_0xdeee2d);}const a18_0x2fa25d=a18_0x14ee;(function(_0x1afe65,_0x64f89e){const _0x59b607=a18_0x14ee,_0x359bfd=_0x1afe65();while(!![]){try{const _0x114e9f=parseInt(_0x59b607(0x111))/0x1+-parseInt(_0x59b607(0x11a))/0x2*(-parseInt(_0x59b607(0x119))/0x3)+-parseInt(_0x59b607(0x117))/0x4+-parseInt(_0x59b607(0x123))/0x5+-parseInt(_0x59b607(0x11e))/0x6+parseInt(_0x59b607(0x122))/0x7*(parseInt(_0x59b607(0x114))/0x8)+parseInt(_0x59b607(0x110))/0x9;if(_0x114e9f===_0x64f89e)break;else _0x359bfd['push'](_0x359bfd['shift']());}catch(_0x40484d){_0x359bfd['push'](_0x359bfd['shift']());}}}(a18_0x50d5,0xeec40));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2fa25d(0x124));function a18_0x50d5(){const _0x5499aa=['154642fsLKHs','strict','recommendCommands','stop','4645452zMaOiY','epilogue','builder','demandCommand','259YqvyOA','3397485XayDOS','../config/constants','usage','4940820bkNaxH','1032578VlPDxH','HSjpw','stop_commands','417464UaNbyr','help','desc','5559560TMMguZ','command','12SaWtyB'];a18_0x50d5=function(){return _0x5499aa;};return a18_0x50d5();}exports[a18_0x2fa25d(0x118)]=a18_0x2fa25d(0x11d),exports[a18_0x2fa25d(0x116)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a18_0x2fa25d(0x120)]=function(_0x149db4){const _0x2e4957=a18_0x2fa25d,_0x350b8d={};_0x350b8d['JcHdY']=_0x2e4957(0x113),_0x350b8d[_0x2e4957(0x112)]='help';const _0x13b603=_0x350b8d;return _0x149db4[_0x2e4957(0x125)](HELP_HEADER_MESSAGE['stop'])[_0x2e4957(0x11f)](HELP_FOOTER_MESSAGE)['commandDir'](_0x13b603['JcHdY'])[_0x2e4957(0x121)]()[_0x2e4957(0x11c)]()[_0x2e4957(0x11b)]()[_0x2e4957(0x115)](_0x13b603[_0x2e4957(0x112)]);},exports['handler']=function(_0x17bf2e){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x5f41a8=a19_0x3197;(function(_0x35cd79,_0x2a242f){const _0x46a430=a19_0x3197,_0x352570=_0x35cd79();while(!![]){try{const _0x5050a4=parseInt(_0x46a430(0x1b3))/0x1+parseInt(_0x46a430(0x1f0))/0x2*(parseInt(_0x46a430(0x1f1))/0x3)+-parseInt(_0x46a430(0x1de))/0x4+-parseInt(_0x46a430(0x1ea))/0x5+-parseInt(_0x46a430(0x1e7))/0x6*(-parseInt(_0x46a430(0x1c6))/0x7)+parseInt(_0x46a430(0x1fe))/0x8+-parseInt(_0x46a430(0x1cc))/0x9;if(_0x5050a4===_0x2a242f)break;else _0x352570['push'](_0x352570['shift']());}catch(_0x2b5c27){_0x352570['push'](_0x352570['shift']());}}}(a19_0x2c22,0x4ca9b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5f41a8(0x1b5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x5f41a8(0x1fc)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x5f41a8(0x1ee)),webSocketUtils=require(a19_0x5f41a8(0x1d9)),{createK8sClient}=require(a19_0x5f41a8(0x1fa)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x2c22(){const _0x5a6c1b=['connectionTimeout','unauthorised','Xmvaz','Stop\x20a\x20running\x20Automation\x20grid.','PEZfe','stack','../../utils/webSocketUtils','gridId','ERROR','<PasswordPlaceholder>','existsSync','423468KKEUPS','stop','info','debug','desc','password','bstackAccesskey','NeniO','grid-id','672FQoszH','argv','Grid\x20stoppped.','719145jtbaFZ','clusterName','invalid-grid-id','usage','../../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','4CbYSaw','190317VUlIGk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','wxbDg','aBuWj','server-error','type','QIqHE','NlxbT','options','../../utils/createk8sClient','bstackUsername','../../utils/utilityMethods','Browserstack','1547472rIhWek','message','description','WebSocket','region','stop-grid-called','configureIfNotConfigured','INFO','help','<UsernamePlaceholder>','exit','XkKHq','448072lVQSxV','handler','reconnecting-websocket','AEDOd','error','grid','username','parse','statusCode','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','lwmzy','addListeners','Adding\x20Websocket\x20listeners','clusterRegion','name','XDaKg','fYejO','qGQIs','YHAxQ','4844TqBnhX','HdXMQ','sBjCF','command','cloudProvider','Stopping\x20grid\x20','2539629CxwMsu','readFileSync','stringify','PDvGI','body','replace','string'];a19_0x2c22=function(){return _0x5a6c1b;};return a19_0x2c22();}function a19_0x3197(_0x176cb2,_0x3db6c4){const _0x2c2282=a19_0x2c22();return a19_0x3197=function(_0x3197ed,_0x170c94){_0x3197ed=_0x3197ed-0x1ac;let _0x214abb=_0x2c2282[_0x3197ed];return _0x214abb;},a19_0x3197(_0x176cb2,_0x3db6c4);}exports[a19_0x5f41a8(0x1c9)]=a19_0x5f41a8(0x1b8),exports[a19_0x5f41a8(0x1e2)]=a19_0x5f41a8(0x1d6),exports['builder']=function(_0x44561f){const _0x4e940b=a19_0x5f41a8,_0x59d83a={};_0x59d83a[_0x4e940b(0x1f8)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x59d83a[_0x4e940b(0x1f7)]=_0x4e940b(0x1d2),_0x59d83a[_0x4e940b(0x1b6)]=_0x4e940b(0x1af);const _0x1df1a5=_0x59d83a,_0x562c20={};_0x562c20[_0x4e940b(0x200)]=_0x1df1a5[_0x4e940b(0x1f8)],_0x562c20[_0x4e940b(0x1f6)]=_0x1df1a5['QIqHE'];const _0x1edc22={};return _0x1edc22[_0x4e940b(0x1e6)]=_0x562c20,_0x44561f[_0x4e940b(0x1ed)](HELP_HEADER_MESSAGE[_0x4e940b(0x1df)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4e940b(0x1f9)](_0x1edc22)[_0x4e940b(0x1af)](_0x1df1a5[_0x4e940b(0x1b6)])[_0x4e940b(0x1e8)];},exports[a19_0x5f41a8(0x1b4)]=async function(_0x5e5ae1){const _0x4274a1=a19_0x5f41a8,_0x155814={'XkKHq':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Xmvaz':function(_0xdadee6){return _0xdadee6();},'vPrKT':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sBjCF':function(_0x3cd082,_0x2684a9,_0x342da3,_0xc64b7c,_0x2bfd44,_0x49ba71,_0x34fbd1){return _0x3cd082(_0x2684a9,_0x342da3,_0xc64b7c,_0x2bfd44,_0x49ba71,_0x34fbd1);},'wxbDg':_0x4274a1(0x1ac),'fxfsC':'init-not-called','PDvGI':function(_0x12346b){return _0x12346b();},'RpmHh':_0x4274a1(0x1b0),'mpZmX':_0x4274a1(0x1dc),'qGQIs':_0x4274a1(0x1bf),'fYejO':function(_0x172fba,_0x3e909c,_0x495247,_0x73d2ee){return _0x172fba(_0x3e909c,_0x495247,_0x73d2ee);},'NeniO':function(_0x6e5c0,_0xa16024,_0x4e6db9,_0x5e50ab,_0x55790c,_0x233f29,_0x3d321d){return _0x6e5c0(_0xa16024,_0x4e6db9,_0x5e50ab,_0x55790c,_0x233f29,_0x3d321d);},'TmMFJ':function(_0x2f3214,_0x535177){return _0x2f3214(_0x535177);},'PEZfe':function(_0x2a5e05,_0x175a6a,_0x3db9df){return _0x2a5e05(_0x175a6a,_0x3db9df);},'xtpRj':_0x4274a1(0x1e9),'YHAxQ':function(_0x2af772,_0x2932da){return _0x2af772===_0x2932da;},'HdXMQ':_0x4274a1(0x1d4),'aBuWj':function(_0x3c51d9,_0x362198){return _0x3c51d9===_0x362198;},'XDaKg':_0x4274a1(0x1ec),'PWWYI':function(_0x3508ef,_0x338a75,_0xf3ad7b,_0x5e37f3,_0x163778,_0x20db61,_0x139b26){return _0x3508ef(_0x338a75,_0xf3ad7b,_0x5e37f3,_0x163778,_0x20db61,_0x139b26);},'lwmzy':_0x4274a1(0x1f5)};let _0x177f43;try{!_0x5e5ae1['gridId']&&(logger[_0x4274a1(0x1b7)](_0x155814[_0x4274a1(0x1b2)]),process[_0x4274a1(0x1b1)](0x1));!fs[_0x4274a1(0x1dd)](_0x155814[_0x4274a1(0x1d5)](getCredentialsPath))&&(logger[_0x4274a1(0x1b7)](_0x155814['vPrKT']),await _0x155814[_0x4274a1(0x1c8)](sendInstrumentationEvent,_0x5e5ae1,_0x155814[_0x4274a1(0x1f3)],messageTypes['ERROR'],_0x155814['fxfsC'],null,_0x5e5ae1),process['exit'](0x1));logger[_0x4274a1(0x1e0)](_0x4274a1(0x1cb)+_0x5e5ae1['gridId']),await _0x155814[_0x4274a1(0x1c8)](sendInstrumentationEvent,_0x5e5ae1,_0x155814[_0x4274a1(0x1f3)],messageTypes[_0x4274a1(0x1ae)],null,null,_0x5e5ae1);const _0x5e9bae=JSON['parse'](fs[_0x4274a1(0x1cd)](_0x155814[_0x4274a1(0x1cf)](getCredentialsPath)));global_registry[_0x4274a1(0x1fb)]=_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1b9)],global_registry[_0x4274a1(0x1e4)]=_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1e3)];const _0x3943fe=WS_ENDPOINT[_0x4274a1(0x1d1)](_0x155814['RpmHh'],_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1b9)])[_0x4274a1(0x1d1)](_0x155814['mpZmX'],_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1e3)]),_0x10a318={};_0x10a318[_0x4274a1(0x201)]=ws,_0x10a318[_0x4274a1(0x1d3)]=0x36ee80,_0x177f43=new ReconnectingWebSocket(_0x3943fe,[],_0x10a318),logger[_0x4274a1(0x1e1)](_0x155814[_0x4274a1(0x1c4)]),webSocketUtils[_0x4274a1(0x1be)](_0x177f43,_0x5e5ae1['user'],_0x5e5ae1[_0x4274a1(0x1e3)]);const [_0x53bbf6,_0x49bdf3]=await _0x155814[_0x4274a1(0x1c3)](getGridDetails,_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1b9)],_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1e3)],_0x5e5ae1[_0x4274a1(0x1da)]);if(_0x49bdf3){const _0xe68f5f=_0x49bdf3[_0x4274a1(0x1e0)];global_registry[_0x4274a1(0x1ca)]=_0xe68f5f[_0x4274a1(0x1ca)],global_registry[_0x4274a1(0x1c0)]=_0xe68f5f[_0x4274a1(0x202)],global_registry[_0x4274a1(0x1eb)]=_0xe68f5f[_0x4274a1(0x1eb)];const _0x376350=await _0x155814[_0x4274a1(0x1e5)](getCloudProviderObject,_0xe68f5f['cloudProvider'],_0xe68f5f[_0x4274a1(0x1eb)],_0xe68f5f['name'],_0x177f43,webSocketUtils,_0x5e5ae1),_0x27ef82=_0x5e9bae[_0x4274a1(0x1ca)]||{};await _0x376350['fetchLocalCreds'](_0x27ef82),_0x376350[_0x4274a1(0x1ad)]();const [_0x13abc7,_0x3b56d8,_0x3d33d8,_0x386bf3,_0x1324cb,_0x32212c]=await _0x155814['TmMFJ'](createK8sClient,_0x376350);await _0x155814[_0x4274a1(0x1d7)](scaleDownHubDeployment,_0x3b56d8,_0xe68f5f[_0x4274a1(0x1c1)]),logger[_0x4274a1(0x1e0)](_0x155814['xtpRj']),process[_0x4274a1(0x1b1)](0x0);}_0x155814[_0x4274a1(0x1c5)](_0x53bbf6[_0x4274a1(0x1bb)],0x191)&&(logger['error'](_0x4274a1(0x1f2)),await _0x155814[_0x4274a1(0x1e5)](sendInstrumentationEvent,_0x5e5ae1,_0x155814[_0x4274a1(0x1f3)],messageTypes[_0x4274a1(0x1db)],_0x155814[_0x4274a1(0x1c7)],null,_0x5e5ae1),process[_0x4274a1(0x1b1)](0x1)),_0x155814[_0x4274a1(0x1f4)](_0x53bbf6[_0x4274a1(0x1bb)],0x190)&&(logger[_0x4274a1(0x1b7)](JSON[_0x4274a1(0x1ba)](_0x53bbf6[_0x4274a1(0x1d0)])[_0x4274a1(0x1ff)]),await _0x155814[_0x4274a1(0x1e5)](sendInstrumentationEvent,_0x5e5ae1,_0x155814['wxbDg'],messageTypes[_0x4274a1(0x1db)],_0x155814[_0x4274a1(0x1c2)],null,_0x5e5ae1),process[_0x4274a1(0x1b1)](0x1)),logger[_0x4274a1(0x1b7)](_0x4274a1(0x1ef)+JSON['stringify'](_0x53bbf6)),await _0x155814['PWWYI'](sendInstrumentationEvent,_0x5e5ae1,_0x155814['wxbDg'],messageTypes['ERROR'],_0x155814[_0x4274a1(0x1bd)],_0x53bbf6,_0x5e5ae1),process[_0x4274a1(0x1b1)](0x1);}catch(_0x1c03fc){const _0x27f7ed=_0x4274a1(0x1bc)+_0x1c03fc+'\x20\x0a'+JSON[_0x4274a1(0x1ce)](_0x1c03fc[_0x4274a1(0x1d8)])+'\x20';logger[_0x4274a1(0x1b7)](_0x27f7ed),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a20_0x501e5f=a20_0x5b39;(function(_0x416da9,_0x5e4695){var _0x5c37a8=a20_0x5b39,_0x26c5c4=_0x416da9();while(!![]){try{var _0x495aab=parseInt(_0x5c37a8(0x1d7))/0x1*(-parseInt(_0x5c37a8(0x1cc))/0x2)+-parseInt(_0x5c37a8(0x189))/0x3*(parseInt(_0x5c37a8(0x1ce))/0x4)+parseInt(_0x5c37a8(0x18d))/0x5+-parseInt(_0x5c37a8(0x19b))/0x6+-parseInt(_0x5c37a8(0x1ab))/0x7*(parseInt(_0x5c37a8(0x1a4))/0x8)+parseInt(_0x5c37a8(0x1bb))/0x9*(parseInt(_0x5c37a8(0x199))/0xa)+parseInt(_0x5c37a8(0x1d1))/0xb;if(_0x495aab===_0x5e4695)break;else _0x26c5c4['push'](_0x26c5c4['shift']());}catch(_0x2e8a25){_0x26c5c4['push'](_0x26c5c4['shift']());}}}(a20_0x3cd1,0x288b1),require('dotenv')['config'](),exports[a20_0x501e5f(0x1ba)]=process[a20_0x501e5f(0x1c7)][a20_0x501e5f(0x1ba)]||'grid.browserstack.com',exports[a20_0x501e5f(0x1c0)]=process[a20_0x501e5f(0x1c7)][a20_0x501e5f(0x1c0)]||a20_0x501e5f(0x1ca),exports['AG_API_URL']=process[a20_0x501e5f(0x1c7)]['AG_API_URL']||'grid-api.browserstack.com',exports[a20_0x501e5f(0x1b1)]=a20_0x501e5f(0x1c3)+this[a20_0x501e5f(0x1ae)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a20_0x501e5f(0x19d)]=a20_0x501e5f(0x1a1),exports['IAM_USER_NAME']=a20_0x501e5f(0x1a2),exports[a20_0x501e5f(0x1a8)]=a20_0x501e5f(0x1d4),exports[a20_0x501e5f(0x1c2)]=a20_0x501e5f(0x184),exports[a20_0x501e5f(0x1b6)]=a20_0x501e5f(0x197),exports[a20_0x501e5f(0x19f)]=a20_0x501e5f(0x18b),exports[a20_0x501e5f(0x1a6)]=a20_0x501e5f(0x1d5),exports['AZURE']='azure',exports['GCP']=a20_0x501e5f(0x1d3));var a20_0x2661d5={};a20_0x2661d5[a20_0x501e5f(0x196)]='browserstack:managedBy',a20_0x2661d5[a20_0x501e5f(0x1c5)]='BrowserStack';var a20_0x520f5b={};a20_0x520f5b[a20_0x501e5f(0x196)]=a20_0x501e5f(0x1cf),a20_0x520f5b[a20_0x501e5f(0x1c5)]=a20_0x501e5f(0x1b7),exports[a20_0x501e5f(0x1b5)]=[a20_0x2661d5,a20_0x520f5b];var a20_0x190a17={};function a20_0x5b39(_0x4a8087,_0x32f246){var _0x3cd1c4=a20_0x3cd1();return a20_0x5b39=function(_0x5b39be,_0x238ce6){_0x5b39be=_0x5b39be-0x183;var _0x41d671=_0x3cd1c4[_0x5b39be];return _0x41d671;},a20_0x5b39(_0x4a8087,_0x32f246);}a20_0x190a17[a20_0x501e5f(0x194)]='BrowserStack',a20_0x190a17[a20_0x501e5f(0x1cf)]=a20_0x501e5f(0x1b7),exports[a20_0x501e5f(0x1a7)]=a20_0x190a17,exports[a20_0x501e5f(0x188)]=[this[a20_0x501e5f(0x1c2)]];var a20_0xc6c0f5={};a20_0xc6c0f5[a20_0x501e5f(0x190)]=a20_0x501e5f(0x1bc),a20_0xc6c0f5[a20_0x501e5f(0x1bf)]=a20_0x501e5f(0x1ad),a20_0xc6c0f5['GRID_URL']='gridUrl',a20_0xc6c0f5[a20_0x501e5f(0x1a3)]=a20_0x501e5f(0x1d0),a20_0xc6c0f5[a20_0x501e5f(0x183)]=a20_0x501e5f(0x185),exports[a20_0x501e5f(0x1cb)]=a20_0xc6c0f5,exports['global_registry']={},exports[a20_0x501e5f(0x1c6)]=a20_0x501e5f(0x1d2);function a20_0x3cd1(){var _0x33fcc5=['high-scale-grid','browserstack-turboscale-grid','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','2oXUndh','unknown','CLI_RUN_FINISHED','aws','cliRunFinished','gridProfile','create','SUPPORTED_CLOUD_PROVIDERS','5574RsMomT','connect','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','20090TLxoIx','WARNING','ERROR','LOG','error','warning','CLI_ARGS_REGEX','browserstack:managedBy','grid','Key','BSTACK-ATS-CLUSTER','NULL','40eEzrHg','[REDACTED]','465756pzVTqK','SUCCESS','CP_CONFIG_FILE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLUSTER_AUTOSCALER_STACK_NAME','delete','credentials','BrowserStackIAMUser','CLI_RUN_STARTED','8OZlywl','start','TURBOSCALE_DEPLOYMENT','HST_CLUSTER_TAGS','DEFAULT_GRID_NAME','root','REDACTED','1684417IWggCo','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','resourceInfo','AG_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','WS_ENDPOINT','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','RAW_ARGS_REGEX','COMMON_HST_TAGS','CLUSTER_DEP_STACK_NAME','BrowserStack-Automate-TurboScale','info','messageTypes','DASHBOARD_ENDPOINT','506799nMCEHR','log','init','list','RESOURCES','BS_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','AWS','wss://','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','Value','LINK_MESSAGE','env','HELP_FOOTER_MESSAGE','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','api.browserstack.com','WS_EVENTS','105724QPmhma','configure','424NMpydG','browserstack:service','cliRunStarted','6135052fsruPx','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','gcp'];a20_0x3cd1=function(){return _0x33fcc5;};return a20_0x3cd1();}var a20_0x1aa6de={};a20_0x1aa6de[a20_0x501e5f(0x1a9)]=a20_0x501e5f(0x1d6)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1bd)]=a20_0x501e5f(0x1b3)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1cd)]=a20_0x501e5f(0x1c1)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x187)]=a20_0x501e5f(0x1b0)+this['LINK_MESSAGE'],a20_0x1aa6de[a20_0x501e5f(0x1be)]={},a20_0x1aa6de[a20_0x501e5f(0x1a0)]=a20_0x501e5f(0x1b2)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x18a)]=a20_0x501e5f(0x1ac)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1a5)]=a20_0x501e5f(0x1c9)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de['stop']=a20_0x501e5f(0x19e)+this['LINK_MESSAGE'],a20_0x1aa6de[a20_0x501e5f(0x1be)]['root']=a20_0x501e5f(0x1af)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1be)][a20_0x501e5f(0x195)]=a20_0x501e5f(0x1c4)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1be)][a20_0x501e5f(0x186)]=a20_0x501e5f(0x18c)+this[a20_0x501e5f(0x1c6)],exports['HELP_HEADER_MESSAGE']=a20_0x1aa6de,exports[a20_0x501e5f(0x1c8)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';var a20_0x26cc94={};a20_0x26cc94[a20_0x501e5f(0x19c)]='success',a20_0x26cc94[a20_0x501e5f(0x18f)]=a20_0x501e5f(0x191),a20_0x26cc94['INFO']=a20_0x501e5f(0x1b8),a20_0x26cc94[a20_0x501e5f(0x18e)]=a20_0x501e5f(0x192),a20_0x26cc94['UNKNOWN']=a20_0x501e5f(0x1d8),a20_0x26cc94[a20_0x501e5f(0x198)]=null,exports[a20_0x501e5f(0x1b9)]=a20_0x26cc94,exports[a20_0x501e5f(0x193)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x501e5f(0x1b4)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x501e5f(0x1aa)]=a20_0x501e5f(0x19a);
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x1ff11f=a21_0x2ca4;(function(_0x358425,_0x3dea73){const _0x49055f=a21_0x2ca4,_0x46e7e0=_0x358425();while(!![]){try{const _0x11ea66=-parseInt(_0x49055f(0xff))/0x1*(-parseInt(_0x49055f(0xf6))/0x2)+-parseInt(_0x49055f(0xf7))/0x3+parseInt(_0x49055f(0x10b))/0x4+-parseInt(_0x49055f(0x10a))/0x5+parseInt(_0x49055f(0xf4))/0x6+parseInt(_0x49055f(0x108))/0x7+-parseInt(_0x49055f(0x103))/0x8;if(_0x11ea66===_0x3dea73)break;else _0x46e7e0['push'](_0x46e7e0['shift']());}catch(_0x12638d){_0x46e7e0['push'](_0x46e7e0['shift']());}}}(a21_0x406f,0x73aba));const winston=require(a21_0x1ff11f(0xfc)),fs=require('fs'),path=require(a21_0x1ff11f(0xfe)),logDir=a21_0x1ff11f(0xf9);!fs[a21_0x1ff11f(0x100)](logDir)&&fs['mkdirSync'](logDir);const a21_0xc811bc={};a21_0xc811bc[a21_0x1ff11f(0xf3)]='YYYY-MM-DD\x20HH:mm:ss';const a21_0x4b52db={};function a21_0x406f(){const _0x4b9645=['createLogger','colorize','format','2441940UzZCAe','fileLogger','46uLOyQI','1464507fiFdtq','message','log','timestamp','debug','winston','\x20-\x20','path','6896ZNLnNq','existsSync','console.info','usage.log','1454536nyZhOF','printf','name','join','events.log','2835602SFhJVX','combine','562160JguzCo','1142080DynEuT','File','transports','logger','level'];a21_0x406f=function(){return _0x4b9645;};return a21_0x406f();}a21_0x4b52db[a21_0x1ff11f(0x10f)]=!![];const a21_0x201229={};a21_0x201229[a21_0x1ff11f(0x105)]=a21_0x1ff11f(0x101),exports[a21_0x1ff11f(0x10e)]=new winston[(a21_0x1ff11f(0x110))]({'format':winston[a21_0x1ff11f(0xf3)][a21_0x1ff11f(0x109)](winston[a21_0x1ff11f(0xf3)]['timestamp'](a21_0xc811bc),winston[a21_0x1ff11f(0xf3)][a21_0x1ff11f(0x111)](a21_0x4b52db),winston['format'][a21_0x1ff11f(0x104)](_0x9770c1=>_0x9770c1[a21_0x1ff11f(0xfa)]+a21_0x1ff11f(0xfd)+_0x9770c1['level']+':\x20'+_0x9770c1[a21_0x1ff11f(0xf8)])),'transports':[new winston[(a21_0x1ff11f(0x10d))]['Console'](a21_0x201229),new winston['transports'][(a21_0x1ff11f(0x10c))]({'filename':path[a21_0x1ff11f(0x106)](logDir,a21_0x1ff11f(0x107)),'level':a21_0x1ff11f(0xfb)})]});function a21_0x2ca4(_0x17555b,_0x1d2ef1){const _0x406fcf=a21_0x406f();return a21_0x2ca4=function(_0x2ca474,_0x3c018a){_0x2ca474=_0x2ca474-0xf3;let _0x17aaf7=_0x406fcf[_0x2ca474];return _0x17aaf7;},a21_0x2ca4(_0x17555b,_0x1d2ef1);}const winstonFileLoggerParams={'transports':[new winston[(a21_0x1ff11f(0x10d))][(a21_0x1ff11f(0x10c))]({'filename':path[a21_0x1ff11f(0x106)](logDir,a21_0x1ff11f(0x102)),'level':'debug'})]};exports[a21_0x1ff11f(0xf5)]=new winston[(a21_0x1ff11f(0x110))](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_0x3adde8=a22_0x5cd7;(function(_0xdb89bf,_0x5303ed){const _0x2fd3f5=a22_0x5cd7,_0x299906=_0xdb89bf();while(!![]){try{const _0x3ff11b=-parseInt(_0x2fd3f5(0x8a))/0x1+-parseInt(_0x2fd3f5(0x85))/0x2*(parseInt(_0x2fd3f5(0x79))/0x3)+-parseInt(_0x2fd3f5(0x82))/0x4+parseInt(_0x2fd3f5(0x86))/0x5+parseInt(_0x2fd3f5(0x77))/0x6*(-parseInt(_0x2fd3f5(0x7f))/0x7)+-parseInt(_0x2fd3f5(0x7e))/0x8+parseInt(_0x2fd3f5(0x87))/0x9*(parseInt(_0x2fd3f5(0x81))/0xa);if(_0x3ff11b===_0x5303ed)break;else _0x299906['push'](_0x299906['shift']());}catch(_0x131f41){_0x299906['push'](_0x299906['shift']());}}}(a22_0xe0dc,0x4aabb));function a22_0x5cd7(_0x2f29bb,_0x270ea8){const _0xe0dc89=a22_0xe0dc();return a22_0x5cd7=function(_0x5cd787,_0x32fdcf){_0x5cd787=_0x5cd787-0x76;let _0x3f7086=_0xe0dc89[_0x5cd787];return _0x3f7086;},a22_0x5cd7(_0x2f29bb,_0x270ea8);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x3adde8(0x88));process['env'][a22_0x3adde8(0x76)]=0x1;function run(_0x164ee5){const _0xfe38ba=a22_0x3adde8,_0x130023={};_0x130023[_0xfe38ba(0x78)]=_0xfe38ba(0x8b),_0x130023[_0xfe38ba(0x89)]=_0xfe38ba(0x83);const _0x42ae60=_0x130023;_0x164ee5[_0xfe38ba(0x84)](HELP_HEADER_MESSAGE[_0xfe38ba(0x7a)])[_0xfe38ba(0x7c)](_0x42ae60[_0xfe38ba(0x78)])[_0xfe38ba(0x80)]()[_0xfe38ba(0x83)](_0x42ae60['GcWEQ'])[_0xfe38ba(0x7d)](HELP_FOOTER_MESSAGE);}module[a22_0x3adde8(0x7b)]=run;function a22_0xe0dc(){const _0x5108d5=['1758rlUFSf','1510145sQaPIw','1251XkKwXA','./config/constants','GcWEQ','431807udZaTA','commands','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','162FHZZDy','Aooyr','726pqozVb','root','exports','commandDir','epilogue','3016456jWAOqU','149646YyQRuj','demandCommand','122290PuklML','388884xmOTXY','help','usage'];a22_0xe0dc=function(){return _0x5108d5;};return a22_0xe0dc();}
|
|
@@ -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": {
|