Skip to content

Commit 27db7dc

Browse files
committed
Merge branch 'main' of github.com:eclipse/che into che#22441
2 parents a463fab + d64e399 commit 27db7dc

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ body:
3333
label: Che version
3434
description: if workspace is running, version can be obtained with help/about menu
3535
options:
36-
- "7.77@latest"
36+
- "7.78@latest"
3737
- "next (development version)"
38+
- "7.77"
3839
- "7.75"
3940
- "7.74"
4041
- "7.73"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.78.0-next
1+
7.79.0-next

tests/e2e/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eclipse-che/che-e2e",
3-
"version": "7.78.0-next",
3+
"version": "7.79.0-next",
44
"description": "",
55
"main": "dist/index.js",
66
"scripts": {

tests/e2e/pageobjects/openshift/OcpMainPage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class OcpMainPage {
2828
private static readonly SKIP_TOUR_BUTTON: By = By.xpath('//*[text()="Skip tour"]');
2929
private static readonly WEB_TERMINAL_BUTTON: By = By.xpath('//button[@data-quickstart-id="qs-masthead-cloudshell"]');
3030
private static readonly WEB_TERMINAL_PAGE: By = By.xpath('//*[@class="xterm-helper-textarea"]');
31+
private static readonly START_WT_COMMAND_LINE_TERMINAL_BUTTON: By = By.xpath('//*[@data-test-id="submit-button"]');
3132

3233
constructor(
3334
@inject(CLASSES.DriverHelper)
@@ -89,6 +90,7 @@ export class OcpMainPage {
8990

9091
await this.waitOpenMainPage();
9192
await this.driverHelper.waitAndClick(OcpMainPage.WEB_TERMINAL_BUTTON);
93+
await this.driverHelper.waitAndClick(OcpMainPage.START_WT_COMMAND_LINE_TERMINAL_BUTTON);
9294
await this.driverHelper.waitPresence(OcpMainPage.WEB_TERMINAL_PAGE, TIMEOUT_CONSTANTS.TS_WAIT_LOADER_ABSENCE_TIMEOUT);
9395
}
9496

tests/e2e/specs/miscellaneous/WorkspaceWithParent.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMEN
3434
const kubernetesCommandLineToolsExecutor: KubernetesCommandLineToolsExecutor = e2eContainer.get(
3535
CLASSES.KubernetesCommandLineToolsExecutor
3636
);
37-
3837
let podName: string = '';
3938

4039
suiteSetup(function (): void {
@@ -58,7 +57,6 @@ suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMEN
5857
test('Check cloning of the test project', async function (): Promise<void> {
5958
const expectedProjectItems: string[] = ['.devfile.yaml', 'parent.yaml', 'README.md', 'parentdevfile'];
6059
const visibleContent: ViewSection = await projectAndFileTests.getProjectViewSession();
61-
6260
for (const expectedProjectItem of expectedProjectItems) {
6361
const visibleItem: ViewItem | undefined = await projectAndFileTests.getProjectTreeItem(visibleContent, expectedProjectItem);
6462
expect(visibleItem).not.undefined;
@@ -79,23 +77,23 @@ suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMEN
7977
});
8078

8179
test('Check expected containers in the parent POD', function (): void {
82-
const getPodNameCommand: string = `${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} get pods --selector=controller.devfile.io/devworkspace_name=sample-using-parent --output jsonpath=\'{.items[0].metadata.name}\'`;
80+
const getPodNameCommand: string = `${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} get pods -n ${BASE_TEST_CONSTANTS.TEST_NAMESPACE} --selector=controller.devfile.io/devworkspace_name=sample-using-parent --output jsonpath=\'{.items[0].metadata.name}\'`;
8381

8482
podName = shellExecutor.executeArbitraryShellScript(getPodNameCommand);
8583
const containerNames: string = shellExecutor.executeArbitraryShellScript(
86-
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} get pod ${podName} --output jsonpath=\'{.spec.containers[*].name}\'`
84+
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} get pod ${podName} -n ${BASE_TEST_CONSTANTS.TEST_NAMESPACE} --output jsonpath=\'{.spec.containers[*].name}\'`
8785
);
8886
expect(containerNames).contains('tools').and.contains('che-gateway');
8987

9088
const initContainerName: string = shellExecutor.executeArbitraryShellScript(
91-
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} get pod ${podName} --output jsonpath=\'{.spec.initContainers[].name}\'`
89+
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} get pod ${podName} -n ${BASE_TEST_CONSTANTS.TEST_NAMESPACE} --output jsonpath=\'{.spec.initContainers[].name}\'`
9290
);
9391
expect(initContainerName).contains('che-code-injector');
9492
});
9593

9694
test('Check expected environment variables', function (): void {
9795
const envList: string = shellExecutor.executeArbitraryShellScript(
98-
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} exec -i ${podName} -c tools -- sh -c env`
96+
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} -n admin-devspaces exec -i ${podName} -c tools -- sh -c env`
9997
);
10098
expect(envList).contains('DEVFILE_ENV_VAR=true').and.contains('PARENT_ENV_VAR=true');
10199
});

0 commit comments

Comments
 (0)