@eclipse-che/che-e2e 7.73.0 → 7.74.0-dev-41d1364

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 (222) hide show
  1. package/.eslintignore +10 -0
  2. package/.eslintrc.js +183 -0
  3. package/.prettierignore +10 -0
  4. package/.prettierrc.json +10 -0
  5. package/README.md +47 -47
  6. package/configs/inversify.config.ts +14 -10
  7. package/configs/inversify.types.ts +29 -29
  8. package/configs/mocharc.ts +21 -24
  9. package/constants/API_TEST_CONSTANTS.ts +67 -0
  10. package/constants/BASE_TEST_CONSTANTS.ts +80 -0
  11. package/constants/CHROME_DRIVER_CONSTANTS.ts +54 -0
  12. package/constants/FACTORY_TEST_CONSTANTS.ts +61 -0
  13. package/constants/MONACO_CONSTANTS.ts +25 -0
  14. package/constants/OAUTH_CONSTANTS.ts +67 -0
  15. package/constants/PLUGIN_TEST_CONSTANTS.ts +15 -0
  16. package/constants/REPORTER_CONSTANTS.ts +53 -0
  17. package/constants/TIMEOUT_CONSTANTS.ts +131 -0
  18. package/dist/configs/inversify.config.js +14 -8
  19. package/dist/configs/inversify.config.js.map +1 -1
  20. package/dist/configs/inversify.types.js +2 -2
  21. package/dist/configs/inversify.types.js.map +1 -1
  22. package/dist/configs/mocharc.js +13 -16
  23. package/dist/configs/mocharc.js.map +1 -1
  24. package/dist/constants/{APITestConstants.js → API_TEST_CONSTANTS.js} +13 -13
  25. package/dist/constants/API_TEST_CONSTANTS.js.map +1 -0
  26. package/dist/constants/{BaseTestConstants.js → BASE_TEST_CONSTANTS.js} +17 -16
  27. package/dist/constants/BASE_TEST_CONSTANTS.js.map +1 -0
  28. package/dist/constants/{ChromeDriverConstants.js → CHROME_DRIVER_CONSTANTS.js} +14 -14
  29. package/dist/constants/CHROME_DRIVER_CONSTANTS.js.map +1 -0
  30. package/dist/constants/{FactoryTestConstants.js → FACTORY_TEST_CONSTANTS.js} +15 -14
  31. package/dist/constants/FACTORY_TEST_CONSTANTS.js.map +1 -0
  32. package/dist/constants/{MonacoConstants.js → MONACO_CONSTANTS.js} +8 -8
  33. package/dist/constants/MONACO_CONSTANTS.js.map +1 -0
  34. package/dist/constants/{OAuthConstants.js → OAUTH_CONSTANTS.js} +15 -15
  35. package/dist/constants/OAUTH_CONSTANTS.js.map +1 -0
  36. package/dist/constants/{PluginsTestConstants.js → PLUGIN_TEST_CONSTANTS.js} +7 -7
  37. package/dist/constants/PLUGIN_TEST_CONSTANTS.js.map +1 -0
  38. package/dist/constants/{ReporterConstants.js → REPORTER_CONSTANTS.js} +13 -13
  39. package/dist/constants/REPORTER_CONSTANTS.js.map +1 -0
  40. package/dist/constants/{TimeoutConstants.js → TIMEOUT_CONSTANTS.js} +24 -24
  41. package/dist/constants/TIMEOUT_CONSTANTS.js.map +1 -0
  42. package/dist/driver/ChromeDriver.js +12 -16
  43. package/dist/driver/ChromeDriver.js.map +1 -1
  44. package/dist/index.js +9 -9
  45. package/dist/index.js.map +1 -1
  46. package/dist/pageobjects/dashboard/CreateWorkspace.js +18 -18
  47. package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -1
  48. package/dist/pageobjects/dashboard/Dashboard.js +27 -27
  49. package/dist/pageobjects/dashboard/Dashboard.js.map +1 -1
  50. package/dist/pageobjects/dashboard/Workspaces.js +42 -42
  51. package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
  52. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +44 -33
  53. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
  54. package/dist/pageobjects/git-providers/OauthPage.js +37 -35
  55. package/dist/pageobjects/git-providers/OauthPage.js.map +1 -1
  56. package/dist/pageobjects/ide/CheCodeLocatorLoader.js +10 -10
  57. package/dist/pageobjects/ide/CheCodeLocatorLoader.js.map +1 -1
  58. package/dist/pageobjects/login/interfaces/ICheLoginPage.js +2 -2
  59. package/dist/pageobjects/login/interfaces/IOcpLoginPage.js +2 -2
  60. package/dist/pageobjects/login/kubernetes/DexLoginPage.js +10 -10
  61. package/dist/pageobjects/login/kubernetes/DexLoginPage.js.map +1 -1
  62. package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js +6 -6
  63. package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js.map +1 -1
  64. package/dist/pageobjects/login/openshift/OcpLoginPage.js +23 -23
  65. package/dist/pageobjects/login/openshift/OcpLoginPage.js.map +1 -1
  66. package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js +7 -7
  67. package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js.map +1 -1
  68. package/dist/pageobjects/login/openshift/OcpUserLoginPage.js +7 -7
  69. package/dist/pageobjects/login/openshift/OcpUserLoginPage.js.map +1 -1
  70. package/dist/pageobjects/login/openshift/RedHatLoginPage.js +11 -11
  71. package/dist/pageobjects/login/openshift/RedHatLoginPage.js.map +1 -1
  72. package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js +10 -10
  73. package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js.map +1 -1
  74. package/dist/pageobjects/openshift/OcpApplicationPage.js +7 -7
  75. package/dist/pageobjects/openshift/OcpApplicationPage.js.map +1 -1
  76. package/dist/pageobjects/openshift/OcpImportFromGitPage.js +9 -9
  77. package/dist/pageobjects/openshift/OcpImportFromGitPage.js.map +1 -1
  78. package/dist/pageobjects/openshift/OcpMainPage.js +15 -15
  79. package/dist/pageobjects/openshift/OcpMainPage.js.map +1 -1
  80. package/dist/specs/MochaHooks.js +27 -24
  81. package/dist/specs/MochaHooks.js.map +1 -1
  82. package/dist/specs/SmokeTest.spec.js +17 -13
  83. package/dist/specs/SmokeTest.spec.js.map +1 -1
  84. package/dist/specs/api/ContainerOverridesAPI.spec.js +10 -1
  85. package/dist/specs/api/ContainerOverridesAPI.spec.js.map +1 -1
  86. package/dist/specs/api/DevfileAcceptanceTestAPI.spec.js +31 -18
  87. package/dist/specs/api/DevfileAcceptanceTestAPI.spec.js.map +1 -1
  88. package/dist/specs/api/EmptyWorkspaceAPI.spec.js +18 -12
  89. package/dist/specs/api/EmptyWorkspaceAPI.spec.js.map +1 -1
  90. package/dist/specs/api/PodOverridesAPI.spec.js +12 -2
  91. package/dist/specs/api/PodOverridesAPI.spec.js.map +1 -1
  92. package/dist/specs/dashboard-samples/EmptyWorkspace.spec.js +12 -8
  93. package/dist/specs/dashboard-samples/EmptyWorkspace.spec.js.map +1 -1
  94. package/dist/specs/dashboard-samples/Quarkus.spec.js +13 -9
  95. package/dist/specs/dashboard-samples/Quarkus.spec.js.map +1 -1
  96. package/dist/specs/dashboard-samples/RecommendedExtensions.spec.js +47 -43
  97. package/dist/specs/dashboard-samples/RecommendedExtensions.spec.js.map +1 -1
  98. package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js +17 -10
  99. package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js.map +1 -1
  100. package/dist/specs/factory/Factory.spec.js +28 -26
  101. package/dist/specs/factory/Factory.spec.js.map +1 -1
  102. package/dist/specs/factory/NoSetupRepoFactory.spec.js +41 -36
  103. package/dist/specs/factory/NoSetupRepoFactory.spec.js.map +1 -1
  104. package/dist/specs/factory/RefusedOAuthFactory.spec.js +37 -35
  105. package/dist/specs/factory/RefusedOAuthFactory.spec.js.map +1 -1
  106. package/dist/specs/miscellaneous/PredefinedNamespace.spec.js +18 -5
  107. package/dist/specs/miscellaneous/PredefinedNamespace.spec.js.map +1 -1
  108. package/dist/tests-library/LoginTests.js +7 -7
  109. package/dist/tests-library/LoginTests.js.map +1 -1
  110. package/dist/tests-library/ProjectAndFileTests.js +9 -7
  111. package/dist/tests-library/ProjectAndFileTests.js.map +1 -1
  112. package/dist/tests-library/WorkspaceHandlingTests.js +61 -78
  113. package/dist/tests-library/WorkspaceHandlingTests.js.map +1 -1
  114. package/dist/utils/BrowserTabsUtil.js +29 -24
  115. package/dist/utils/BrowserTabsUtil.js.map +1 -1
  116. package/dist/utils/CheReporter.js +44 -44
  117. package/dist/utils/CheReporter.js.map +1 -1
  118. package/dist/utils/DevWorkspaceConfigurationHelper.js +19 -10
  119. package/dist/utils/DevWorkspaceConfigurationHelper.js.map +1 -1
  120. package/dist/utils/DevfilesRegistryHelper.js +25 -19
  121. package/dist/utils/DevfilesRegistryHelper.js.map +1 -1
  122. package/dist/utils/DriverHelper.js +126 -128
  123. package/dist/utils/DriverHelper.js.map +1 -1
  124. package/dist/utils/KubernetesCommandLineToolsExecutor.js +53 -46
  125. package/dist/utils/KubernetesCommandLineToolsExecutor.js.map +1 -1
  126. package/dist/utils/Logger.js +62 -39
  127. package/dist/utils/Logger.js.map +1 -1
  128. package/dist/utils/ScreenCatcher.js +18 -12
  129. package/dist/utils/ScreenCatcher.js.map +1 -1
  130. package/dist/utils/ShellExecutor.js +9 -0
  131. package/dist/utils/ShellExecutor.js.map +1 -1
  132. package/dist/utils/StringUtil.js +17 -9
  133. package/dist/utils/StringUtil.js.map +1 -1
  134. package/dist/utils/request-handlers/CheApiRequestHandler.js +36 -34
  135. package/dist/utils/request-handlers/CheApiRequestHandler.js.map +1 -1
  136. package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js +10 -6
  137. package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -1
  138. package/dist/utils/request-handlers/headers/IAuthorizationHeaderHandler.js +2 -2
  139. package/dist/utils/workspace/ApiUrlResolver.js +5 -5
  140. package/dist/utils/workspace/ApiUrlResolver.js.map +1 -1
  141. package/dist/utils/workspace/ITestWorkspaceUtil.js +2 -2
  142. package/dist/utils/workspace/TestWorkspaceUtil.js +36 -30
  143. package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
  144. package/dist/utils/workspace/WorkspaceStatus.js +2 -2
  145. package/dist/utils/workspace/WorkspaceStatus.js.map +1 -1
  146. package/driver/ChromeDriver.ts +45 -51
  147. package/driver/IDriver.ts +3 -3
  148. package/index.ts +9 -9
  149. package/package.json +59 -49
  150. package/pageobjects/dashboard/CreateWorkspace.ts +65 -56
  151. package/pageobjects/dashboard/Dashboard.ts +101 -100
  152. package/pageobjects/dashboard/Workspaces.ts +197 -166
  153. package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +151 -127
  154. package/pageobjects/git-providers/OauthPage.ts +177 -166
  155. package/pageobjects/ide/CheCodeLocatorLoader.ts +49 -46
  156. package/pageobjects/login/interfaces/ICheLoginPage.ts +3 -3
  157. package/pageobjects/login/interfaces/IOcpLoginPage.ts +3 -3
  158. package/pageobjects/login/kubernetes/DexLoginPage.ts +32 -31
  159. package/pageobjects/login/kubernetes/KubernetesLoginPage.ts +16 -15
  160. package/pageobjects/login/openshift/OcpLoginPage.ts +62 -55
  161. package/pageobjects/login/openshift/OcpRedHatLoginPage.ts +30 -25
  162. package/pageobjects/login/openshift/OcpUserLoginPage.ts +16 -19
  163. package/pageobjects/login/openshift/RedHatLoginPage.ts +49 -44
  164. package/pageobjects/login/openshift/RegularUserOcpCheLoginPage.ts +39 -35
  165. package/pageobjects/openshift/OcpApplicationPage.ts +21 -20
  166. package/pageobjects/openshift/OcpImportFromGitPage.ts +70 -68
  167. package/pageobjects/openshift/OcpMainPage.ts +69 -68
  168. package/resources/pod-overrides-airgap.yaml +37 -0
  169. package/specs/MochaHooks.ts +59 -50
  170. package/specs/SmokeTest.spec.ts +43 -36
  171. package/specs/api/ContainerOverridesAPI.spec.ts +33 -26
  172. package/specs/api/DevfileAcceptanceTestAPI.spec.ts +107 -94
  173. package/specs/api/EmptyWorkspaceAPI.spec.ts +62 -57
  174. package/specs/api/PodOverridesAPI.spec.ts +42 -32
  175. package/specs/dashboard-samples/EmptyWorkspace.spec.ts +31 -27
  176. package/specs/dashboard-samples/Quarkus.spec.ts +34 -30
  177. package/specs/dashboard-samples/RecommendedExtensions.spec.ts +192 -170
  178. package/specs/devconsole-intergration/DevConsoleIntegration.spec.ts +62 -55
  179. package/specs/factory/Factory.spec.ts +178 -166
  180. package/specs/factory/NoSetupRepoFactory.spec.ts +227 -210
  181. package/specs/factory/RefusedOAuthFactory.spec.ts +219 -203
  182. package/specs/miscellaneous/PredefinedNamespace.spec.ts +64 -50
  183. package/tests-library/LoginTests.ts +34 -32
  184. package/tests-library/ProjectAndFileTests.ts +21 -18
  185. package/tests-library/WorkspaceHandlingTests.ts +98 -108
  186. package/tsconfig.json +15 -15
  187. package/utils/BrowserTabsUtil.ts +104 -98
  188. package/utils/CheReporter.ts +142 -148
  189. package/utils/DevWorkspaceConfigurationHelper.ts +70 -61
  190. package/utils/DevfilesRegistryHelper.ts +67 -58
  191. package/utils/DriverHelper.ts +726 -701
  192. package/utils/KubernetesCommandLineToolsExecutor.ts +196 -172
  193. package/utils/Logger.ts +104 -75
  194. package/utils/ScreenCatcher.ts +59 -48
  195. package/utils/ShellExecutor.ts +19 -11
  196. package/utils/StringUtil.ts +40 -32
  197. package/utils/request-handlers/CheApiRequestHandler.ts +92 -87
  198. package/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +32 -21
  199. package/utils/request-handlers/headers/IAuthorizationHeaderHandler.ts +3 -3
  200. package/utils/workspace/ApiUrlResolver.ts +31 -26
  201. package/utils/workspace/ITestWorkspaceUtil.ts +31 -31
  202. package/utils/workspace/TestWorkspaceUtil.ts +153 -142
  203. package/utils/workspace/WorkspaceStatus.ts +5 -5
  204. package/constants/APITestConstants.ts +0 -56
  205. package/constants/BaseTestConstants.ts +0 -65
  206. package/constants/ChromeDriverConstants.ts +0 -46
  207. package/constants/FactoryTestConstants.ts +0 -51
  208. package/constants/MonacoConstants.ts +0 -22
  209. package/constants/OAuthConstants.ts +0 -57
  210. package/constants/PluginsTestConstants.ts +0 -15
  211. package/constants/ReporterConstants.ts +0 -45
  212. package/constants/TimeoutConstants.ts +0 -113
  213. package/dist/constants/APITestConstants.js.map +0 -1
  214. package/dist/constants/BaseTestConstants.js.map +0 -1
  215. package/dist/constants/ChromeDriverConstants.js.map +0 -1
  216. package/dist/constants/FactoryTestConstants.js.map +0 -1
  217. package/dist/constants/MonacoConstants.js.map +0 -1
  218. package/dist/constants/OAuthConstants.js.map +0 -1
  219. package/dist/constants/PluginsTestConstants.js.map +0 -1
  220. package/dist/constants/ReporterConstants.js.map +0 -1
  221. package/dist/constants/TimeoutConstants.js.map +0 -1
  222. package/tslint.json +0 -126
