Commit Graph

84 Commits (ec77e2204666bed3b3ebfca2b2bc3cf528cd363a)

Author SHA1 Message Date
Roman Iuvshyn 71704ab3a7
RELEASE: Set next development version (#8135) 2018-01-03 14:13:25 +02:00
Dmytro Nochevnov b78c2d93d4
Fix output message in selenium tests (#8103)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2017-12-29 13:48:05 +02:00
Dmytro Nochevnov 78c2e5762a
Add ability to mark infrastructure-specific selenium tests (#8057) 2017-12-27 20:02:22 +02:00
Roman Iuvshyn 98bc582ad6
fix keycloak containerID evaluation in webdriver.sh (#8054) 2017-12-27 11:06:44 +02:00
Maxim Musienko fdb717f529
Add screening from all opened webdriver windows (#8012)
* add screening from all opened webdriver windows
2017-12-22 17:14:18 +02:00
Dmytro Nochevnov a6efd2d986
Fix github-specific selenium tests after adding support of Identity brokering mechanism of Keycloak (#7999)
* Avoid redundant revoking of github token in selenium tests
* Fix clean up after github-related tests execution; remove ssh-key of github.com
* Remove test user which has been created by selenium tests launcher
2017-12-21 16:30:22 +02:00
Roman Iuvshyn 758d400e5f
Clean up after merge che6 to master (#7979) 2017-12-20 17:28:34 +02:00
Dmytro Nochevnov db70d737bf
Create test user at start of selenium tests execution (#7965)
* Create test user at start of selenium tests execution
* Rename 'CHE_SELENIUM_INFRASTRUCTURE' to 'CHE_INFRASTRUCTURE' in selenium tests
2017-12-20 12:50:24 +00:00
Roman Iuvshyn 5a6d3910b2
RELEASE: set next dev version (#7882) 2017-12-14 15:51:34 +02:00
Maxim Musienko 5886bd4831
Apply Kohsuke Github library for reduce extra operation and increase stability GitPull test (#7829)
* Apply GitHub library for the test
2017-12-14 07:58:18 +02:00
Dmytro Nochevnov 16d82d0c59
Adapt webdriver.sh to Multiuser Che; add ability to set rerun attempts (#7823)
* Move --multiuser parameter from selenium-test.sh to webdriver.sh
* Compare selenium testing results with multiuser CI job
* Differ 'CI job' from 'build' in terms of comparasion of test results
* Add an ability to set exact number of rerun of selenium tests
2017-12-12 18:20:39 +02:00
Aleksandr Shmaraiev 42101117a6 Add workspace templates into resources 2017-12-12 09:23:01 +02:00
Sergii Kabashniuk f9726f7bfa
Avoid NPE in case if resource is not found (#7694)
Avoid NPE in case if resource is not found (#7694)
2017-12-07 10:56:10 +02:00
Dmytro Nochevnov 4f8e34df87
Remove separation of selenium tests on stable/unstable/failed (#7750) 2017-12-06 15:46:17 +00:00
Dmytro Nochevnov 299291e140
Move clean up to the end of selenium test execution (#7734) 2017-12-05 16:30:18 +02:00
Dmytro Nochevnov acbbebeb35
Include Organization tests into acceptance tests into Multi User Che (#7657)
* Include Organization tests into acceptance tests execution on the Multiuser Che

Add IAnnotationTransformer to disable multiuser tests
Remove CheTestIsMultiuserProvider; move injection into constructor of SeleniumTestHandler
Run organization tests in single-thread mode
Add fails for the issues #7279, #2473
Fix TestOrganizationServiceClient::deleteAll(parent) method
Use 'InjectTestOrganization' to operate with selenium test organization
2017-12-04 10:45:24 +02:00
Igor Ohrimenko 68545311c8
add metod for wait splitted tabs in the editor and add this check to the SpliteditorFeatureTest (#7627) 2017-11-30 18:08:44 +02:00
Sergii Kabashniuk 831b836ef9
Suppressing some logs produced during selenium test (#7638) 2017-11-30 14:17:32 +02:00
Roman Iuvshyn 506210325a
RELEASE: set next dev version (#7523) 2017-11-23 12:50:56 +02:00
Igor Ohrimenko 02a701f666
Fix bugs in the selenium tests from "factory" package. (#7455) 2017-11-20 17:22:30 +02:00
Dmytro Kulieshov 0f635cf122
Added JSON-RPC back-end to Project API and removed deprecated VFS classes (#7380) 2017-11-20 12:02:46 +02:00
Dmytro Nochevnov 11d6ab0a5e
Housekeeping of selenium tests (#7427)
* Remove deprecated ide.driver() from selenium tests
* Fix static code analyzer warnings in selenium tests
* Add exclusions to license-maven-plugin to avoid useless warnings
2017-11-17 10:32:00 +00:00
Anatoliy Bazko 62611aee78
CHE-6846: Suspend breakpoint policy (#7347) 2017-11-16 07:13:43 +00:00
Maxim Musienko 93ad067cb3
Merge pull request #7334 from eclipse/CHE#7296
Change configuration for factories depending on the environment
2017-11-13 21:24:07 +02:00
Maxim Musienko 1331526c78 apply import 2017-11-13 16:23:48 +02:00
Maxim Musienko 76bccf4970 change factory configuration for OCP and che6 assemblies 2017-11-13 15:34:22 +02:00
Max Shaposhnik c74bad367c
Remove snapshotting mechanism; 2017-11-13 14:25:40 +02:00
Dmytro Nochevnov 84eb3b6f61
Fix 'Auth fail' error in github-related selenium tests (#7254)
* Handle NotFoundException when ssh-key to remove is absent
* Fix multiple call of beforeInvocation method of SeleniumTestHandler
* Extract code to upload ssh-key into github.com in tests
* Don't run CheOneThreadTestsSuite.xml in unstable test execution
* Move hook to the constructor of SeleniumTestHandler
* Add html dumps into the selenium tests report
* Remove useless code from rerun function of webdriver.sh
* Rewrite AddSshKeyForGitHubTest to not duplicate other tests
2017-11-13 10:18:12 +00:00
Mykola Morhun 46ddf5e840
Base of Git Panel (#7235) 2017-11-13 09:24:40 +02:00
Dmytro Nochevnov 4be896da63
Fix error of getting machine token in multiuser che (#7294)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2017-11-10 08:31:29 +00:00
Anatoliy Bazko 40ff60038d
CHE-6845: Disable breakpoints (#7204) 2017-11-07 09:32:08 +00:00
Anatoliy Bazko b9f3374a22
webdriver.sh respects system properties (#7142) 2017-11-03 07:51:48 +00:00
Roman Iuvshyn 19f5fd1f5a
RELEASE: Set next development version (#7112) 2017-10-31 16:46:30 +02:00
Aleksandr Shmaraiev 5835a8b0e6 Add changes to the 'TestGitHubServiceClient'
Add changes to the 'TestGitHubServiceClient' that to get the name of github user even if the name is not set in the profile
2017-10-30 17:51:10 +02:00
Oleksandr Garagatyi cd1301d115 CHE-6124: Do not publish exposed ports in Docker machines
Publish port in Docker machines only in case there is a server
in the workspace config that represents the port.
Refactor OpenShift infrastructure code.
Refactor Docker infrastructure code.
Add constant of memory attribute and reuse it everywhere it is
hardcoded.
Add constant for installer environment attribute and reuse it
everywhere it is hardcoded.
Add machine memory attribute validation to workspace validation.
Move provisioning of servers, environment variables from
infrastructure implementations to runtime SPI abstract level.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2017-10-26 12:10:36 +03:00
Dmytro Nochevnov 2128846d48 Fix unexpected interuption of environment clean up in selenium tests (#6994) 2017-10-25 19:36:43 +03:00
Igor Ohrimenko 49f5cda100 Add method 'getUserPublicEmail' to TestGitHubServiceClient (#6866) 2017-10-24 11:48:39 +03:00
Dmytro Nochevnov a1e2562db2 Clean up svn reaources from selenium tests (#6883)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2017-10-21 10:25:29 +03:00
Dmytro Nochevnov bda6d136c3 Add ability to setup test workspace pool size in selenium tests (#6853) 2017-10-20 17:46:05 +02:00
Sergii Kabashniuk f4cc97acce Set next version 6.0.0-M1-SNAPSHOT 2017-10-19 13:53:40 +03:00
Sergii Kabashniuk 40f574871c Merge master into che6 (#6787)
* Fix FindTextFeatureTest selenium test (#6762)

* added timeout for closing the 'Search' loader before checking that FindText form is closed

* Allow to disable require update password for default admin user (#6777)

* Apply fixes to update maven plugins
- errorprone : ignore test methods that are using testxyz() pattern but are not annotated by @Test
- Remove  deprecated stuff (for example use descriptors/descriptor for maven-assembly plugin
- remove dependency with specific version
- remove unnecessary stubbing

Change-Id: I64e96c0465dc9081ed9dde6841ca9f77fb515005
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>

* No proxy handling (#6775)

* Fix setting empty no_proxy

Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>

* Fix setting empty no_proxy

Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>

* Fix typo

* Skip github api requests in keycloak interceptor

Signed-off-by: Anna Shumilova <ashumilo@redhat.com>

* Dashboard: added the validation of a factory name's uniqueness (#6758)

* CHE-5462: add unique-factory-name validation directive.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* CHE-5462: use validation directive for factory name's uniqueness.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* CHE-6545: Add condition for breakpoints (#6763)

* Provide new presentation model for the tree node (#6718)

* Provide new presentation model for the tree node

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Add missing HasNewPresentation interface

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Increase login page load timeout in selenium tests (#6794)

Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>

* Fix problem with open factory page in the selenium tests (#6789)

* fixup! Merge with master
2017-10-18 16:55:21 +03:00
Anatoliy Bazko d3278187fb CHE-6545: Add condition for breakpoints (#6763) (#6786) 2017-10-18 11:46:00 +00:00
Sergii Kabashniuk e321ab00b1 Merge with master 2017-10-15 14:33:47 +03:00
Roman Iuvshyn abe3271908 RELEASE: Set next development version (#6692)
* RELEASE: Set next development version
2017-10-14 20:17:04 +03:00
Oleksandr Garagatyi 03cb20ad64 Merge branch 'master' into che6
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2017-10-14 17:00:09 +03:00
Dmytro Nochevnov a2b4d732a5 Add ability to inject different webdrivers into the Entrance class (#6714)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2017-10-13 16:00:22 +02:00
Artem Zatsarynnyi 22c21265aa Merge branch 'master' into spi 2017-10-11 10:16:43 +03:00
Dmytro Nochevnov 03d5e47b4d Fix URL with selenium test report on CI (#6644)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2017-10-10 10:20:07 +03:00
Sergii Kabashniuk ee01b2998f Multi-user Eclipse Che (#6441)
Multi-user Eclipse Che (#6441)
#### How to run it.
```docker run -it -e CHE_MULTIUSER=true -e CHE_HOST=<your ip> -e CHE_KEYCLOAK_AUTH-SERVER-URL=http://<your ip>:5050/auth -v /var/run/docker.sock:/var/run/docker.sock -v ~/.che-multiuser:/data eclipse/che:nightly start --skip:pull --skip:nightly```
#### How to manage it
 - Keycloak configured with two realms. ```Master``` and ```che```. Also we have one user admin/admin in both realm. Admin user in master realm is  - super admin. 
-  Eclipse Che configured for che realm
- We enabled user registration in ```Che``` realm
#### Known limitation
 - swagger would not work. We need to upgrade a version. to support openid authentification https://github.com/eclipse/che/issues/6015
- It's working on local docker. We are going to provide scalable version based on OpenShift on next versions.
- Invitation of non-existent users to Eclipse Che organization https://github.com/eclipse/che/issues/6335
#### How to run it when it is in a branch


To run an multiuser Che version, the following steps are required after building the branch:
 - Rebuild init, cli and che images (in the given sequence). To do that, proceed to folder _dockerfiles/<image_name>_ and run _build.sh_
 - Run Che in a  usual way using cli, with additional parameters:  `-e CHE_MULTIUSER=true` and `--skip:pull --skip:nightly`  
   Full command example:
   `docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/user/.che:/data -e CHE_MULTIUSER=true eclipse/che-cli:nightly start --skip:pull --skip:nightly`
 - MacOS users may need to edit _che.env_ file in the data folder, changing `CHE_HOST` and `CHE_KEYCLOAK_AUTH__SERVER__URL` values to their specific IP.
 
When start is succeeded, the following docker containers should be created:  
 - che, exposing 8080 port;
 - che_keycloak, exposing 5050 port;  
 - che_postgres, exposing 5432 port;
2017-10-06 17:27:27 +03:00
Artem Zatsarynnyi 405f9d4142 Merge branch 'che-multiuser' into spi 2017-10-06 10:06:34 +03:00