Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration DevWorkspace generator tool; acceptance test suite for eclipse-che/che-devfile-registry repo #22221

Merged
merged 6 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/e2e/constants/DevfilesRegistryConstants.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 getdevfileRegistryUrl(): string {
return `${TestConstants.TS_SELENIUM_BASE_URL}/devfile-registry/devfiles/`;
}

export const devfileRegistryConstants: object = JSON.parse(
ShellExecutor.curl(getdevfileRegistryUrl()).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/main/devfiles/java-web-spring/meta.yaml'
nallikaea marked this conversation as resolved.
Show resolved Hide resolved
};
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