-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework organization-related tests to be executed in multi-thread mode (…
…#9532) Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
- Loading branch information
1 parent
6d33172
commit 7184cf7
Showing
27 changed files
with
216 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../main/java/org/eclipse/che/selenium/core/client/TestOrganizationServiceClientFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2012-2018 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
package org.eclipse.che.selenium.core.client; | ||
|
||
import com.google.inject.assistedinject.Assisted; | ||
import org.eclipse.che.selenium.core.user.TestUser; | ||
|
||
/** @author Dmytro Nochevnov */ | ||
public interface TestOrganizationServiceClientFactory { | ||
TestOrganizationServiceClient create(@Assisted TestUser testUser); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...main/java/org/eclipse/che/selenium/core/client/CheTestAdminOrganizationServiceClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2012-2018 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
package org.eclipse.che.selenium.core.client; | ||
|
||
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
import org.eclipse.che.selenium.core.provider.TestApiEndpointUrlProvider; | ||
import org.eclipse.che.selenium.core.requestfactory.CheTestAdminHttpJsonRequestFactory; | ||
|
||
/** This util is handling the requests to Organization API as admin. */ | ||
@Singleton | ||
public class CheTestAdminOrganizationServiceClient extends TestOrganizationServiceClient { | ||
|
||
@Inject | ||
public CheTestAdminOrganizationServiceClient( | ||
TestApiEndpointUrlProvider apiEndpointUrlProvider, | ||
CheTestAdminHttpJsonRequestFactory adminRequestFactory) { | ||
super(apiEndpointUrlProvider, adminRequestFactory); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...in/java/org/eclipse/che/selenium/core/client/CheTestDefaultOrganizationServiceClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2012-2018 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
package org.eclipse.che.selenium.core.client; | ||
|
||
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
import org.eclipse.che.selenium.core.provider.TestApiEndpointUrlProvider; | ||
import org.eclipse.che.selenium.core.requestfactory.CheTestDefaultHttpJsonRequestFactory; | ||
|
||
/** This util is handling the requests to Organization API as default user. */ | ||
@Singleton | ||
public class CheTestDefaultOrganizationServiceClient extends TestOrganizationServiceClient { | ||
|
||
@Inject | ||
public CheTestDefaultOrganizationServiceClient( | ||
TestApiEndpointUrlProvider apiEndpointUrlProvider, | ||
CheTestDefaultHttpJsonRequestFactory defaultRequestFactory) { | ||
super(apiEndpointUrlProvider, defaultRequestFactory); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.