Skip to content

Commit

Permalink
Integration DevWorkspace generator tool; acceptance test suite for ec…
Browse files Browse the repository at this point in the history
…lipse-che/che-devfile-registry repo

Signed-off-by: mdolhalo <mdolhalo@redhat.com>
  • Loading branch information
mdolhalo committed May 18, 2023
1 parent 6ff555f commit 0843e08
Show file tree
Hide file tree
Showing 15 changed files with 1,257 additions and 54 deletions.
19 changes: 19 additions & 0 deletions tests/e2e/constants/DevfilesRegistry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*********************************************************************
* Copyright (c) 2023 Red Hat, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
import { TestConstants } from './TestConstants';
import { ShellExecutor } from '../utils/ShellExecutor';

function getFullDevfileRegistryUrl(): string {
return `${TestConstants.TS_SELENIUM_BASE_URL}/devfile-registry/devfiles/`;
}

export const devfileRegistry: object = JSON.parse(
(new ShellExecutor).curl(getFullDevfileRegistryUrl()).stdout
);
5 changes: 4 additions & 1 deletion tests/e2e/constants/TestConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,5 +243,8 @@ export const TestConstants: any = {

TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI: process.env.TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI || `https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml`,

TS_API_TEST_NAMESPACE: process.env.TS_API_TEST_NAMESPACE || undefined
TS_API_TEST_NAMESPACE: process.env.TS_API_TEST_NAMESPACE || undefined,

// choose from repo https://github.com/eclipse-che/che-devfile-registry/tree/main/devfiles file as raw
TS_API_TEST_LINK_TO_META_YAML: process.env.TS_API_TEST_LINK_TO_META_YAML || 'https://raw.githubusercontent.com/eclipse-che/che-devfile-registry/ddce84004d83e858de77bde596ac3b4ebbbbdfec/devfiles/java-web-spring/meta.yaml'
};
1 change: 1 addition & 0 deletions tests/e2e/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './constants/TimeoutConstants';
export * from './driver/ChromeDriver';
export * from './driver/IDriver';
export * from './utils/BrowserTabsUtil';
export * from './utils/DevWorkspaceConfigurationHelper';
export * from './utils/DriverHelper';
export * from './utils/KubernetesCommandLineToolsExecutor';
export * from './utils/Logger';
Expand Down
Loading

0 comments on commit 0843e08

Please sign in to comment.