package/.eslintignore ADDED
@@ -0,0 +1,10 @@
1
+ build
2
+ **report
3
+ **results**
4
+ dist
5
+ node-modules
6
+ load**
7
+ resources
8
+ **/*.html
9
+ **/**/*.sh
10
+ index.ts
package/.eslintrc.js ADDED
@@ -0,0 +1,183 @@
1
+ /** *******************************************************************
2
+ * copyright (c) 2023 Red Hat, Inc.
3
+ *
4
+ * This program and the accompanying materials are made
5
+ * available under the terms of the Eclipse Public License 2.0
6
+ * which is available at https://www.eclipse.org/legal/epl-2.0/
7
+ *
8
+ * SPDX-License-Identifier: EPL-2.0
9
+ **********************************************************************/
10
+ module.exports = {
11
+ env: {
12
+ browser: true,
13
+ es6: true,
14
+ node: true
15
+ },
16
+ extends: ['plugin:@typescript-eslint/recommended-type-checked', 'prettier'],
17
+ parser: '@typescript-eslint/parser',
18
+ parserOptions: {
19
+ project: 'tsconfig.json',
20
+ sourceType: 'module'
21
+ },
22
+ plugins: ['eslint-plugin-jsdoc', '@typescript-eslint', '@typescript-eslint/tslint', 'header', 'prettier'],
23
+ root: true,
24
+ rules: {
25
+ 'prettier/prettier': 'error',
26
+ '@typescript-eslint/dot-notation': 'error',
27
+ '@typescript-eslint/no-misused-promises': [
28
+ 'error',
29
+ {
30
+ checksVoidReturn: {
31
+ arguments: false
32
+ }
33
+ }
34
+ ],
35
+ '@typescript-eslint/member-ordering': [
36
+ 'error',
37
+ {
38
+ classes: ['field', 'constructor', 'method']
39
+ }
40
+ ],
41
+ '@typescript-eslint/explicit-function-return-type': [
42
+ 'error',
43
+ {
44
+ allowExpressions: false,
45
+ allowTypedFunctionExpressions: false,
46
+ allowHigherOrderFunctions: false,
47
+ allowDirectConstAssertionInArrowFunctions: true,
48
+ allowConciseArrowFunctionExpressionsStartingWithVoid: true
49
+ }
50
+ ],
51
+ '@typescript-eslint/explicit-module-boundary-types': [
52
+ 'error',
53
+ {
54
+ allowArgumentsExplicitlyTypedAsAny: true,
55
+ allowDirectConstAssertionInArrowFunctions: true,
56
+ allowHigherOrderFunctions: false,
57
+ allowTypedFunctionExpressions: false
58
+ }
59
+ ],
60
+ '@typescript-eslint/member-delimiter-style': 'error',
61
+ '@typescript-eslint/naming-convention': [
62
+ 'error',
63
+ {
64
+ selector: 'variable',
65
+ format: ['camelCase', 'UPPER_CASE'],
66
+ leadingUnderscore: 'forbid',
67
+ trailingUnderscore: 'forbid'
68
+ }
69
+ ],
70
+ '@typescript-eslint/no-empty-function': 'error',
71
+ '@typescript-eslint/no-parameter-properties': 'off',
72
+ '@typescript-eslint/no-explicit-any': 'off',
73
+ '@typescript-eslint/no-unsafe-member-access': 'off',
74
+ '@typescript-eslint/no-unsafe-argument': 'off',
75
+ '@typescript-eslint/no-unsafe-assignment': 'off',
76
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
77
+ '@typescript-eslint/restrict-template-expressions': 'off',
78
+ '@typescript-eslint/no-unsafe-return': 'off',
79
+ '@typescript-eslint/no-unsafe-call': 'off',
80
+ '@typescript-eslint/restrict-plus-operands': 'off',
81
+ '@typescript-eslint/no-namespace': 'off',
82
+ '@typescript-eslint/no-unused-expressions': 'error',
83
+ '@typescript-eslint/no-unused-vars': 'error',
84
+ '@typescript-eslint/no-use-before-define': 'error',
85
+ '@typescript-eslint/no-var-requires': 'off',
86
+ '@typescript-eslint/quotes': ['error', 'single'],
87
+ '@typescript-eslint/type-annotation-spacing': 'error',
88
+ '@typescript-eslint/typedef': [
89
+ 'error',
90
+ {
91
+ parameter: true,
92
+ propertyDeclaration: true,
93
+ variableDeclaration: true,
94
+ memberVariableDeclaration: true
95
+ }
96
+ ],
97
+ 'brace-style': ['error', '1tbs'],
98
+ 'capitalized-comments': ['error', 'never'],
99
+ 'comma-dangle': ['error', 'never'],
100
+ curly: 'error',
101
+ 'dot-notation': 'off',
102
+ 'eol-last': 'error',
103
+ eqeqeq: ['error', 'smart'],
104
+ 'guard-for-in': 'error',
105
+ 'id-denylist': 'off',
106
+ 'id-match': 'off',
107
+ indent: 'off',
108
+ 'jsdoc/check-alignment': 'error',
109
+ 'jsdoc/check-indentation': 'error',
110
+ 'max-len': [
111
+ 'off',
112
+ {
113
+ code: 140
114
+ }
115
+ ],
116
+ 'no-bitwise': 'error',
117
+ 'no-caller': 'error',
118
+ 'no-console': [
119
+ 'error',
120
+ {
121
+ allow: [
122
+ 'log',
123
+ 'warn',
124
+ 'dir',
125
+ 'timeLog',
126
+ 'assert',
127
+ 'clear',
128
+ 'count',
129
+ 'countReset',
130
+ 'group',
131
+ 'groupEnd',
132
+ 'table',
133
+ 'dirxml',
134
+ 'error',
135
+ 'groupCollapsed',
136
+ 'Console',
137
+ 'profile',
138
+ 'profileEnd',
139
+ 'timeStamp',
140
+ 'context'
141
+ ]
142
+ }
143
+ ],
144
+ 'header/header': [
145
+ 'error',
146
+ 'block',
147
+ [
148
+ '* *******************************************************************',
149
+ { pattern: ' \\* copyright \\(c\\) [0-9-]{4,9} Red Hat, Inc\\.', template: '* copyright (c) 2023 Red Hat, Inc.' },
150
+ ' *',
151
+ ' * This program and the accompanying materials are made',
152
+ ' * available under the terms of the Eclipse Public License 2.0',
153
+ ' * which is available at https://www.eclipse.org/legal/epl-2.0/',
154
+ ' *',
155
+ ' * SPDX-License-Identifier: EPL-2.0',
156
+ ' *********************************************************************'
157
+ ]
158
+ ],
159
+ 'no-debugger': 'error',
160
+ 'no-empty': 'error',
161
+ 'no-empty-function': 'off',
162
+ 'no-eval': 'error',
163
+ 'no-fallthrough': 'error',
164
+ 'no-new-wrappers': 'error',
165
+ 'no-redeclare': 'error',
166
+ 'no-trailing-spaces': 'error',
167
+ 'no-underscore-dangle': 'off',
168
+ 'no-unused-expressions': 'off',
169
+ 'no-unused-labels': 'error',
170
+ 'no-unused-vars': 'off',
171
+ 'no-use-before-define': 'off',
172
+ quotes: 'off',
173
+ radix: 'error',
174
+ semi: 'off',
175
+ 'spaced-comment': [
176
+ 'error',
177
+ 'always',
178
+ {
179
+ markers: ['/']
180
+ }
181
+ ]
182
+ }
183
+ };
@@ -0,0 +1,10 @@
1
+ build
2
+ **report
3
+ **results**
4
+ dist
5
+ node-modules
6
+ load**
7
+ resources
8
+ **/*.html
9
+ **/**/*.sh
10
+ index.ts
@@ -0,0 +1,10 @@
1
+ {
2
+ "trailingComma": "none",
3
+ "tabWidth": 4,
4
+ "printWidth": 140,
5
+ "semi": true,
6
+ "singleQuote": true,
7
+ "useTabs": true,
8
+ "endOfLine": "lf",
9
+ "jsxSingleQuote": true
10
+ }
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
-
2
1
  # Module for launch E2E tests related to Che 7
3
2
 
4
3
  ## Requirements
5
4
 
6
- - node 16.x
7
- - "Chrome" browser 114.x or later
8
- - deployed Che 7 with accessible URL
5
+ - node 16.x
6
+ - "Chrome" browser 114.x or later
7
+ - deployed Che 7 with accessible URL
9
8
 
10
9
  ## Before launch
11
10
 
12
11
  **Perform commands:**
13
12
 
14
- - ```export TS_SELENIUM_BASE_URL=<Che7 URL>```
15
- - ```npm ci```
13
+ - `export TS_SELENIUM_BASE_URL=<Che7 URL>`
14
+ - `npm ci`
16
15
 
17
16
  Note: If there is any modifications in package.json, manually execute the `npm install` to update the package-lock.json. So that errors can be avoided while executing npm ci
18
17
 
19
18
  ## Default launch
20
19
 
21
- - Provide connection credentials:
22
- - ```export TS_SELENIUM_OCP_USERNAME=<username>```
23
- - ```export TS_SELENIUM_OCP_PASSWORD=<password>```
24
- - ```npm run test```
20
+ - Provide connection credentials:
21
+ - `export TS_SELENIUM_OCP_USERNAME=<username>`
22
+ - `export TS_SELENIUM_OCP_PASSWORD=<password>`
23
+ - `npm run test`
25
24
 
26
25
  ## Custom launch
27
26
 
28
- - Use environment variables which described in the "constants" folder
29
- - Use environment variables for setting timeouts if needed. You can see the list in **```'TimeoutConstants.ts'```**. You can see the list of those variables and their value if you set the ```'TS_SELENIUM_PRINT_TIMEOUT_VARIABLES = true'```
30
- - To test one specification export file name as ```export USERSTORY=<spec-file-name-without-extension> && npm run test``` (example: ```-e USERSTORY=Quarkus```)
31
- - To run test without Selenium WebDriver (API tests etc.) use ```export USERSTORY=<spec-file-name-without-extension> && npm run driver-less-test``` (example: ```-e USERSTORY=CloneGitRepoAPI```)
32
- - This project support application testing deployed on Kubernetes or Openshift platform. Openshift is default value. To switch into Kubernetes, please, use `TS_PLATFORM=kubernetes` environmental variable and `TS_SELENIUM_K8S_PASSWORD`, `TS_SELENIUM_K8S_USERNAME` to provide credentials. The sample of test command in this case:
33
- ```
34
- export TS_PLATFORM=kubernetes && \
35
- export TS_SELENIUM_K8S_USERNAME=<username> && \
36
- export TS_SELENIUM_K8S_PASSWORD=<password> && \
37
- export TS_SELENIUM_BASE_URL=<ingress-url> && \
38
- npm run test
39
- ```
40
- Also, environmental variables can be set in files in "constants" folder.
41
-
27
+ - Use environment variables which described in the "constants" folder
28
+ - Use environment variables for setting timeouts if needed. You can see the list in **`'TimeoutConstants.ts'`**. You can see the list of those variables and their value if you set the `'TS_SELENIUM_PRINT_TIMEOUT_VARIABLES = true'`
29
+ - To test one specification export file name as `export USERSTORY=<spec-file-name-without-extension> && npm run test` (example: `-e USERSTORY=Quarkus`)
30
+ - To run test without Selenium WebDriver (API tests etc.) use `export USERSTORY=<spec-file-name-without-extension> && npm run driver-less-test` (example: `-e USERSTORY=CloneGitRepoAPI`)
31
+ - This project support application testing deployed on Kubernetes or Openshift platform. Openshift is default value. To switch into Kubernetes, please, use `TS_PLATFORM=kubernetes` environmental variable and `TS_SELENIUM_K8S_PASSWORD`, `TS_SELENIUM_K8S_USERNAME` to provide credentials. The sample of test command in this case:
32
+ ```
33
+ export TS_PLATFORM=kubernetes && \
34
+ export TS_SELENIUM_K8S_USERNAME=<username> && \
35
+ export TS_SELENIUM_K8S_PASSWORD=<password> && \
36
+ export TS_SELENIUM_BASE_URL=<ingress-url> && \
37
+ npm run test
38
+ ```
39
+ Also, environmental variables can be set in files in "constants" folder.
40
+
42
41
  ## Docker launch
43
42
 
44
- - open terminal and go to the "e2e" directory
45
- - export the ```"TS_SELENIUM_BASE_URL"``` variable with "Che" url
46
- - run command ```"npm run test-docker"```
43
+ - open terminal and go to the "e2e" directory
44
+ - export the `"TS_SELENIUM_BASE_URL"` variable with "Che" url
45
+ - run command `"npm run test-docker"`
47
46
 
48
47
  ## Docker launch with changed tests
49
48
 
50
49
  **For launching tests with local changes perform next steps:**
51
50
 
52
- - open terminal and go to the "e2e" directory
53
- - export the ```"TS_SELENIUM_BASE_URL"``` variable with "Che" url
54
- - run command ```"npm run test-docker-mount-e2e"```
51
+ - open terminal and go to the "e2e" directory
52
+ - export the `"TS_SELENIUM_BASE_URL"` variable with "Che" url
53
+ - run command `"npm run test-docker-mount-e2e"`
55
54
 
56
55
  ## Debug docker launch
57
56
 
58
- The ```'eclipse/che-e2e'``` docker image has VNC server installed inside. For connecting use ```'0.0.0.0:5920'``` address.
57
+ The `'eclipse/che-e2e'` docker image has VNC server installed inside. For connecting use `'0.0.0.0:5920'` address.
59
58
 
60
59
  ## The "Happy Path" scenario launching
61
60
 
62
61
  **The easiest way to do that is to perform steps which are described in the "Docker launch" paragraph.
63
62
  For running tests without docker, please perform next steps:**
64
63
 
65
- - Deploy Che on Kubernetes infrastructure by using 'Minikube' and 'Chectl' <https://github.com/eclipse-che/che-server/blob/HEAD/deploy/kubernetes/README.md>
66
- - Create workspace by using 'Chectl' and devfile
67
- - link to 'Chectl' manual <https://github.com/che-incubator/chectl#chectl-workspacestart>
68
- - link to devfile ( **```For successfull test passing, exactly provided devfile should be used```** )
69
- <https://gist.githubusercontent.com/Ohrimenko1988/93f5426f4ebc1705c55feb8ff0396a49/raw/cbea89ad145ba33ed34a151a12c50f045f9f3b78/yaml-ls-bug.yaml>
70
- - Provide the **```'TS_SELENIUM_BASE_URL'```** environment variable as described above
71
- - export TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME=EmptyWorkspace (default value, see BaseTestConstants.ts)
72
- - perform command **```export USERSTORY=$TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME && npm run test-all-devfiles```**
64
+ - Deploy Che on Kubernetes infrastructure by using 'Minikube' and 'Chectl' <https://github.com/eclipse-che/che-server/blob/HEAD/deploy/kubernetes/README.md>
65
+ - Create workspace by using 'Chectl' and devfile
66
+ - link to 'Chectl' manual <https://github.com/che-incubator/chectl#chectl-workspacestart>
67
+ - link to devfile ( **`For successfull test passing, exactly provided devfile should be used`** )
68
+ <https://gist.githubusercontent.com/Ohrimenko1988/93f5426f4ebc1705c55feb8ff0396a49/raw/cbea89ad145ba33ed34a151a12c50f045f9f3b78/yaml-ls-bug.yaml>
69
+ - Provide the **`'TS_SELENIUM_BASE_URL'`** environment variable as described above
70
+ - export TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME=EmptyWorkspace (default value, see BASE_TEST_CONSTANTS.ts)
71
+ - perform command **`export USERSTORY=$TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME && npm run test-all-devfiles`**
73
72
 
74
73
  ## Launching the DevWorkspaceHappyPath spec file using Che with oauth authentication
75
74
 
76
75
  **Setup next environment variables:**
77
76
 
78
- - export TS_SELENIUM_BASE_URL=\<Che-URL\>
79
- - export TS_SELENIUM_OCP_USERNAME=\<cluster-username\>
80
- - export TS_SELENIUM_OCP_PASSWORD=\<cluster-password\>
81
- - export TS_SELENIUM_VALUE_OPENSHIFT_OAUTH="true"
82
- - export TS_OCP_LOGIN_PAGE_PROVIDER_TITLE=\<login-provide-title\>
83
- - export TS_SELENIUM_DEVWORKSPACE_URL=\<devworkspace-url\>
84
- - export TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME=EmptyWorkspace (default value, see BaseTestConstants.ts)
77
+ - export TS_SELENIUM_BASE_URL=\<Che-URL\>
78
+ - export TS_SELENIUM_OCP_USERNAME=\<cluster-username\>
79
+ - export TS_SELENIUM_OCP_PASSWORD=\<cluster-password\>
80
+ - export TS_SELENIUM_VALUE_OPENSHIFT_OAUTH="true"
81
+ - export TS_OCP_LOGIN_PAGE_PROVIDER_TITLE=\<login-provide-title\>
82
+ - export TS_SELENIUM_DEVWORKSPACE_URL=\<devworkspace-url\>
83
+ - export TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME=EmptyWorkspace (default value, see BASE_TEST_CONSTANTS.ts)
85
84
 
86
85
  **Execute the npm command:**
87
- - perform command ```export USERSTORY=$TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME && npm run test-all-devfiles```
86
+
87
+ - perform command `export USERSTORY=$TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME && npm run test-all-devfiles`
@@ -1,5 +1,5 @@
1
- /*********************************************************************
2
- * Copyright (c) 2019-2023 Red Hat, Inc.
1
+ /** *******************************************************************
2
+ * copyright (c) 2019-2023 Red Hat, Inc.
3
3
  *
4
4
  * This program and the accompanying materials are made
5
5
  * available under the terms of the Eclipse Public License 2.0
@@ -12,7 +12,7 @@ import 'reflect-metadata';
12
12
  import { Container } from 'inversify';
13
13
  import { IDriver } from '../driver/IDriver';
14
14
  import { ChromeDriver } from '../driver/ChromeDriver';
15
- import { TYPES, CLASSES } from './inversify.types';
15
+ import { CLASSES, TYPES } from './inversify.types';
16
16
  import { TestWorkspaceUtil } from '../utils/workspace/TestWorkspaceUtil';
17
17
  import { IOcpLoginPage } from '../pageobjects/login/interfaces/IOcpLoginPage';
18
18
  import { OcpUserLoginPage } from '../pageobjects/login/openshift/OcpUserLoginPage';
@@ -42,8 +42,8 @@ import { OcpApplicationPage } from '../pageobjects/openshift/OcpApplicationPage'
42
42
  import { StringUtil } from '../utils/StringUtil';
43
43
  import { KubernetesLoginPage } from '../pageobjects/login/kubernetes/KubernetesLoginPage';
44
44
  import { DexLoginPage } from '../pageobjects/login/kubernetes/DexLoginPage';
45
- import { OAuthConstants } from '../constants/OAuthConstants';
46
- import { BaseTestConstants, Platform } from '../constants/BaseTestConstants';
45
+ import { OAUTH_CONSTANTS } from '../constants/OAUTH_CONSTANTS';
46
+ import { BASE_TEST_CONSTANTS, Platform } from '../constants/BASE_TEST_CONSTANTS';
47
47
 
48
48
  const e2eContainer: Container = new Container({ defaultScope: 'Transient' });
49
49
 
@@ -73,10 +73,14 @@ e2eContainer.bind<ApiUrlResolver>(CLASSES.ApiUrlResolver).to(ApiUrlResolver);
73
73
  e2eContainer.bind<WorkspaceHandlingTests>(CLASSES.WorkspaceHandlingTests).to(WorkspaceHandlingTests);
74
74
  e2eContainer.bind<RedHatLoginPage>(CLASSES.RedHatLoginPage).to(RedHatLoginPage);
75
75
 
76
- BaseTestConstants.TS_PLATFORM === Platform.OPENSHIFT ?
77
- OAuthConstants.TS_SELENIUM_VALUE_OPENSHIFT_OAUTH ?
78
- e2eContainer.bind<ICheLoginPage>(TYPES.CheLogin).to(RegularUserOcpCheLoginPage) :
79
- e2eContainer.bind<ICheLoginPage>(TYPES.CheLogin).to(OcpRedHatLoginPage) :
80
- e2eContainer.bind<ICheLoginPage>(TYPES.CheLogin).to(KubernetesLoginPage);
76
+ if (BASE_TEST_CONSTANTS.TS_PLATFORM === Platform.OPENSHIFT) {
77
+ if (OAUTH_CONSTANTS.TS_SELENIUM_VALUE_OPENSHIFT_OAUTH) {
78
+ e2eContainer.bind<ICheLoginPage>(TYPES.CheLogin).to(RegularUserOcpCheLoginPage);
79
+ } else {
80
+ e2eContainer.bind<ICheLoginPage>(TYPES.CheLogin).to(OcpRedHatLoginPage);
81
+ }
82
+ } else {
83
+ e2eContainer.bind<ICheLoginPage>(TYPES.CheLogin).to(KubernetesLoginPage);
84
+ }
81
85
 
82
86
  export { e2eContainer };
@@ -1,5 +1,5 @@
1
- /*********************************************************************
2
- * Copyright (c) 2019-2023 Red Hat, Inc.
1
+ /** *******************************************************************
2
+ * copyright (c) 2019-2023 Red Hat, Inc.
3
3
  *
4
4
  * This program and the accompanying materials are made
5
5
  * available under the terms of the Eclipse Public License 2.0
@@ -9,36 +9,36 @@
9
9
  **********************************************************************/
