/*********************************************************************
 * Copyright (c) 2019 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 { WorkspaceStatus } from './WorkspaceStatus' ; import { che } from '@eclipse-che/api' ; export interface ITestWorkspaceUtil { cleanUpAllWorkspaces ( ) : void ; cleanUpRunningWorkspace ( workspaceName ) : void ; waitWorkspaceStatus ( namespace , workspaceName , expectedWorkspaceStatus ) : void ; waitPluginAdding ( namespace , workspaceName , pluginId ) : void ; removeWorkspaceById ( id ) : void ; stopWorkspaceById ( id ) : void ; getIdOfRunningWorkspace ( workspaceName ) : Promise < string > ; getIdOfRunningWorkspaces ( ) : Promise < Array < string > > ; createWsFromDevFile ( customTemplate ) : void ; getBaseDevfile ( ) : Promise < che . workspace . devfile . Devfile > ; startWorkspace ( workspaceId ) : void ; }