@eclipse-che/che-e2e 7.64.0-dev-20514b2 → 7.64.0-dev-f0466d9
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/README.md +11 -37
- package/build/dockerfiles/entrypoint.sh +1 -1
- package/configs/inversify.config.ts +11 -26
- package/configs/inversify.types.ts +5 -35
- package/configs/mocharc.ts +9 -3
- package/configs/sh-scripts/initDefaultValues.sh +0 -5
- package/constants/TestConstants.ts +35 -97
- package/constants/TimeoutConstants.ts +1 -1
- package/dist/configs/inversify.config.js +8 -23
- package/dist/configs/inversify.config.js.map +1 -1
- package/dist/configs/inversify.types.js +3 -33
- package/dist/configs/inversify.types.js.map +1 -1
- package/dist/configs/mocharc.js +11 -4
- package/dist/configs/mocharc.js.map +1 -1
- package/dist/constants/TestConstants.js +31 -86
- package/dist/constants/TestConstants.js.map +1 -1
- package/dist/constants/TimeoutConstants.js.map +1 -1
- package/dist/driver/ChromeDriver.js +1 -1
- package/dist/driver/ChromeDriver.js.map +1 -1
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/pageobjects/dashboard/CreateWorkspace.js +8 -16
- package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -1
- package/dist/pageobjects/dashboard/Dashboard.js +16 -1
- package/dist/pageobjects/dashboard/Dashboard.js.map +1 -1
- package/dist/pageobjects/dashboard/Workspaces.js +1 -3
- package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
- package/dist/pageobjects/git-providers/OauthPage.js +150 -0
- package/dist/pageobjects/git-providers/OauthPage.js.map +1 -0
- package/dist/pageobjects/ide/CheCodeLocatorLoader.js +65 -0
- package/dist/pageobjects/ide/CheCodeLocatorLoader.js.map +1 -0
- package/dist/pageobjects/login/OcpRedHatLoginPage.js +67 -0
- package/dist/pageobjects/login/OcpRedHatLoginPage.js.map +1 -0
- package/dist/pageobjects/login/RedHatLoginPage.js +78 -0
- package/dist/pageobjects/login/RedHatLoginPage.js.map +1 -0
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js +3 -21
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js.map +1 -1
- package/dist/pageobjects/openshift/CheLoginPage.js +0 -33
- package/dist/pageobjects/openshift/CheLoginPage.js.map +1 -1
- package/dist/pageobjects/openshift/OcpLoginPage.js +0 -14
- package/dist/pageobjects/openshift/OcpLoginPage.js.map +1 -1
- package/dist/specs/MochaHooks.js +2 -2
- package/dist/specs/MochaHooks.js.map +1 -1
- package/dist/specs/SmokeTest.spec.js +49 -0
- package/dist/specs/SmokeTest.spec.js.map +1 -0
- package/dist/specs/devfiles/EmptyWorkspace.spec.js +1 -0
- package/dist/specs/devfiles/EmptyWorkspace.spec.js.map +1 -1
- package/dist/specs/devfiles/Quarkus.spec.js +50 -0
- package/dist/specs/devfiles/Quarkus.spec.js.map +1 -0
- package/dist/specs/factory/Factory.spec.js +160 -0
- package/dist/specs/factory/Factory.spec.js.map +1 -0
- package/dist/specs/factory/NoSetupRepoFactory.spec.js +228 -0
- package/dist/specs/factory/NoSetupRepoFactory.spec.js.map +1 -0
- package/dist/specs/factory/RefusedOAuthFactory.spec.js +220 -0
- package/dist/specs/factory/RefusedOAuthFactory.spec.js.map +1 -0
- package/dist/specs/miscellaneous/PredefinedNamespace.spec.js +66 -0
- package/dist/specs/miscellaneous/PredefinedNamespace.spec.js.map +1 -0
- package/dist/tests-library/LoginTests.js +10 -2
- package/dist/tests-library/LoginTests.js.map +1 -1
- package/dist/tests-library/WorkspaceHandlingTests.js +15 -6
- package/dist/tests-library/WorkspaceHandlingTests.js.map +1 -1
- package/dist/utils/BrowserTabsUtil.js +2 -21
- package/dist/utils/BrowserTabsUtil.js.map +1 -1
- package/dist/utils/CheReporter.js +5 -2
- package/dist/utils/CheReporter.js.map +1 -1
- package/dist/utils/DriverHelper.js +11 -73
- package/dist/utils/DriverHelper.js.map +1 -1
- package/dist/utils/Logger.js +5 -0
- package/dist/utils/Logger.js.map +1 -1
- package/dist/utils/Sanitizer.js.map +1 -1
- package/dist/utils/ScreenCatcher.js.map +1 -1
- package/dist/utils/request-handlers/CheApiRequestHandler.js +1 -1
- package/dist/utils/request-handlers/CheApiRequestHandler.js.map +1 -1
- package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -1
- package/dist/utils/vsc/GitUtil.js +36 -0
- package/dist/utils/vsc/GitUtil.js.map +1 -0
- package/dist/utils/workspace/ApiUrlResolver.js +0 -3
- package/dist/utils/workspace/ApiUrlResolver.js.map +1 -1
- package/dist/utils/workspace/TestWorkspaceUtil.js +3 -193
- package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
- package/driver/ChromeDriver.ts +3 -3
- package/index.ts +37 -0
- package/package.json +9 -5
- package/pageobjects/dashboard/CreateWorkspace.ts +10 -21
- package/pageobjects/dashboard/Dashboard.ts +37 -16
- package/pageobjects/dashboard/Workspaces.ts +21 -23
- package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +16 -16
- package/pageobjects/git-providers/OauthPage.ts +156 -0
- package/pageobjects/ide/CheCodeLocatorLoader.ts +69 -0
- package/pageobjects/login/OcpRedHatLoginPage.ts +49 -0
- package/pageobjects/login/OcpUserLoginPage.ts +1 -1
- package/pageobjects/login/RedHatLoginPage.ts +62 -0
- package/pageobjects/login/RegularUserOcpCheLoginPage.ts +2 -21
- package/pageobjects/openshift/CheLoginPage.ts +8 -57
- package/pageobjects/openshift/OcpLoginPage.ts +8 -29
- package/specs/MochaHooks.ts +9 -9
- package/specs/SmokeTest.spec.ts +50 -0
- package/specs/devfiles/EmptyWorkspace.spec.ts +1 -0
- package/specs/devfiles/Quarkus.spec.ts +52 -0
- package/specs/factory/Factory.spec.ts +199 -0
- package/specs/factory/NoSetupRepoFactory.spec.ts +272 -0
- package/specs/factory/RefusedOAuthFactory.spec.ts +260 -0
- package/specs/miscellaneous/PredefinedNamespace.spec.ts +74 -0
- package/tests-library/LoginTests.ts +9 -1
- package/tests-library/WorkspaceHandlingTests.ts +16 -7
- package/tslint.json +4 -4
- package/utils/BrowserTabsUtil.ts +9 -31
- package/utils/CheReporter.ts +12 -8
- package/utils/DriverHelper.ts +40 -115
- package/utils/Logger.ts +13 -8
- package/utils/Sanitizer.ts +0 -1
- package/utils/ScreenCatcher.ts +8 -7
- package/utils/request-handlers/CheApiRequestHandler.ts +1 -1
- package/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +2 -1
- package/utils/vsc/GitUtil.ts +25 -0
- package/utils/workspace/ApiUrlResolver.ts +3 -6
- package/utils/workspace/ITestWorkspaceUtil.ts +1 -56
- package/utils/workspace/TestWorkspaceUtil.ts +24 -265
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +0 -97
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +0 -1
- package/dist/pageobjects/login/MultiUserLoginPage.js +0 -49
- package/dist/pageobjects/login/MultiUserLoginPage.js.map +0 -1
- package/dist/pageobjects/login/UpdateAccountInformationPage.js +0 -74
- package/dist/pageobjects/login/UpdateAccountInformationPage.js.map +0 -1
- package/dist/pageobjects/third-parties/GitLoginPage.js +0 -85
- package/dist/pageobjects/third-parties/GitLoginPage.js.map +0 -1
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js +0 -110
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js.map +0 -1
- package/dist/specs/login/LinkCheAndOcpUsers.spec.js +0 -40
- package/dist/specs/login/LinkCheAndOcpUsers.spec.js.map +0 -1
- package/dist/utils/WorkspaceNameHandler.js +0 -60
- package/dist/utils/WorkspaceNameHandler.js.map +0 -1
- package/dist/utils/request-handlers/tokens/CheMultiuserTokenHandler.js +0 -50
- package/dist/utils/request-handlers/tokens/CheMultiuserTokenHandler.js.map +0 -1
- package/dist/utils/request-handlers/tokens/ITokenHandler.js +0 -12
- package/dist/utils/request-handlers/tokens/ITokenHandler.js.map +0 -1
- package/dist/utils/vsc/CheGitApi.js +0 -42
- package/dist/utils/vsc/CheGitApi.js.map +0 -1
- package/dist/utils/vsc/github/GitHubUtil.js +0 -126
- package/dist/utils/vsc/github/GitHubUtil.js.map +0 -1
- package/files/devfiles/plugins/GitHubPullRequestPlugin.yaml +0 -11
- package/files/devfiles/plugins/InstallPluginUsingUI.yaml +0 -3
- package/files/devfiles/plugins/Java11PluginTest.yaml +0 -17
- package/files/devfiles/plugins/PhpPluginTest.yaml +0 -47
- package/files/devfiles/plugins/PythonPluginTest.yaml +0 -14
- package/files/devfiles/plugins/TypescriptNodeDebug2PluginTest.yaml +0 -49
- package/files/devfiles/plugins/VscodeKubernetesPlugin.yaml +0 -12
- package/files/devfiles/plugins/VscodeShellcheckPlugin.yaml +0 -12
- package/files/devfiles/plugins/VscodeValePlugin.yaml +0 -42
- package/files/devfiles/plugins/VscodeXmlPlugin.yaml +0 -12
- package/files/devfiles/plugins/VscodeYamlPlugin.yaml +0 -12
- package/files/happy-path/containers-happy-path.yaml +0 -127
- package/files/happy-path/happy-path-workspace.yaml +0 -95
- package/files/happy-path/petclinic-classpath.txt +0 -49
- package/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.ts +0 -95
- package/pageobjects/login/MultiUserLoginPage.ts +0 -33
- package/pageobjects/login/UpdateAccountInformationPage.ts +0 -70
- package/pageobjects/third-parties/GitLoginPage.ts +0 -81
- package/pageobjects/third-parties/GitOauthAppsSettings.ts +0 -110
- package/specs/login/LinkCheAndOcpUsers.spec.ts +0 -49
- package/utils/WorkspaceNameHandler.ts +0 -48
- package/utils/request-handlers/tokens/CheMultiuserTokenHandler.ts +0 -41
- package/utils/request-handlers/tokens/ITokenHandler.ts +0 -14
- package/utils/vsc/CheGitApi.ts +0 -22
- package/utils/vsc/github/GitHubUtil.ts +0 -110
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*********************************************************************
|
|
3
|
-
* Copyright (c) 2019-2023 Red Hat, Inc.
|
|
4
|
-
*
|
|
5
|
-
* This program and the accompanying materials are made
|
|
6
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
7
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
-
*
|
|
9
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
-
**********************************************************************/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
//# sourceMappingURL=ITokenHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITokenHandler.js","sourceRoot":"","sources":["../../../../utils/request-handlers/tokens/ITokenHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;wEAQwE"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var CheGitApi_1;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CheGitApi = void 0;
|
|
17
|
-
const inversify_1 = require("inversify");
|
|
18
|
-
const inversify_types_1 = require("../../configs/inversify.types");
|
|
19
|
-
const CheApiRequestHandler_1 = require("../request-handlers/CheApiRequestHandler");
|
|
20
|
-
let CheGitApi = CheGitApi_1 = class CheGitApi {
|
|
21
|
-
constructor(processRequestHandler) {
|
|
22
|
-
this.processRequestHandler = processRequestHandler;
|
|
23
|
-
}
|
|
24
|
-
async getPublicSSHKey() {
|
|
25
|
-
try {
|
|
26
|
-
const responce = await this.processRequestHandler.get(CheGitApi_1.GIT_API_ENTRIPOINT_URL);
|
|
27
|
-
return responce.data[0].publicKey;
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
console.error('Cannot get public ssh key with API \n' + error);
|
|
31
|
-
throw error;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
CheGitApi.GIT_API_ENTRIPOINT_URL = 'api/ssh/vcs';
|
|
36
|
-
CheGitApi = CheGitApi_1 = __decorate([
|
|
37
|
-
inversify_1.injectable(),
|
|
38
|
-
__param(0, inversify_1.inject(inversify_types_1.CLASSES.CheApiRequestHandler)),
|
|
39
|
-
__metadata("design:paramtypes", [CheApiRequestHandler_1.CheApiRequestHandler])
|
|
40
|
-
], CheGitApi);
|
|
41
|
-
exports.CheGitApi = CheGitApi;
|
|
42
|
-
//# sourceMappingURL=CheGitApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheGitApi.js","sourceRoot":"","sources":["../../../utils/vsc/CheGitApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAA+C;AAC/C,mEAAwD;AACxD,mFAAgF;AAIhF,IAAa,SAAS,iBAAtB,MAAa,SAAS;IAGpB,YAAmE,qBAA2C;QAA3C,0BAAqB,GAArB,qBAAqB,CAAsB;IAAI,CAAC;IAE5G,KAAK,CAAE,eAAe;QAE3B,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,WAAS,CAAC,sBAAsB,CAAC,CAAC;YACxF,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACnC;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,uCAAuC,GAAG,KAAK,CAAC,CAAC;YAC/D,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF,CAAA;AAdiB,gCAAsB,GAAG,aAAa,CAAC;AAD5C,SAAS;IADrB,sBAAU,EAAE;IAIE,WAAA,kBAAM,CAAC,yBAAO,CAAC,oBAAoB,CAAC,CAAA;qCAAyC,2CAAoB;GAHnG,SAAS,CAerB;AAfY,8BAAS"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
|
-
var GitHubUtil_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.GitHubUtil = void 0;
|
|
14
|
-
const inversify_1 = require("inversify");
|
|
15
|
-
const axios_1 = __importDefault(require("axios"));
|
|
16
|
-
let GitHubUtil = GitHubUtil_1 = class GitHubUtil {
|
|
17
|
-
/**
|
|
18
|
-
* add public part of ssh key to the defied github account
|
|
19
|
-
* @param authToken
|
|
20
|
-
* @param title
|
|
21
|
-
* @param key
|
|
22
|
-
*/
|
|
23
|
-
async addPublicSshKeyToUserAccount(authToken, title, key) {
|
|
24
|
-
const gitHubApiSshURL = GitHubUtil_1.GITHUB_API_ENTRIPOINT_URL + 'user/keys';
|
|
25
|
-
const authHeader = { headers: { 'Authorization': 'token ' + authToken, 'Content-Type': 'application/json' } };
|
|
26
|
-
const data = {
|
|
27
|
-
title: `${title}`,
|
|
28
|
-
key: `${key}`
|
|
29
|
-
};
|
|
30
|
-
try {
|
|
31
|
-
await axios_1.default.post(gitHubApiSshURL, JSON.stringify(data), authHeader);
|
|
32
|
-
}
|
|
33
|
-
catch (error) {
|
|
34
|
-
console.error('Cannot add the public key to the GitHub account: ');
|
|
35
|
-
console.error(error);
|
|
36
|
-
throw error;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async getRawContentFromFile(pathToFile) {
|
|
40
|
-
const gitHubContentEntryPointUrl = 'https://raw.githubusercontent.com/';
|
|
41
|
-
const pathToRawContent = `${gitHubContentEntryPointUrl}${pathToFile}`;
|
|
42
|
-
const authorization = 'Authorization';
|
|
43
|
-
const contentType = 'Content-Type';
|
|
44
|
-
try {
|
|
45
|
-
delete axios_1.default.defaults.headers.common[authorization];
|
|
46
|
-
delete axios_1.default.defaults.headers.common[contentType];
|
|
47
|
-
const response = await axios_1.default.get(`${gitHubContentEntryPointUrl}${pathToFile}`);
|
|
48
|
-
return response.data;
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
console.error('Cannot get content form the raw github content: ' + pathToRawContent);
|
|
52
|
-
console.error(error);
|
|
53
|
-
throw error;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
async getPublicSshKeys(authToken) {
|
|
57
|
-
const gitHubApiSshURL = GitHubUtil_1.GITHUB_API_ENTRIPOINT_URL + 'user/keys';
|
|
58
|
-
const authHeader = { headers: { 'Authorization': 'token ' + authToken, 'Content-Type': 'application/json' } };
|
|
59
|
-
try {
|
|
60
|
-
const response = await axios_1.default.get(gitHubApiSshURL, authHeader);
|
|
61
|
-
const stringified = JSON.stringify(response.data);
|
|
62
|
-
const arrayOfWorkspaces = JSON.parse(stringified);
|
|
63
|
-
const idOfRunningWorkspace = new Array();
|
|
64
|
-
for (let entry of arrayOfWorkspaces) {
|
|
65
|
-
idOfRunningWorkspace.push(entry.id);
|
|
66
|
-
}
|
|
67
|
-
return idOfRunningWorkspace;
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
console.error('Cannot get public Keys from github: ' + gitHubApiSshURL);
|
|
71
|
-
console.error(error);
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
async removePublicSshKey(authToken, keyId) {
|
|
76
|
-
const gitHubApiSshURL = GitHubUtil_1.GITHUB_API_ENTRIPOINT_URL + 'user/keys/' + keyId;
|
|
77
|
-
const authHeader = { headers: { 'Authorization': 'token ' + authToken, 'Content-Type': 'application/json' } };
|
|
78
|
-
try {
|
|
79
|
-
await axios_1.default.delete(gitHubApiSshURL, authHeader);
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
console.error('Cannot delete the public key from the GitHub account: ');
|
|
83
|
-
console.error(error);
|
|
84
|
-
throw error;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
async deletePublicSshKeyByName(authToken, keyName) {
|
|
88
|
-
const gitHubApiSshURL = GitHubUtil_1.GITHUB_API_ENTRIPOINT_URL + 'user/keys';
|
|
89
|
-
const authHeader = { headers: { 'Authorization': 'token ' + authToken, 'Content-Type': 'application/json' } };
|
|
90
|
-
try {
|
|
91
|
-
const response = await axios_1.default.get(gitHubApiSshURL, authHeader);
|
|
92
|
-
const stringified = JSON.stringify(response.data);
|
|
93
|
-
const arrayOfPublicKeys = JSON.parse(stringified);
|
|
94
|
-
for (let entry of arrayOfPublicKeys) {
|
|
95
|
-
if (entry.title === keyName) {
|
|
96
|
-
await this.removePublicSshKey(authToken, entry.id);
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
catch (error) {
|
|
102
|
-
console.error('Cannot delete the ' + keyName + ' public key from the GitHub account');
|
|
103
|
-
console.error(error);
|
|
104
|
-
throw error;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
async removeAllPublicSshKeys(authToken) {
|
|
108
|
-
try {
|
|
109
|
-
const idList = await this.getPublicSshKeys(authToken);
|
|
110
|
-
for (let id of idList) {
|
|
111
|
-
await this.removePublicSshKey(authToken, id);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
catch (error) {
|
|
115
|
-
console.error('Cannot delete the public key from the GitHub account: ');
|
|
116
|
-
console.error(error);
|
|
117
|
-
throw error;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
GitHubUtil.GITHUB_API_ENTRIPOINT_URL = 'https://api.github.com/';
|
|
122
|
-
GitHubUtil = GitHubUtil_1 = __decorate([
|
|
123
|
-
inversify_1.injectable()
|
|
124
|
-
], GitHubUtil);
|
|
125
|
-
exports.GitHubUtil = GitHubUtil;
|
|
126
|
-
//# sourceMappingURL=GitHubUtil.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubUtil.js","sourceRoot":"","sources":["../../../../utils/vsc/github/GitHubUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAAuC;AACvC,kDAA0B;AAG1B,IAAa,UAAU,kBAAvB,MAAa,UAAU;IAErB;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAAC,SAAiB,EAAE,KAAa,EAAE,GAAW;QAC9E,MAAM,eAAe,GAAW,YAAU,CAAC,yBAAyB,GAAG,WAAW,CAAC;QACnF,MAAM,UAAU,GAAG,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,QAAQ,GAAG,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,CAAC;QAE9G,MAAM,IAAI,GAAG;YACX,KAAK,EAAE,GAAG,KAAK,EAAE;YACjB,GAAG,EAAE,GAAG,GAA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AC;AADnE,UAAU;IADtB,sBAAU,EAAE;GACA,UAAU,CAyGtB;AAzGY,gCAAU"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: java11-plugin-test
|
|
4
|
-
projects:
|
|
5
|
-
- name: console-java-simple
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/che-samples/console-java-simple.git'
|
|
8
|
-
type: git
|
|
9
|
-
branch: java1.11
|
|
10
|
-
components:
|
|
11
|
-
- type: cheEditor
|
|
12
|
-
id: eclipse/che-theia/next
|
|
13
|
-
memoryLimit: 512Mi
|
|
14
|
-
- id: redhat/java/latest
|
|
15
|
-
preferences:
|
|
16
|
-
java.server.launchMode: Standard
|
|
17
|
-
type: chePlugin
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
apiVersion: 1.0.0
|
|
3
|
-
metadata:
|
|
4
|
-
generateName: php-plugin-test
|
|
5
|
-
projects:
|
|
6
|
-
- name: php-web-simple
|
|
7
|
-
source:
|
|
8
|
-
type: git
|
|
9
|
-
location: "https://github.com/che-samples/web-php-simple"
|
|
10
|
-
components:
|
|
11
|
-
- type: chePlugin
|
|
12
|
-
id: bmewburn/vscode-intelephense-client/latest
|
|
13
|
-
- type: chePlugin
|
|
14
|
-
id: felixfbecker/php-debug/latest
|
|
15
|
-
- type: dockerimage
|
|
16
|
-
alias: php
|
|
17
|
-
image: quay.io/eclipse/che-php-7:next
|
|
18
|
-
memoryLimit: 512Mi
|
|
19
|
-
mountSources: true
|
|
20
|
-
endpoints:
|
|
21
|
-
- name: '8080-tcp'
|
|
22
|
-
port: 8080
|
|
23
|
-
volumes:
|
|
24
|
-
- name: composer
|
|
25
|
-
containerPath: "/home/user/.composer"
|
|
26
|
-
- name: symfony
|
|
27
|
-
containerPath: "/home/user/.symfony"
|
|
28
|
-
commands:
|
|
29
|
-
- name: Debug current file
|
|
30
|
-
actions:
|
|
31
|
-
- type: vscode-launch
|
|
32
|
-
referenceContent: |
|
|
33
|
-
{
|
|
34
|
-
"version": "0.2.0",
|
|
35
|
-
"configurations": [
|
|
36
|
-
{
|
|
37
|
-
"name": "Launch currently open script",
|
|
38
|
-
"type": "php",
|
|
39
|
-
"request": "launch",
|
|
40
|
-
"program": "${file}",
|
|
41
|
-
"stopOnEntry": true,
|
|
42
|
-
"cwd": "${fileDirname}",
|
|
43
|
-
"port": 9000,
|
|
44
|
-
"runtimeExecutable": "php"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: python-plugin-test
|
|
4
|
-
projects:
|
|
5
|
-
- name: python-hello-world
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/che-samples/python-hello-world.git'
|
|
8
|
-
type: git
|
|
9
|
-
components:
|
|
10
|
-
- id: ms-python/python/latest
|
|
11
|
-
type: chePlugin
|
|
12
|
-
- type: cheEditor
|
|
13
|
-
id: eclipse/che-theia/next
|
|
14
|
-
memoryLimit: 512Mi
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: typescript-debug-plugins
|
|
4
|
-
projects:
|
|
5
|
-
- name: nodejs-web-app
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/che-samples/web-nodejs-sample.git'
|
|
8
|
-
branch: che-qe-tests
|
|
9
|
-
type: git
|
|
10
|
-
components:
|
|
11
|
-
- id: vscode/typescript-language-features/latest
|
|
12
|
-
type: chePlugin
|
|
13
|
-
- id: ms-vscode/node-debug2/latest
|
|
14
|
-
preferences:
|
|
15
|
-
debug.node.useV3: false
|
|
16
|
-
type: chePlugin
|
|
17
|
-
- mountSources: true
|
|
18
|
-
endpoints:
|
|
19
|
-
- name: nodejs
|
|
20
|
-
port: 3000
|
|
21
|
-
memoryLimit: 512Mi
|
|
22
|
-
type: dockerimage
|
|
23
|
-
alias: nodejs
|
|
24
|
-
image: 'quay.io/eclipse/che-nodejs10-ubi:next'
|
|
25
|
-
commands:
|
|
26
|
-
- name: run the web app (debugging enabled)
|
|
27
|
-
actions:
|
|
28
|
-
- workdir: '${CHE_PROJECTS_ROOT}/nodejs-web-app/app'
|
|
29
|
-
type: exec
|
|
30
|
-
command: npm install && nodemon --inspect app.js
|
|
31
|
-
component: nodejs
|
|
32
|
-
- name: Attach remote debugger
|
|
33
|
-
actions:
|
|
34
|
-
- referenceContent: |
|
|
35
|
-
{
|
|
36
|
-
"version": "0.2.0",
|
|
37
|
-
"configurations": [
|
|
38
|
-
{
|
|
39
|
-
"type": "node",
|
|
40
|
-
"request": "attach",
|
|
41
|
-
"name": "Attach to Remote",
|
|
42
|
-
"address": "localhost",
|
|
43
|
-
"port": 9229,
|
|
44
|
-
"localRoot": "${workspaceFolder}",
|
|
45
|
-
"remoteRoot": "${workspaceFolder}"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
type: vscode-launch
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: nodejs-24lop
|
|
4
|
-
projects:
|
|
5
|
-
- name: nodejs-web-app
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/che-samples/web-nodejs-sample.git'
|
|
8
|
-
branch: che-qe-tests
|
|
9
|
-
type: git
|
|
10
|
-
components:
|
|
11
|
-
- type: chePlugin
|
|
12
|
-
id: ms-kubernetes-tools/vscode-kubernetes-tools/latest
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: nodejs-zmecm
|
|
4
|
-
projects:
|
|
5
|
-
- name: nodejs-web-app
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/che-samples/web-nodejs-sample.git'
|
|
8
|
-
branch: che-qe-tests
|
|
9
|
-
type: git
|
|
10
|
-
components:
|
|
11
|
-
- id: timonwong/shellcheck/latest
|
|
12
|
-
type: chePlugin
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: che-docs-test
|
|
4
|
-
projects:
|
|
5
|
-
- name: che-docs
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/eclipse/che-docs.git'
|
|
8
|
-
type: git
|
|
9
|
-
branch: che-qe
|
|
10
|
-
components:
|
|
11
|
-
- mountSources: true
|
|
12
|
-
endpoints:
|
|
13
|
-
- name: Open-Livereload
|
|
14
|
-
port: 35729
|
|
15
|
-
- attributes:
|
|
16
|
-
path: /che-7/overview/introduction-to-eclipse-che/
|
|
17
|
-
name: Open-Preview-server
|
|
18
|
-
port: 4000
|
|
19
|
-
command:
|
|
20
|
-
- tail
|
|
21
|
-
args:
|
|
22
|
-
- '-f'
|
|
23
|
-
- /dev/null
|
|
24
|
-
memoryLimit: 512M
|
|
25
|
-
type: dockerimage
|
|
26
|
-
alias: che-docs
|
|
27
|
-
image: 'quay.io/eclipse/che-docs:latest'
|
|
28
|
-
- preferences:
|
|
29
|
-
vale.core.useCLI: true
|
|
30
|
-
type: chePlugin
|
|
31
|
-
reference: 'https://che-plugin-registry-main.surge.sh/v3/plugins/errata-ai/vale-server/latest/meta.yaml'
|
|
32
|
-
alias: vale-server
|
|
33
|
-
- id: redhat/vscode-yaml/latest
|
|
34
|
-
type: chePlugin
|
|
35
|
-
- id: redhat/vscode-xml/latest
|
|
36
|
-
type: chePlugin
|
|
37
|
-
- id: redhat/java/latest
|
|
38
|
-
type: chePlugin
|
|
39
|
-
- id: golang/go/latest
|
|
40
|
-
type: chePlugin
|
|
41
|
-
- id: vscode/typescript-language-features/latest
|
|
42
|
-
type: chePlugin
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: xml-plugin-test
|
|
4
|
-
projects:
|
|
5
|
-
- name: nodejs-web-app
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/che-samples/web-nodejs-sample.git'
|
|
8
|
-
branch: che-qe-tests
|
|
9
|
-
type: git
|
|
10
|
-
components:
|
|
11
|
-
- id: redhat/vscode-xml/latest
|
|
12
|
-
type: chePlugin
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
apiVersion: 1.0.0
|
|
2
|
-
metadata:
|
|
3
|
-
name: nodejs-zmecm
|
|
4
|
-
projects:
|
|
5
|
-
- name: nodejs-web-app
|
|
6
|
-
source:
|
|
7
|
-
location: 'https://github.com/che-samples/web-nodejs-sample.git'
|
|
8
|
-
branch: che-qe-tests
|
|
9
|
-
type: git
|
|
10
|
-
components:
|
|
11
|
-
- id: redhat/vscode-yaml/latest
|
|
12
|
-
type: chePlugin
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
apiVersion: v1
|
|
3
|
-
kind: Service
|
|
4
|
-
metadata:
|
|
5
|
-
name: mysql
|
|
6
|
-
labels:
|
|
7
|
-
app.kubernetes.io/name: mysql
|
|
8
|
-
app.kubernetes.io/component: database
|
|
9
|
-
app.kubernetes.io/part-of: petclinic
|
|
10
|
-
spec:
|
|
11
|
-
ports:
|
|
12
|
-
- port: 3306
|
|
13
|
-
targetPort: 3306
|
|
14
|
-
selector:
|
|
15
|
-
app.kubernetes.io/name: mysql
|
|
16
|
-
app.kubernetes.io/component: database
|
|
17
|
-
app.kubernetes.io/part-of: petclinic
|
|
18
|
-
---
|
|
19
|
-
apiVersion: apps/v1
|
|
20
|
-
kind: Deployment
|
|
21
|
-
metadata:
|
|
22
|
-
name: db
|
|
23
|
-
labels:
|
|
24
|
-
app.kubernetes.io/name: mysql
|
|
25
|
-
app.kubernetes.io/component: database
|
|
26
|
-
app.kubernetes.io/part-of: petclinic
|
|
27
|
-
spec:
|
|
28
|
-
selector:
|
|
29
|
-
matchLabels:
|
|
30
|
-
app.kubernetes.io/name: mysql
|
|
31
|
-
app.kubernetes.io/component: database
|
|
32
|
-
app.kubernetes.io/part-of: petclinic
|
|
33
|
-
replicas: 1
|
|
34
|
-
template:
|
|
35
|
-
metadata:
|
|
36
|
-
labels:
|
|
37
|
-
app.kubernetes.io/name: mysql
|
|
38
|
-
app.kubernetes.io/component: database
|
|
39
|
-
app.kubernetes.io/part-of: petclinic
|
|
40
|
-
spec:
|
|
41
|
-
containers:
|
|
42
|
-
- name: mysql
|
|
43
|
-
image: quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764
|
|
44
|
-
resources:
|
|
45
|
-
requests:
|
|
46
|
-
memory: 256Mi
|
|
47
|
-
env:
|
|
48
|
-
- name: MYSQL_USER
|
|
49
|
-
value: petclinic
|
|
50
|
-
- name: MYSQL_PASSWORD
|
|
51
|
-
value: petclinic
|
|
52
|
-
- name: MYSQL_ROOT_PASSWORD
|
|
53
|
-
value: petclinic
|
|
54
|
-
- name: MYSQL_DATABASE
|
|
55
|
-
value: petclinic
|
|
56
|
-
ports:
|
|
57
|
-
- containerPort: 3306
|
|
58
|
-
---
|
|
59
|
-
apiVersion: v1
|
|
60
|
-
kind: Service
|
|
61
|
-
metadata:
|
|
62
|
-
name: spring-boot-app
|
|
63
|
-
labels:
|
|
64
|
-
app.kubernetes.io/name: petclinic
|
|
65
|
-
app.kubernetes.io/component: webapp
|
|
66
|
-
app.kubernetes.io/part-of: petclinic
|
|
67
|
-
spec:
|
|
68
|
-
ports:
|
|
69
|
-
- port: 8080
|
|
70
|
-
targetPort: 8080
|
|
71
|
-
selector:
|
|
72
|
-
app.kubernetes.io/name: petclinic
|
|
73
|
-
app.kubernetes.io/component: webapp
|
|
74
|
-
app.kubernetes.io/part-of: petclinic
|
|
75
|
-
---
|
|
76
|
-
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
|
|
77
|
-
kind: Deployment
|
|
78
|
-
metadata:
|
|
79
|
-
name: spring-boot-app
|
|
80
|
-
labels:
|
|
81
|
-
app.kubernetes.io/name: petclinic
|
|
82
|
-
app.kubernetes.io/component: webapp
|
|
83
|
-
app.kubernetes.io/part-of: petclinic
|
|
84
|
-
spec:
|
|
85
|
-
selector:
|
|
86
|
-
matchLabels:
|
|
87
|
-
app.kubernetes.io/name: petclinic
|
|
88
|
-
app.kubernetes.io/component: webapp
|
|
89
|
-
app.kubernetes.io/part-of: petclinic
|
|
90
|
-
replicas: 1
|
|
91
|
-
template:
|
|
92
|
-
metadata:
|
|
93
|
-
labels:
|
|
94
|
-
app.kubernetes.io/name: petclinic
|
|
95
|
-
app.kubernetes.io/component: webapp
|
|
96
|
-
app.kubernetes.io/part-of: petclinic
|
|
97
|
-
spec:
|
|
98
|
-
containers:
|
|
99
|
-
- name: spring-boot
|
|
100
|
-
image: quay.io/mloriedo/spring-petclinic
|
|
101
|
-
resources:
|
|
102
|
-
requests:
|
|
103
|
-
memory: 512Mi
|
|
104
|
-
ports:
|
|
105
|
-
- containerPort: 8080
|
|
106
|
-
---
|
|
107
|
-
apiVersion: extensions/v1beta1
|
|
108
|
-
kind: Ingress
|
|
109
|
-
metadata:
|
|
110
|
-
name: spring-boot-app
|
|
111
|
-
labels:
|
|
112
|
-
app: spring-petclinic
|
|
113
|
-
tier: frontend
|
|
114
|
-
annotations:
|
|
115
|
-
kubernetes.io/ingress.class: "nginx"
|
|
116
|
-
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
|
117
|
-
nginx.ingress.kubernetes.io/proxy-connect-timeout: "3600"
|
|
118
|
-
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
119
|
-
spec:
|
|
120
|
-
rules:
|
|
121
|
-
- host: 192.168.99.100.nip.io
|
|
122
|
-
http:
|
|
123
|
-
paths:
|
|
124
|
-
- path: /
|
|
125
|
-
backend:
|
|
126
|
-
serviceName: spring-boot-app
|
|
127
|
-
servicePort: 8080
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
apiVersion: 1.0.0
|
|
3
|
-
metadata:
|
|
4
|
-
name: petclinic-dev-environment
|
|
5
|
-
projects:
|
|
6
|
-
- name: petclinic
|
|
7
|
-
source:
|
|
8
|
-
type: git
|
|
9
|
-
location: "https://github.com/spring-projects/spring-petclinic.git"
|
|
10
|
-
commitId: e7c879ed3abe10e446ff103887ad665ca6acf04e
|
|
11
|
-
components:
|
|
12
|
-
- type: cheEditor
|
|
13
|
-
id: eclipse/che-theia/next
|
|
14
|
-
memoryLimit: 512Mi
|
|
15
|
-
- type: kubernetes
|
|
16
|
-
alias: petclinic-web
|
|
17
|
-
reference: https://raw.githubusercontent.com/eclipse/che/master/tests/e2e/files/happy-path/containers-happy-path.yaml
|
|
18
|
-
selector:
|
|
19
|
-
app.kubernetes.io/component: webapp
|
|
20
|
-
entrypoints:
|
|
21
|
-
- containerName: spring-boot
|
|
22
|
-
command: ["tail"]
|
|
23
|
-
args: ["-f", "/dev/null"]
|
|
24
|
-
- type: kubernetes
|
|
25
|
-
alias: petclinic-db
|
|
26
|
-
reference: https://raw.githubusercontent.com/eclipse/che/master/tests/e2e/files/happy-path/containers-happy-path.yaml
|
|
27
|
-
selector:
|
|
28
|
-
app.kubernetes.io/component: database
|
|
29
|
-
- type: dockerimage
|
|
30
|
-
alias: maven-container
|
|
31
|
-
image: quay.io/eclipse/happy-path:next
|
|
32
|
-
env:
|
|
33
|
-
- name: MAVEN_CONFIG
|
|
34
|
-
value: /home/user/.m2
|
|
35
|
-
memoryLimit: 1500Mi
|
|
36
|
-
endpoints:
|
|
37
|
-
- name: '8080-tcp'
|
|
38
|
-
port: 8080
|
|
39
|
-
- name: 'debug'
|
|
40
|
-
port: 5005
|
|
41
|
-
attributes:
|
|
42
|
-
public: 'false'
|
|
43
|
-
mountSources: true
|
|
44
|
-
- type: chePlugin
|
|
45
|
-
id: redhat/java/latest
|
|
46
|
-
memoryLimit: "1000Mi"
|
|
47
|
-
preferences:
|
|
48
|
-
java.server.launchMode: Standard
|
|
49
|
-
- type: chePlugin
|
|
50
|
-
id: redhat/vscode-yaml/latest
|
|
51
|
-
commands:
|
|
52
|
-
- name: build
|
|
53
|
-
actions:
|
|
54
|
-
- type: exec
|
|
55
|
-
component: maven-container
|
|
56
|
-
command: mvn clean package | tee /workspace_logs/build.log && tail -n 40 /workspace_logs/build.log | grep 'BUILD SUCCESS' > /projects/petclinic/result-build.txt
|
|
57
|
-
workdir: /projects/petclinic
|
|
58
|
-
- name: build-file-output
|
|
59
|
-
actions:
|
|
60
|
-
- type: exec
|
|
61
|
-
component: maven-container
|
|
62
|
-
command: cd /projects/petclinic && mvn package | tee /workspace_logs/build-output.log && tail -n 40 /workspace_logs/build-output.log | grep 'BUILD SUCCESS' > /projects/petclinic/result-build-output.txt
|
|
63
|
-
- name: run
|
|
64
|
-
actions:
|
|
65
|
-
- type: exec
|
|
66
|
-
component: maven-container
|
|
67
|
-
command: java -jar spring-petclinic-2.4.5.jar --spring.profiles.active=mysql | tee /workspace_logs/run.log
|
|
68
|
-
workdir: /projects/petclinic/target
|
|
69
|
-
- name: run-with-changes
|
|
70
|
-
actions:
|
|
71
|
-
- type: exec
|
|
72
|
-
component: maven-container
|
|
73
|
-
command: java -jar spring-petclinic-2.4.5.jar --spring.profiles.active=mysql | tee /workspace_logs/run-with-changes.log
|
|
74
|
-
workdir: /projects/petclinic/target
|
|
75
|
-
- name: run-debug
|
|
76
|
-
actions:
|
|
77
|
-
- type: exec
|
|
78
|
-
component: maven-container
|
|
79
|
-
command: java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 spring-petclinic-2.4.5.jar --spring.profiles.active=mysql | tee /workspace_logs/run-debug.log
|
|
80
|
-
workdir: /projects/petclinic/target
|
|
81
|
-
- name: Debug remote java application
|
|
82
|
-
actions:
|
|
83
|
-
- type: vscode-launch
|
|
84
|
-
referenceContent: |
|
|
85
|
-
{
|
|
86
|
-
"version": "0.2.0",
|
|
87
|
-
"configurations": [
|
|
88
|
-
{
|
|
89
|
-
"type": "java",
|
|
90
|
-
"name": "Debug (Attach) - Remote",
|
|
91
|
-
"request": "attach",
|
|
92
|
-
"hostName": "localhost",
|
|
93
|
-
"port": 5005
|
|
94
|
-
}]
|
|
95
|
-
}
|