@eclipse-che/che-e2e 7.73.0-dev-11985ec → 7.73.0-dev-62c0c9d

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.
Files changed (178) hide show
  1. package/configs/inversify.config.ts +6 -6
  2. package/configs/inversify.types.ts +27 -27
  3. package/configs/mocharc.ts +21 -21
  4. package/constants/APITestConstants.ts +39 -38
  5. package/constants/BaseTestConstants.ts +44 -43
  6. package/constants/ChromeDriverConstants.ts +29 -29
  7. package/constants/FactoryTestConstants.ts +30 -30
  8. package/constants/MonacoConstants.ts +10 -10
  9. package/constants/OAuthConstants.ts +46 -46
  10. package/constants/PluginsTestConstants.ts +1 -1
  11. package/constants/ReporterConstants.ts +28 -28
  12. package/constants/TimeoutConstants.ts +101 -101
  13. package/dist/configs/inversify.config.js.map +1 -1
  14. package/dist/configs/inversify.types.js.map +1 -1
  15. package/dist/configs/mocharc.js +1 -1
  16. package/dist/configs/mocharc.js.map +1 -1
  17. package/dist/constants/APITestConstants.js +2 -2
  18. package/dist/constants/APITestConstants.js.map +1 -1
  19. package/dist/constants/BaseTestConstants.js +1 -1
  20. package/dist/constants/BaseTestConstants.js.map +1 -1
  21. package/dist/constants/ChromeDriverConstants.js +1 -1
  22. package/dist/constants/ChromeDriverConstants.js.map +1 -1
  23. package/dist/constants/FactoryTestConstants.js +2 -2
  24. package/dist/constants/FactoryTestConstants.js.map +1 -1
  25. package/dist/constants/MonacoConstants.js +1 -1
  26. package/dist/constants/MonacoConstants.js.map +1 -1
  27. package/dist/constants/OAuthConstants.js +1 -1
  28. package/dist/constants/OAuthConstants.js.map +1 -1
  29. package/dist/constants/PluginsTestConstants.js +1 -1
  30. package/dist/constants/ReporterConstants.js +1 -1
  31. package/dist/constants/ReporterConstants.js.map +1 -1
  32. package/dist/constants/TimeoutConstants.js.map +1 -1
  33. package/dist/driver/ChromeDriver.js.map +1 -1
  34. package/dist/pageobjects/dashboard/CreateWorkspace.js +8 -8
  35. package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -1
  36. package/dist/pageobjects/dashboard/Dashboard.js +11 -11
  37. package/dist/pageobjects/dashboard/Dashboard.js.map +1 -1
  38. package/dist/pageobjects/dashboard/Workspaces.js +14 -14
  39. package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
  40. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +8 -8
  41. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
  42. package/dist/pageobjects/git-providers/OauthPage.js +21 -21
  43. package/dist/pageobjects/git-providers/OauthPage.js.map +1 -1
  44. package/dist/pageobjects/ide/CheCodeLocatorLoader.js +1 -1
  45. package/dist/pageobjects/ide/CheCodeLocatorLoader.js.map +1 -1
  46. package/dist/pageobjects/login/kubernetes/DexLoginPage.js +5 -5
  47. package/dist/pageobjects/login/kubernetes/DexLoginPage.js.map +1 -1
  48. package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js +1 -1
  49. package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js.map +1 -1
  50. package/dist/pageobjects/login/openshift/OcpLoginPage.js +10 -10
  51. package/dist/pageobjects/login/openshift/OcpLoginPage.js.map +1 -1
  52. package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js +2 -2
  53. package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js.map +1 -1
  54. package/dist/pageobjects/login/openshift/OcpUserLoginPage.js +1 -1
  55. package/dist/pageobjects/login/openshift/OcpUserLoginPage.js.map +1 -1
  56. package/dist/pageobjects/login/openshift/RedHatLoginPage.js +6 -6
  57. package/dist/pageobjects/login/openshift/RedHatLoginPage.js.map +1 -1
  58. package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js +2 -2
  59. package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js.map +1 -1
  60. package/dist/pageobjects/openshift/OcpApplicationPage.js +2 -2
  61. package/dist/pageobjects/openshift/OcpApplicationPage.js.map +1 -1
  62. package/dist/pageobjects/openshift/OcpImportFromGitPage.js +5 -5
  63. package/dist/pageobjects/openshift/OcpImportFromGitPage.js.map +1 -1
  64. package/dist/pageobjects/openshift/OcpMainPage.js +11 -11
  65. package/dist/pageobjects/openshift/OcpMainPage.js.map +1 -1
  66. package/dist/specs/MochaHooks.js +1 -1
  67. package/dist/specs/MochaHooks.js.map +1 -1
  68. package/dist/specs/SmokeTest.spec.js +7 -3
  69. package/dist/specs/SmokeTest.spec.js.map +1 -1
  70. package/dist/specs/api/ContainerOverridesAPI.spec.js.map +1 -1
  71. package/dist/specs/api/DevfileAcceptanceTestAPI.spec.js +7 -5
  72. package/dist/specs/api/DevfileAcceptanceTestAPI.spec.js.map +1 -1
  73. package/dist/specs/api/EmptyWorkspaceAPI.spec.js +1 -1
  74. package/dist/specs/api/EmptyWorkspaceAPI.spec.js.map +1 -1
  75. package/dist/specs/api/PodOverridesAPI.spec.js.map +1 -1
  76. package/dist/specs/dashboard-samples/EmptyWorkspace.spec.js +9 -5
  77. package/dist/specs/dashboard-samples/EmptyWorkspace.spec.js.map +1 -1
  78. package/dist/specs/dashboard-samples/Quarkus.spec.js +7 -3
  79. package/dist/specs/dashboard-samples/Quarkus.spec.js.map +1 -1
  80. package/dist/specs/dashboard-samples/{RecomendedExtentions.spec.js → RecommendedExtensions.spec.js} +7 -3
  81. package/dist/specs/dashboard-samples/{RecomendedExtentions.spec.js.map → RecommendedExtensions.spec.js.map} +1 -1
  82. package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js +3 -1
  83. package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js.map +1 -1
  84. package/dist/specs/factory/Factory.spec.js +3 -1
  85. package/dist/specs/factory/Factory.spec.js.map +1 -1
  86. package/dist/specs/factory/NoSetupRepoFactory.spec.js +4 -2
  87. package/dist/specs/factory/NoSetupRepoFactory.spec.js.map +1 -1
  88. package/dist/specs/factory/RefusedOAuthFactory.spec.js +4 -2
  89. package/dist/specs/factory/RefusedOAuthFactory.spec.js.map +1 -1
  90. package/dist/specs/miscellaneous/PredefinedNamespace.spec.js +6 -2
  91. package/dist/specs/miscellaneous/PredefinedNamespace.spec.js.map +1 -1
  92. package/dist/tests-library/LoginTests.js.map +1 -1
  93. package/dist/tests-library/ProjectAndFileTests.js +3 -3
  94. package/dist/tests-library/ProjectAndFileTests.js.map +1 -1
  95. package/dist/tests-library/WorkspaceHandlingTests.js +54 -74
  96. package/dist/tests-library/WorkspaceHandlingTests.js.map +1 -1
  97. package/dist/utils/BrowserTabsUtil.js +10 -10
  98. package/dist/utils/BrowserTabsUtil.js.map +1 -1
  99. package/dist/utils/CheReporter.js.map +1 -1
  100. package/dist/utils/DevWorkspaceConfigurationHelper.js +2 -2
  101. package/dist/utils/DevWorkspaceConfigurationHelper.js.map +1 -1
  102. package/dist/utils/DevfilesRegistryHelper.js +7 -7
  103. package/dist/utils/DevfilesRegistryHelper.js.map +1 -1
  104. package/dist/utils/DriverHelper.js +81 -81
  105. package/dist/utils/DriverHelper.js.map +1 -1
  106. package/dist/utils/KubernetesCommandLineToolsExecutor.js +38 -35
  107. package/dist/utils/KubernetesCommandLineToolsExecutor.js.map +1 -1
  108. package/dist/utils/Logger.js +19 -10
  109. package/dist/utils/Logger.js.map +1 -1
  110. package/dist/utils/ScreenCatcher.js.map +1 -1
  111. package/dist/utils/ShellExecutor.js.map +1 -1
  112. package/dist/utils/StringUtil.js +2 -2
  113. package/dist/utils/StringUtil.js.map +1 -1
  114. package/dist/utils/request-handlers/CheApiRequestHandler.js +13 -11
  115. package/dist/utils/request-handlers/CheApiRequestHandler.js.map +1 -1
  116. package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js +1 -1
  117. package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -1
  118. package/dist/utils/workspace/ApiUrlResolver.js +3 -3
  119. package/dist/utils/workspace/ApiUrlResolver.js.map +1 -1
  120. package/dist/utils/workspace/TestWorkspaceUtil.js +20 -16
  121. package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
  122. package/dist/utils/workspace/WorkspaceStatus.js.map +1 -1
  123. package/driver/ChromeDriver.ts +44 -44
  124. package/driver/IDriver.ts +1 -1
  125. package/package.json +1 -1
  126. package/pageobjects/dashboard/CreateWorkspace.ts +52 -52
  127. package/pageobjects/dashboard/Dashboard.ts +72 -72
  128. package/pageobjects/dashboard/Workspaces.ts +138 -139
  129. package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +92 -93
  130. package/pageobjects/git-providers/OauthPage.ts +136 -136
  131. package/pageobjects/ide/CheCodeLocatorLoader.ts +40 -40
  132. package/pageobjects/login/interfaces/ICheLoginPage.ts +1 -1
  133. package/pageobjects/login/interfaces/IOcpLoginPage.ts +1 -1
  134. package/pageobjects/login/kubernetes/DexLoginPage.ts +27 -27
  135. package/pageobjects/login/kubernetes/KubernetesLoginPage.ts +11 -11
  136. package/pageobjects/login/openshift/OcpLoginPage.ts +50 -50
  137. package/pageobjects/login/openshift/OcpRedHatLoginPage.ts +21 -21
  138. package/pageobjects/login/openshift/OcpUserLoginPage.ts +14 -14
  139. package/pageobjects/login/openshift/RedHatLoginPage.ts +44 -41
  140. package/pageobjects/login/openshift/RegularUserOcpCheLoginPage.ts +23 -23
  141. package/pageobjects/openshift/OcpApplicationPage.ts +16 -16
  142. package/pageobjects/openshift/OcpImportFromGitPage.ts +54 -54
  143. package/pageobjects/openshift/OcpMainPage.ts +64 -64
  144. package/specs/MochaHooks.ts +44 -44
  145. package/specs/SmokeTest.spec.ts +35 -31
  146. package/specs/api/ContainerOverridesAPI.spec.ts +23 -23
  147. package/specs/api/DevfileAcceptanceTestAPI.spec.ts +93 -91
  148. package/specs/api/EmptyWorkspaceAPI.spec.ts +50 -50
  149. package/specs/api/PodOverridesAPI.spec.ts +29 -29
  150. package/specs/dashboard-samples/EmptyWorkspace.spec.ts +29 -25
  151. package/specs/dashboard-samples/Quarkus.spec.ts +31 -27
  152. package/specs/dashboard-samples/RecommendedExtensions.spec.ts +205 -0
  153. package/specs/devconsole-intergration/DevConsoleIntegration.spec.ts +62 -64
  154. package/specs/factory/Factory.spec.ts +149 -147
  155. package/specs/factory/NoSetupRepoFactory.spec.ts +188 -186
  156. package/specs/factory/RefusedOAuthFactory.spec.ts +182 -180
  157. package/specs/miscellaneous/PredefinedNamespace.spec.ts +52 -48
  158. package/tests-library/LoginTests.ts +29 -29
  159. package/tests-library/ProjectAndFileTests.ts +13 -13
  160. package/tests-library/WorkspaceHandlingTests.ts +84 -103
  161. package/utils/BrowserTabsUtil.ts +69 -69
  162. package/utils/CheReporter.ts +4 -6
  163. package/utils/DevWorkspaceConfigurationHelper.ts +58 -58
  164. package/utils/DevfilesRegistryHelper.ts +51 -51
  165. package/utils/DriverHelper.ts +599 -600
  166. package/utils/KubernetesCommandLineToolsExecutor.ts +166 -158
  167. package/utils/Logger.ts +98 -67
  168. package/utils/ScreenCatcher.ts +42 -42
  169. package/utils/ShellExecutor.ts +10 -10
  170. package/utils/StringUtil.ts +29 -30
  171. package/utils/request-handlers/CheApiRequestHandler.ts +84 -82
  172. package/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +18 -18
  173. package/utils/request-handlers/headers/IAuthorizationHeaderHandler.ts +1 -1
  174. package/utils/workspace/ApiUrlResolver.ts +23 -23
  175. package/utils/workspace/ITestWorkspaceUtil.ts +29 -29
  176. package/utils/workspace/TestWorkspaceUtil.ts +120 -116
  177. package/utils/workspace/WorkspaceStatus.ts +3 -3
  178. package/specs/dashboard-samples/RecomendedExtentions.spec.ts +0 -201