10
10
 
11
11
  const TYPES: any = {
12
- Driver: Symbol.for('Driver'),
13
- CheLogin: Symbol.for('CheLogin'),
14
- OcpLogin: Symbol.for('OcpLogin'),
15
- WorkspaceUtil: Symbol.for('WorkspaceUtil'),
16
- IAuthorizationHeaderHandler: Symbol.for('IAuthorizationHeaderHandler'),
17
- ITokenHandler: Symbol.for('ITokenHandler')
12
+ Driver: Symbol.for('Driver'),
13
+ CheLogin: Symbol.for('CheLogin'),
14
+ OcpLogin: Symbol.for('OcpLogin'),
15
+ WorkspaceUtil: Symbol.for('WorkspaceUtil'),
16
+ IAuthorizationHeaderHandler: Symbol.for('IAuthorizationHeaderHandler'),
17
+ ITokenHandler: Symbol.for('ITokenHandler')
18
18
  };
19
19
 
20
20
  const CLASSES: any = {
21
- DriverHelper: 'DriverHelper',
22
- Dashboard: 'Dashboard',
23
- Workspaces: 'Workspaces',
24
- WorkspaceDetails: 'WorkspaceDetails',
25
- ScreenCatcher: 'ScreenCatcher',
26
- OcpLoginPage: 'OcpLoginPage',
27
- CheApiRequestHandler: 'CheApiRequestHandler',
28
- CreateWorkspace: 'CreateWorkspace',
29
- BrowserTabsUtil: 'BrowserTabsUtil',
30
- ProjectAndFileTests: 'ProjectAndFileTests',
31
- StringUtil: 'StringUtil',
32
- ApiUrlResolver: 'ApiUrlResolver',
33
- LoginTests: 'LoginTests',
34
- WorkspaceHandlingTests: 'WorkspaceHandlingTests',
35
- RedHatLoginPage: 'RedHatLoginPage',
36
- KubernetesLoginPage: 'KubernetesLoginPage',
37
- DexLoginPage: 'DexLoginPage',
38
- OcpRedHatLoginPage: 'OcpRedHatLoginPage',
39
- OcpApplicationPage: 'OcpApplicationPage',
40
- OcpMainPage: 'OcpMainPage',
41
- OcpImportFromGitPage: 'OcpImportFromGitPage'
21
+ DriverHelper: 'DriverHelper',
22
+ Dashboard: 'Dashboard',
23
+ Workspaces: 'Workspaces',
24
+ WorkspaceDetails: 'WorkspaceDetails',
25
+ ScreenCatcher: 'ScreenCatcher',
26
+ OcpLoginPage: 'OcpLoginPage',
27
+ CheApiRequestHandler: 'CheApiRequestHandler',
28
+ CreateWorkspace: 'CreateWorkspace',
29
+ BrowserTabsUtil: 'BrowserTabsUtil',
30
+ ProjectAndFileTests: 'ProjectAndFileTests',
31
+ StringUtil: 'StringUtil',
32
+ ApiUrlResolver: 'ApiUrlResolver',
33
+ LoginTests: 'LoginTests',
34
+ WorkspaceHandlingTests: 'WorkspaceHandlingTests',
35
+ RedHatLoginPage: 'RedHatLoginPage',
36
+ KubernetesLoginPage: 'KubernetesLoginPage',
37
+ DexLoginPage: 'DexLoginPage',
38
+ OcpRedHatLoginPage: 'OcpRedHatLoginPage',
39
+ OcpApplicationPage: 'OcpApplicationPage',
40
+ OcpMainPage: 'OcpMainPage',
41
+ OcpImportFromGitPage: 'OcpImportFromGitPage'
42
42
  };
