Commit Graph

4800 Commits (f2ee3bf834bab3d4f4e0bd1f6b73aef8063dba34)

Author SHA1 Message Date
Florent BENOIT f2ee3bf834 Allow to use Java9 method to get pid (avoid internal reflection)
Change-Id: I50b05b86d53d21b6b8006a78c8aca722ce2372f2
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-24 15:49:02 +02:00
Max Shaposhnik c1bb1621a0 Group all DB migrations related to Che6 into 6.0.0 version; (#6945) 2017-10-24 15:37:00 +03:00
Oleksii Orel 3b343e8247 fix add-developers widget URL
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2017-10-24 12:58:03 +03:00
Oleksii Orel a86a1049d5 code cleanup
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2017-10-24 12:58:03 +03:00
Igor Ohrimenko 49f5cda100 Add method 'getUserPublicEmail' to TestGitHubServiceClient (#6866) 2017-10-24 11:48:39 +03:00
Max Shaposhnik 1e87b85742 Rename wsmaster.war into api.war and remove corresponding rewrite valve; (#6917) 2017-10-24 11:32:47 +03:00
Oleksii Kurinnyi dda90fa6c9 Dashboard: loading and initialization of keycloak after DOM is ready (#6924)
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2017-10-24 10:48:36 +03:00
Maxim Musienko b30a78c818 Simplify some steps in the test for increasing stability (#6895)
* simplify some steps in the test for increasing stability
2017-10-24 10:16:10 +03:00
Sergey Skorik 9efc20c0d0 Extend NavigateToFileTest selenium test
added test method for checking that files from hidden folders are not appear in list of found files
2017-10-23 17:00:48 +03:00
Aleksandr Shmaraiev 6fa555d475 Selenium: Adapt the 'FindTextFeatureTest' according to 'che6' branch (#6897)
* Adapt the selenium test 'FindTextFeatureTest' according to client on 'che6' branch
* Change names and locators into 'FindText' page object
* Change names and locators into 'Consoles' page object
* Create the 'PanelSelector' page object
* Add selenium test 'ImportProjectIntoSpecifiedBranchTest' to main tests suite
2017-10-23 14:36:37 +03:00
Sergey Skorik 0f92112084 Fix Dashboard selenium tests
changed timeouts for waiting statuses of workspace, reworked WorkspaceDetailsTest for che6
2017-10-23 14:22:36 +03:00
Anton Korneta 1b7907aad3 Fix stack loading exception handling 2017-10-22 16:25:24 +03:00
Sergii Kabashniuk 6ac0ffdcbd Merge pull request #6887 from eclipse/che6mastermerge
Backport missing changes from master to che6
2017-10-21 23:06:33 +03:00
Sergii Kabashniuk 487ad8508c Merge with master 2017-10-21 19:30:48 +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
Florent BENOIT 3f262e620e Cleanup some Mockito deprecated usage (che6) (#6864)
* Cleanup some Mockito deprecated usage
org.mockito.Matchers —> org.mockito.ArgumentMatchers
org.mockito.runners.MockitoJUnitRunner —> org.mockito.junit.MockitoJUnitRunner

Change-Id: Icf7351cb58e0f42fa95885c2d2cf6b5e98206c35
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-21 09:07:43 +02:00
Florent BENOIT 9bb0aa445f Cleanup some Mockito deprecated usage (#6863)
* Cleanup some Mockito deprecated usage
org.mockito.Matchers —> org.mockito.ArgumentMatchers
org.mockito.runners.MockitoJUnitRunner —> org.mockito.junit.MockitoJUnitRunner

Change-Id: Icc1ee9b4ec16e35cab09842057a275a0133571b4
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-21 08:10:33 +02:00
Roman Iuvshyn a1190245f6 fix deploy che to local ocp (#6881) 2017-10-20 19:38:16 +03:00
Ilya Buziuk fb6a3230fc che #6873: KubernetesStringUtils - Removing non-word-chars in the end of normilized strings
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2017-10-20 18:05:21 +02:00
Dmytro Nochevnov bda6d136c3 Add ability to setup test workspace pool size in selenium tests (#6853) 2017-10-20 17:46:05 +02:00
Sergey Skorik 6abe909e89 Fix CheckRestoringOfSplitEditor selenium test(che6) 2017-10-20 17:34:16 +03:00
Patrick Collins 831ee43b22 fixed typos
webscoket -> websocket x3

Signed-off-by: Patrick Collins <PatrickCP0@Gmail.com>
2017-10-20 16:23:05 +02:00
Anna Shumilova 01ffedb20b Fix eclipse che stack installers
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2017-10-20 16:48:01 +03:00
Roman Nikitenko e208b42581 Fix formatting
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
2017-10-20 15:48:39 +03:00
Sergey Skorik 798f1dde9a Fix CheckRestoringOfSplitEditor selenium test (#6677)
* changed expected text in split-editor-restore-exp-text.txt file
* changed class name
2017-10-20 12:29:34 +00:00
Roman Nikitenko 8936842508 CHE-5497. Sync dirty state for split editors
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
2017-10-20 14:42:53 +03:00
Roman Nikitenko bd10c31380 CHE-5497. Sync dirty state for split editors
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
2017-10-20 14:36:49 +03:00
Vitalii Parfonov 28793aae40 Process exclusive by using `synchronized`. (#6205) (#6861)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2017-10-20 13:17:50 +03:00
jpinkney b671ff3f27 Fixed issue where download outputs was returning null
Signed-off-by: jpinkney <josh.pinkney@mail.utoronto.ca>
2017-10-20 09:45:33 +02:00
Patrick Collins 7493ac34f8 fixed typos
webscoket -> websocket x3

Signed-off-by: Patrick Collins <PatrickCP0@Gmail.com>
2017-10-20 09:19:53 +02:00
Florent BENOIT 6a95b6d74a Apply google format v1.4 https://github.com/google/google-java-format/releases/tag/google-java-format-1.4
Change-Id: I5df30c23165df1fd39eef4c57893bebd1d681c1d
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-19 22:23:04 +02:00
Florent BENOIT c2c1c19e42 Apply google format v1.4 https://github.com/google/google-java-format/releases/tag/google-java-format-1.4
Change-Id: I11c453a67608810638f8e8e9cf4705ec93b2320c
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-19 22:07:40 +02:00
Dmytro Nochevnov 6e7371375a Add ability to setup test workspace pool size in selenium tests (#6852) 2017-10-19 17:41:04 +02:00
Aleksandr Shmaraiev 260116459f Selenium: Delete the package 'subversion' from project according to 'che6' branch (#6851)
* Delete the package 'subversion' from project according to 'che6' branch
* Delete selenium tests of subversion package from test suite
2017-10-19 15:09:07 +00:00
Maxim Musienko 9e8d987d7b Change steps in the test and rework depended Page Object for increasing stability tests (#6808) (#6826)
add steps and changes to Page Object for increasing stability tests
2017-10-19 17:37:00 +03:00
David Festal 8871b5b08a Multi-tenant compatibility (#6738)
* Ping the wsagent URL (possibly external), not the *internal URL*.

* Use `getProperties().getInternalUrl()` when `getUrl()` returns `null` 

* Add a new provider for an optional routing suffix for workspaces to be
used in the external URLs of created workspace agents in the
use-cases where a custom server evaluation strategy is used (Openshift,
Traeffik, etc ...).

* Add 2 new macros for the custom server evaluation template which are:
    - `user`: the current environment context user if any,
    - `workspacesRoutingSuffix`: the suffix returned by the available
`WorspacesRoutingSuffixProvider` if any.

Both values can null, in which case they are not added to the ST
variables, so that it is possible to test on their existence in the
template. For example:

```
<if(workspacesRoutingSuffix)><user>-che.<workspacesRoutingSuffix><else><externalAddress><endif>
```

* Add a new provider to get workspace-related Openshift configuration containing:
    - the `io.fabric8.kubernetes.client.Config` object to connect the right
Openshift cluster / namespace in which workspaces will be created
    - The name of the namespace in which workspaces are cteated
    - A boolean that tell if the workspaces will be created in a different
cluster as the che-server.

These data returned by the subclasses of the new provider can of course
depend on the current user (and this will be the case for multi-tenancy)

* Also support the `application/vnd.api+json` content type in responses

* Now use the new providers to connect to the right clutser / namespace

* Allow the Docker connector to return the API endpoint...

The base `DockerConnector` class returns `null` as the endpoint, thus
keeping the previous behavior.

However the `OpenshiftConnector` implementation now returns the API
endpoint without the need for any environment variable:

Indeed in the case of Openshift, the API endpoint is either based on:

    - the internal fully-qualified name of the `che-host` service if
workspaces are to be hosted on the same Openshift cluster,
    - the external URL of the `che` route if workspaces may be hosted on a
distinct Openshift cluster.


* If related properties or env variables are void, use the connector to retrieve
the API endpoint.

* Required changes for multi-tenancy in deployment script

* Allow overriding the agent log directories in a clean way so that we don't need
to replace the `XXXWsMasterModule` class only
to override the `run_command` binding.

* Move some local-docker-related configuration into a separate `dynamodule`.
This avoid the need to override the `WsMasterModule` class and comment
these bindings in derived assemblies that use a distinct implementation
or don't need Traeffik (such as for Openshift deployments). 

* Return `OpenShiftException` when workspaces namespace cannot be reached 

* Add multi-tenancy options to the deploy script

* Add the `CHE_EPHEMERAL` and `CHE_USE_ACME_CERTIFICATE` options

* Fix the name of the used docker image for multi-tenant

Signed-off-by: David Festal <dfestal@redhat.com>
2017-10-19 15:01:56 +02:00
Ilya Buziuk 7622d46bcf rh-che #379: Migrating to a new GitHub token endpoint
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2017-10-19 14:52:16 +02:00
Sergii Leshchenko 1373dda147 Remove dependencies on removed che-plugin-docker-machine-auth module (#6836) 2017-10-19 15:43:55 +03:00
Max Shaposhnik 42e56b399c Fix workpsace-permissions module dependencies; 2017-10-19 14:52:41 +03:00
Sergii Kabashniuk 679cb02a53 Merge pull request #6830 from eclipse/v6.0.0-M1
Set next version 6.0.0-M1-SNAPSHOT
2017-10-19 14:16:55 +03:00
Sergii Kabashniuk 3258a4bb3f Remove unexisted artifact 2017-10-19 14:10:25 +03:00
Sergii Kabashniuk f4cc97acce Set next version 6.0.0-M1-SNAPSHOT 2017-10-19 13:53:40 +03:00
Artem Zatsarynnyi cf7c2b388c Use net.ltgt.gwt.maven:gwt-maven-plugin for compiling IDE app (#6822)
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
2017-10-19 13:39:58 +03:00
Sergii Kabashniuk aac30d24d4 Merge pull request #6827 from eclipse/mergeche6master
Merge master to che6
2017-10-19 13:25:21 +03:00
Sergii Kabashniuk 2cd07f1369 Merge with master
modified:   ../../dashboard/src/app/workspaces/workspace-status/workspace-status.html
	modified:   ../../selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/dashboard/DashboardWorkspace.java
	modified:   ../../selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/RenameWorkspaceTest.java
	modified:   ../../selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/WorkspaceDetailsTest.java
2017-10-19 13:13:08 +03:00
Masaki Muranaka 443d724dca Process exclusive by using `synchronized`. (#6205)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2017-10-19 13:09:34 +03:00
Eugene Ivantsov 800dd40959 Remove unnecessary chmod for ws agent (#6814) 2017-10-19 12:42:00 +03:00
Eugene Ivantsov e37639bf17 Remove unnecessary chmod (#6818) 2017-10-19 12:41:48 +03:00
Maxim Musienko 18c777c1be Change steps in the test and rework depended Page Object for increasing stability tests (#6808)
add steps and changes to Page Object for increasing stability tests
2017-10-19 12:34:06 +03:00
Yevhen Vydolob ed2433e415 Provide Action interface, use DOM Element for Action image (#6811)
* #6788 Add Action interface and declare all needed methods from absctract class Action in BaseAction class

Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
2017-10-19 11:25:03 +02:00