@@ -14,64 +14,64 @@ import { APITestConstants, SupportedDevfilesRegistries } from '../constants/APIT
14
14
 
15
15
  export class DevfilesRegistryHelper {
16
16
 
17
- async getInbuiltDevfilesRegistryContent(): Promise<AxiosResponse> {
18
- Logger.debug(`${this.constructor.name}.${this.getInbuiltDevfilesRegistryContent.name}`);
19
- return await this.getContent(SupportedDevfilesRegistries.INBUILT_APPLICATION_DEVFILE_REGISTRY_URL());
20
- }
17
+ async getInbuiltDevfilesRegistryContent(): Promise<AxiosResponse> {
18
+ Logger.debug();
19
+ return await this.getContent(SupportedDevfilesRegistries.INBUILT_APPLICATION_DEVFILE_REGISTRY_URL());
20
+ }
21
21
 
22
- async getGitHubCheDevfileRegistryContent(): Promise<AxiosResponse> {
23
- Logger.debug(`${this.constructor.name}.${this.getGitHubCheDevfileRegistryContent.name}`);
24
- return await this.getContent(SupportedDevfilesRegistries.GIT_HUB_CHE_DEVFILE_REGISTRY_URL);
25
- }
22
+ async getGitHubCheDevfileRegistryContent(): Promise<AxiosResponse> {
23
+ Logger.debug();
24
+ return await this.getContent(SupportedDevfilesRegistries.GIT_HUB_CHE_DEVFILE_REGISTRY_URL);
25
+ }
26
26
 
27
- async collectPathsToDevfilesFromRegistry(): Promise<object[]> {
28
- Logger.debug(`${this.constructor.name}.${this.collectPathsToDevfilesFromRegistry.name}`);
29
- const devfileSamples: object[] = [];
30
- const sampleNames: string[] = [];
31
- switch (APITestConstants.TS_API_ACCEPTANCE_TEST_REGISTRY_URL()) {
32
- case (SupportedDevfilesRegistries.GIT_HUB_CHE_DEVFILE_REGISTRY_URL): {
33
- const content: any[any] = await this.getGitHubCheDevfileRegistryContent();
34
- content.forEach((e: any) => {
35
- if (e.name[0] !== '.') { sampleNames.push(e.name); }
36
- });
27
+ async collectPathsToDevfilesFromRegistry(): Promise<object[]> {
28
+ Logger.debug();
29
+ const devfileSamples: object[] = [];
30
+ const sampleNames: string[] = [];
31
+ switch (APITestConstants.TS_API_ACCEPTANCE_TEST_REGISTRY_URL()) {
32
+ case (SupportedDevfilesRegistries.GIT_HUB_CHE_DEVFILE_REGISTRY_URL): {
33
+ const content: any[any] = await this.getGitHubCheDevfileRegistryContent();
34
+ content.forEach((e: any) => {
35
+ if (e.name[0] !== '.') { sampleNames.push(e.name); }
36
+ });
37
37
 
38
- for (const sample of sampleNames) {
39
- const sampleEndpoint: string = `${SupportedDevfilesRegistries.GIT_HUB_CHE_DEVFILE_REGISTRY_URL}${sample}/meta.yaml`;
40
- const sampleEndpointContent: AxiosResponse = await this.getContent(sampleEndpoint);
41
- const decodedFileContent: string = Buffer.from((sampleEndpointContent as any).content, 'base64').toString();
42
- const metaYamlContent: any = YAML.parse(decodedFileContent);
43
- devfileSamples.push({name: sample, link: metaYamlContent.links.v2});
44
- }
45
- Logger.debug(`${this.constructor.name}.${this.collectPathsToDevfilesFromRegistry.name}: samples list: ${JSON.stringify(devfileSamples)}`);
46
- }
47
- break;
48
- case (SupportedDevfilesRegistries.INBUILT_APPLICATION_DEVFILE_REGISTRY_URL()): {
49
- const content: any[any] = await this.getInbuiltDevfilesRegistryContent();
38
+ for (const sample of sampleNames) {
39
+ const sampleEndpoint: string = `${SupportedDevfilesRegistries.GIT_HUB_CHE_DEVFILE_REGISTRY_URL}${sample}/meta.yaml`;
40
+ const sampleEndpointContent: AxiosResponse = await this.getContent(sampleEndpoint);
41
+ const decodedFileContent: string = Buffer.from((sampleEndpointContent as any).content, 'base64').toString();
42
+ const metaYamlContent: any = YAML.parse(decodedFileContent);
43
+ devfileSamples.push({ name: sample, link: metaYamlContent.links.v2 });
44
+ }
45
+ Logger.debug(`samples list: ${JSON.stringify(devfileSamples)}`);
46
+ }
47
+ break;
48
+ case (SupportedDevfilesRegistries.INBUILT_APPLICATION_DEVFILE_REGISTRY_URL()): {
49
+ const content: any[any] = await this.getInbuiltDevfilesRegistryContent();
50
50
 
51
- for (const sample of content) {
52
- devfileSamples.push({name: sample.displayName, link: sample.links.v2});
53
- }
54
- Logger.debug(`${this.constructor.name}.${this.collectPathsToDevfilesFromRegistry.name}: samples list: ${JSON.stringify(devfileSamples)}`);
55
- }
56
- break;
57
- default: {
58
- Logger.error(`${this.constructor.name}.${this.collectPathsToDevfilesFromRegistry.name}: unsupported registry url - ${APITestConstants.TS_API_ACCEPTANCE_TEST_REGISTRY_URL()}\n
59
- supported registries: ${JSON.stringify(SupportedDevfilesRegistries)}`);
60
- }
51
+ for (const sample of content) {
52
+ devfileSamples.push({ name: sample.displayName, link: sample.links.v2 });
61
53
  }
62
- return devfileSamples;
54
+ Logger.debug(`samples list: ${JSON.stringify(devfileSamples)}`);
55
+ }
56
+ break;
57
+ default: {
58
+ Logger.error(`unsupported registry url - ${APITestConstants.TS_API_ACCEPTANCE_TEST_REGISTRY_URL()}\n
59
+ supported registries: ${JSON.stringify(SupportedDevfilesRegistries)}`);
60
+ }
63
61
  }
62
+ return devfileSamples;
63
+ }
64
64
 
65
- private async getContent(url: string, headers?: object): Promise<AxiosResponse> {
66
- Logger.debug(`${this.constructor.name}.${this.getContent.name}: ${url}`);
65
+ private async getContent(url: string, headers?: object): Promise<AxiosResponse> {
66
+ Logger.debug(`${url}`);
67
67
 
68
- let response: AxiosResponse | undefined;
69
- try {
70
- response = await axios.get(url, headers);
71
- } catch (error) {
72
- Logger.error(`${error} + ${url}`);
73
- throw error;
74
- }
75
- return response?.data;
68
+ let response: AxiosResponse | undefined;
69
+ try {
70
+ response = await axios.get(url, headers);
71
+ } catch (error) {
72
+ Logger.error(`${error} + ${url}`);
73
+ throw error;
76
74
  }
75
+ return response?.data;
76
+ }
77
77
  }