43
43
 
44
44
  export { TYPES, CLASSES };
@@ -1,5 +1,5 @@
1
- /*********************************************************************
2
- * Copyright (c) 2020-2023 Red Hat, Inc.
1
+ /** *******************************************************************
2
+ * copyright (c) 2020-2023 Red Hat, Inc.
3
3
  *
4
4
  * This program and the accompanying materials are made
5
5
  * available under the terms of the Eclipse Public License 2.0
@@ -10,28 +10,25 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- import { TimeoutConstants } from '../constants/TimeoutConstants';
13
+ import { TIMEOUT_CONSTANTS } from '../constants/TIMEOUT_CONSTANTS';
14
14
 
15
15
  module.exports = {
16
- timeout: 1200000,
17
- reporter: 'dist/utils/CheReporter.js',
18
- ui: 'tdd',
19
- require: [
20
- 'dist/specs/MochaHooks.js',
21
- 'ts-node/register',
22
- ],
23
- bail: true,
24
- 'full-trace': true,
25
- spec:
26
- // variable MOCHA_DIRECTORY uses in command "test-all-devfiles" and sets up automatically.
27
- // you can set it up to run files from specific directory with export environmental variable.
28
- process.env.MOCHA_DIRECTORY ?
29
- // to run one file (name without extension). uses in "test", "test-all-devfiles".
30
- process.env.USERSTORY ?
31
- `dist/specs/${process.env.MOCHA_DIRECTORY}/${process.env.USERSTORY}.spec.js`
32
- : `dist/specs/${process.env.MOCHA_DIRECTORY}/**.spec.js`
33
- : process.env.USERSTORY ?
34
- [`dist/specs/**/${process.env.USERSTORY}.spec.js`, `dist/specs/${process.env.USERSTORY}.spec.js`]
35
- : [`dist/specs/**/**.spec.js`, `dist/specs/**.spec.js`],
36
- retries: TimeoutConstants.TS_SELENIUM_DEFAULT_ATTEMPTS,
16
+ timeout: 1200000,
17
+ reporter: 'dist/utils/CheReporter.js',
18
+ ui: 'tdd',
19
+ require: ['dist/specs/MochaHooks.js', 'ts-node/register'],
20
+ bail: true,
21
+ 'full-trace': true,
22
+ spec:
23
+ // variable MOCHA_DIRECTORY uses in command "test-all-devfiles" and sets up automatically.
24
+ // you can set it up to run files from specific directory with export environmental variable.
25
+ process.env.MOCHA_DIRECTORY
26
+ ? // to run one file (name without extension). uses in "test", "test-all-devfiles".
27
+ process.env.USERSTORY
28
+ ? `dist/specs/${process.env.MOCHA_DIRECTORY}/${process.env.USERSTORY}.spec.js`
29
+ : `dist/specs/${process.env.MOCHA_DIRECTORY}/**.spec.js`
30
+ : process.env.USERSTORY
31
+ ? [`dist/specs/**/${process.env.USERSTORY}.spec.js`, `dist/specs/${process.env.USERSTORY}.spec.js`]
32
+ : ['dist/specs/**/**.spec.js', 'dist/specs/**.spec.js'],
33
+ retries: TIMEOUT_CONSTANTS.TS_SELENIUM_DEFAULT_ATTEMPTS
37
34
  };
@@ -0,0 +1,67 @@
1
+ /** *******************************************************************
2
+ * copyright (c) 2020-2023 Red Hat, Inc.
3
+ *
4
+ * This program and the accompanying materials are made
5
+ * available under the terms of the Eclipse Public License 2.0
6
+ * which is available at https://www.eclipse.org/legal/epl-2.0/
7
+ *
8
+ * SPDX-License-Identifier: EPL-2.0
9
+ **********************************************************************/
10
+
11
+ import { BASE_TEST_CONSTANTS } from './BASE_TEST_CONSTANTS';
12
+
13
+ export enum KubernetesCommandLineTool {
14
+ OC = 'oc',
15
+ KUBECTL = 'kubectl'
16
+ }
17
+
18
+ export const SUPPORTED_DEVFILE_REGISTRIES: {
19
+ INBUILT_APPLICATION_DEVFILE_REGISTRY_URL: () => string;
20
+ GIT_HUB_CHE_DEVFILE_REGISTRY_URL: string;
21
+ } = {
22
+ INBUILT_APPLICATION_DEVFILE_REGISTRY_URL: (): string => `${BASE_TEST_CONSTANTS.TS_SELENIUM_BASE_URL}/devfile-registry/devfiles/`,
23
+ GIT_HUB_CHE_DEVFILE_REGISTRY_URL: 'https://api.github.com/repos/eclipse-che/che-devfile-registry/contents/devfiles/'
24
+ };
25
+ export const API_TEST_CONSTANTS: {
26
+ TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL: string;
27
+ TS_API_TEST_PLUGIN_REGISTRY_URL: string | undefined;
28
+ TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI: string | undefined;
29
+ TS_API_TEST_UDI_IMAGE: string | undefined;
30
+ TS_API_TEST_NAMESPACE: string | undefined;
31
+ TS_API_ACCEPTANCE_TEST_REGISTRY_URL(): string;
32
+ } = {
33
+ /**
34
+ * possible values "oc" or "kubectl"
35
+ */
36
+ TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL: process.env.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL || KubernetesCommandLineTool.OC,
37
+
38
+ /**
39
+ * 'quay.io/devfile/universal-developer-image:latest'
40
+ * is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
41
+ */
42
+ TS_API_TEST_UDI_IMAGE: process.env.TS_API_TEST_UDI_IMAGE || undefined,
43
+
44
+ /**
45
+ * https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
46
+ * is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
47
+ */
48
+ TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI: process.env.TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI || undefined,
49
+
50
+ /**
51
+ * https://eclipse-che.github.io/che-plugin-registry/main/v3
52
+ * is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
53
+ */
54
+ TS_API_TEST_PLUGIN_REGISTRY_URL: process.env.TS_API_TEST_PLUGIN_REGISTRY_URL || undefined,
55
+
56
+ /**
57
+ * namespace on openshift platform
58
+ */
59
+ TS_API_TEST_NAMESPACE: process.env.TS_API_TEST_NAMESPACE || undefined,
60
+
61
+ /**
62
+ * to run all devfile from registry. used in DevfileAcceptanceTestAPI.suite.ts
63
+ */
64
+ TS_API_ACCEPTANCE_TEST_REGISTRY_URL(): string {
65
+ return process.env.TS_API_ACCEPTANCE_TEST_REGISTRY_URL || SUPPORTED_DEVFILE_REGISTRIES.INBUILT_APPLICATION_DEVFILE_REGISTRY_URL();
66
+ }
67
+ };