@eclipse-che/che-e2e 7.59.0-dev-d1fb082 → 7.59.0-dev-7da8bf3
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/TestConstants.ts +6 -1
- package/build/dockerfiles/Dockerfile +4 -3
- package/dist/TestConstants.js +5 -1
- package/dist/TestConstants.js.map +1 -1
- package/dist/driver/CheReporter.js +6 -26
- package/dist/driver/CheReporter.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/inversify.config.js +2 -0
- package/dist/inversify.config.js.map +1 -1
- package/dist/inversify.types.js +1 -0
- package/dist/inversify.types.js.map +1 -1
- package/dist/pageobjects/dashboard/Workspaces.js +10 -2
- package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
- package/dist/pageobjects/ide/theia/Ide.js +1 -1
- package/dist/pageobjects/ide/theia/Ide.js.map +1 -1
- package/dist/tests/MochaHooks.js +65 -0
- package/dist/tests/MochaHooks.js.map +1 -0
- package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js +11 -24
- package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js.map +1 -1
- package/dist/tests/devfiles/theia/DotNetCore.spec.js.map +1 -1
- package/dist/tests/e2e/theia/FactoryUrl.spec.js.map +1 -1
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -1
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -1
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -1
- package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js.map +1 -1
- package/dist/testsLibrary/che-code/ProjectAndFileTestsCheCode.js +54 -0
- package/dist/testsLibrary/che-code/ProjectAndFileTestsCheCode.js.map +1 -0
- package/dist/testsLibrary/theia/LanguageServerTestsTheia.js.map +1 -1
- package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js.map +1 -1
- package/dist/utils/VCS/github/GitHubUtil.js +2 -2
- package/dist/utils/VCS/github/GitHubUtil.js.map +1 -1
- package/driver/CheReporter.ts +4 -25
- package/index.ts +1 -0
- package/inversify.config.ts +2 -0
- package/inversify.types.ts +1 -0
- package/mocha-all-devfiles-che-code.json +12 -0
- package/mocha-all-devfiles-theia.json +13 -10
- package/mocha-all-factories-che-code.json +14 -0
- package/mocha-all-factories-theia.json +14 -11
- package/mocha-all-plugins-che-code.json +13 -0
- package/mocha-all-plugins-theia.json +13 -10
- package/mocha-che-code.json +12 -0
- package/mocha-connector-theia.json +10 -7
- package/mocha-devworkspace-happy-path-che-code.json +13 -0
- package/mocha-devworkspace-happy-path-theia.json +12 -9
- package/mocha-factory-che-code.json +13 -0
- package/mocha-factory-theia.json +12 -9
- package/mocha-git-publish-branch-theia.json +12 -9
- package/mocha-git-self-sign-cert-theia.json +12 -9
- package/mocha-git-ssh-theia.json +12 -9
- package/mocha-happy-path-che-code.json +14 -0
- package/mocha-happy-path-theia.json +13 -10
- package/mocha-java-maven.json +11 -7
- package/mocha-java-springboot-che-code.json +12 -0
- package/mocha-java-springboot-theia.json +11 -7
- package/mocha-java-vertx-che-code.json +12 -0
- package/mocha-java-vertx-theia.json +11 -7
- package/mocha-load-theia.json +10 -7
- package/mocha-scala.json +11 -7
- package/mocha-single-devfile.json +9 -6
- package/mocha-theia.json +10 -6
- package/mocha-ws-creation-and-ls-theia.json +10 -7
- package/mocha.intelij.json +11 -7
- package/mocha.ocp.link.json +9 -6
- package/mocha.single.plugin.json +6 -5
- package/package.json +11 -11
- package/pageobjects/dashboard/Workspaces.ts +10 -4
- package/pageobjects/ide/theia/Ide.ts +1 -1
- package/pageobjects/ide/theia/OpenEditors.ts +1 -1
- package/tests/MochaHooks.ts +47 -0
- package/tests/devfiles/che-code/EmptyWorkspace.spec.ts +14 -24
- package/tests/devfiles/theia/DotNetCore.spec.ts +1 -1
- package/tests/e2e/theia/FactoryUrl.spec.ts +1 -1
- package/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +1 -1
- package/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +1 -1
- package/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +1 -1
- package/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.ts +1 -1
- package/testsLibrary/che-code/ProjectAndFileTestsCheCode.ts +34 -0
- package/testsLibrary/theia/LanguageServerTestsTheia.ts +2 -2
- package/testsLibrary/theia/ProjectAndFileTestsTheia.ts +2 -2
- package/tslint.json +16 -13
- package/utils/VCS/github/GitHubUtil.ts +2 -2
- package/utils/workspace/ApiUrlResolver.ts +1 -1
- package/utils/workspace/ITestWorkspaceUtil.ts +12 -12
- package/mocha-all-factories-code.json +0 -11
- package/mocha-all-plugins-code.json +0 -10
- package/mocha-code.json +0 -8
- package/mocha-devworkspace-happy-path-code.json +0 -10
- package/mocha-factory-code.json +0 -10
- package/mocha-happy-path-code.json +0 -11
- package/mocha-java-springboot-code.json +0 -9
- package/mocha-java-vertx-code.json +0 -9
|
@@ -55,7 +55,7 @@ export class ProjectAndFileTestsTheia {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
public waitWorkspaceReadiness(sampleName
|
|
58
|
+
public waitWorkspaceReadiness(sampleName: string, folder: string, checkNotification: boolean = true, restartWorkspaceDialogIsExpected: boolean = false) {
|
|
59
59
|
test('Wait for workspace readiness', async () => {
|
|
60
60
|
await this.ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
61
61
|
|
|
@@ -72,7 +72,7 @@ export class ProjectAndFileTestsTheia {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
public waitWorkspaceReadinessNoSubfolder(sampleName
|
|
75
|
+
public waitWorkspaceReadinessNoSubfolder(sampleName: string, checkNotification: boolean = true) {
|
|
76
76
|
test('Wait for workspace readiness', async () => {
|
|
77
77
|
await this.ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
78
78
|
if (checkNotification) {
|
package/tslint.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"forin": true,
|
|
27
27
|
"indent": [
|
|
28
28
|
true,
|
|
29
|
-
|
|
29
|
+
"spaces"
|
|
30
30
|
],
|
|
31
31
|
"interface-name": true,
|
|
32
32
|
"jsdoc-format": true,
|
|
@@ -59,15 +59,18 @@
|
|
|
59
59
|
"no-eval": true,
|
|
60
60
|
"no-string-literal": true,
|
|
61
61
|
"no-switch-case-fall-through": true,
|
|
62
|
-
"trailing-comma": [
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
"trailing-comma": [
|
|
63
|
+
true,
|
|
64
|
+
{
|
|
65
|
+
"singleline": "never",
|
|
66
|
+
"multiline": {
|
|
67
|
+
"objects": "ignore",
|
|
68
|
+
"arrays": "always",
|
|
69
|
+
"functions": "never",
|
|
70
|
+
"typeLiterals": "ignore"
|
|
71
|
+
}
|
|
69
72
|
}
|
|
70
|
-
|
|
73
|
+
],
|
|
71
74
|
"no-trailing-whitespace": true,
|
|
72
75
|
"no-unused-expression": true,
|
|
73
76
|
"no-unused-variable": true,
|
|
@@ -92,11 +95,11 @@
|
|
|
92
95
|
],
|
|
93
96
|
"typedef": [
|
|
94
97
|
true,
|
|
95
|
-
"call-signature",
|
|
96
|
-
"member-variable-declaration",
|
|
98
|
+
// "call-signature",
|
|
99
|
+
// "member-variable-declaration",
|
|
97
100
|
"parameter",
|
|
98
|
-
"property-declaration"
|
|
99
|
-
"variable-declaration"
|
|
101
|
+
"property-declaration"
|
|
102
|
+
// "variable-declaration"
|
|
100
103
|
],
|
|
101
104
|
"typedef-whitespace": [
|
|
102
105
|
true,
|
|
@@ -82,7 +82,7 @@ export class GitHubUtil {
|
|
|
82
82
|
const arrayOfPublicKeys = JSON.parse(stringified);
|
|
83
83
|
for (let entry of arrayOfPublicKeys) {
|
|
84
84
|
if (entry.title === keyName) {
|
|
85
|
-
this.removePublicSshKey(authToken, entry.id);
|
|
85
|
+
await this.removePublicSshKey(authToken, entry.id);
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -97,7 +97,7 @@ export class GitHubUtil {
|
|
|
97
97
|
try {
|
|
98
98
|
const idList: string[] = await this.getPublicSshKeys(authToken);
|
|
99
99
|
for (let id of idList) {
|
|
100
|
-
this.removePublicSshKey(authToken, id);
|
|
100
|
+
await this.removePublicSshKey(authToken, id);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
} catch (error) {
|
|
@@ -34,7 +34,7 @@ export class ApiUrlResolver {
|
|
|
34
34
|
return ApiUrlResolver.KUBERNETES_API_URL;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
private async obtainUserNamespace()
|
|
37
|
+
private async obtainUserNamespace(): Promise<string> {
|
|
38
38
|
Logger.debug(`ApiUrlResolver.obtainUserNamespace ${this.userNamespace}`);
|
|
39
39
|
if (this.userNamespace.length === 0) {
|
|
40
40
|
Logger.trace(`ApiUrlResolver.obtainUserNamespace USER_NAMESPACE.length = 0, calling kubernetes API`);
|
|
@@ -12,35 +12,35 @@ import { WorkspaceStatus } from './WorkspaceStatus';
|
|
|
12
12
|
import { che } from '@eclipse-che/api';
|
|
13
13
|
|
|
14
14
|
export interface ITestWorkspaceUtil {
|
|
15
|
-
waitWorkspaceStatus(namespace: string, workspaceName: string, expectedWorkspaceStatus: WorkspaceStatus)
|
|
15
|
+
waitWorkspaceStatus(namespace: string, workspaceName: string, expectedWorkspaceStatus: WorkspaceStatus): void;
|
|
16
16
|
|
|
17
|
-
stopWorkspaceByName(workspaceName: string)
|
|
17
|
+
stopWorkspaceByName(workspaceName: string): void;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Delete a worksapce without stopping phase (similar with force deleting)
|
|
21
21
|
*/
|
|
22
|
-
deleteWorkspaceByName(workspaceName: string)
|
|
22
|
+
deleteWorkspaceByName(workspaceName: string): void;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Stop workspace before deleting with checking stopping phase
|
|
26
26
|
*/
|
|
27
|
-
stopAndDeleteWorkspaceByName(workspaceName: string)
|
|
27
|
+
stopAndDeleteWorkspaceByName(workspaceName: string): void;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Stop all run workspaces in the namespace
|
|
31
31
|
*/
|
|
32
|
-
stopAllRunningWorkspaces(namespace: string)
|
|
32
|
+
stopAllRunningWorkspaces(namespace: string): void;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Stop all run workspaces, check statused and remove the workspaces
|
|
36
36
|
*/
|
|
37
|
-
stopAndDeleteAllRunningWorkspaces(namespace: string)
|
|
37
|
+
stopAndDeleteAllRunningWorkspaces(namespace: string): void;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Stop all run workspaces without stopping and waiting for of 'Stopped' phase
|
|
41
41
|
* Similar with 'force' deleting
|
|
42
42
|
*/
|
|
43
|
-
deleteAllWorkspaces(namespace: string)
|
|
43
|
+
deleteAllWorkspaces(namespace: string): void;
|
|
44
44
|
|
|
45
45
|
/*=====================
|
|
46
46
|
* DEPRECATED METHODS *
|
|
@@ -49,27 +49,27 @@ export interface ITestWorkspaceUtil {
|
|
|
49
49
|
/**
|
|
50
50
|
* @deprecated Method deprecated. Works with CHE server only
|
|
51
51
|
*/
|
|
52
|
-
cleanUpAllWorkspaces()
|
|
52
|
+
cleanUpAllWorkspaces(): void;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* @deprecated Method deprecated. Works with CHE server only
|
|
56
56
|
*/
|
|
57
|
-
cleanUpRunningWorkspace(workspaceName: string)
|
|
57
|
+
cleanUpRunningWorkspace(workspaceName: string): void;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @deprecated Method deprecated. Works with CHE server only
|
|
61
61
|
*/
|
|
62
|
-
waitPluginAdding(namespace: string, workspaceName: string, pluginId: string)
|
|
62
|
+
waitPluginAdding(namespace: string, workspaceName: string, pluginId: string): void;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* @deprecated Method deprecated. Works with CHE server only
|
|
66
66
|
*/
|
|
67
|
-
removeWorkspaceById(id: string)
|
|
67
|
+
removeWorkspaceById(id: string): void;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* @deprecated Method deprecated. Works with CHE server only
|
|
71
71
|
*/
|
|
72
|
-
stopWorkspaceById(id: string)
|
|
72
|
+
stopWorkspaceById(id: string): void;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* @deprecated Method deprecated. Works with CHE server only
|
package/mocha-code.json
DELETED
package/mocha-factory-code.json
DELETED