Commit Graph

6891 Commits (c77ce15e460bdfec00be1030c497254a7e62b6fb)

Author SHA1 Message Date
Sergii Leshchenko c77ce15e46 Formatted pom.xml in dashboard module (PR #11570) 2018-10-17 00:11:58 +03:00
Sergii Leshchenko 1862dd97c3 Fix propagating TimeoutException (PR #11570)
Since timeout exception has no message in this particular case
user saw `Workspace failed to start. Cause: null` when timeout exception
occured. Now TimeoutException is wrapped in InfrastructureException with
meaningful message and it is much clear what happened
2018-10-17 00:11:58 +03:00
Sergii Leshchenko a892b07ceb Fix WorkspaceRuntimes error logging and status change propagation (PR #11570) 2018-10-17 00:11:58 +03:00
Sergii Leshchenko 89a51b9e43 Move start timeout to StartSynchronizer (PR #11570)
It allows considering ingress wait timeout as part of start timeout
instead of considering them as non-related timeouts
2018-10-17 00:11:58 +03:00
Florent BENOIT bd34ae5734
[docker] Update che theia image (#11633)
* Include yeoman generator plug-in by default
Add /projects folder and use it as working directory
2018-10-16 19:32:07 +02:00
Sergii Kabashniuk 8cc8a3e8f2
Add workspace name and namespace as environment variable (#11623)
Add workspace name and namespace as an environment variable (#11623)
2018-10-16 17:19:07 +03:00
Igor Ohrimenko 398176cada
[Selenium] Add catching of the known bug (#11624) to the "TheiaBuildPluginTest" selenium test (#11628) 2018-10-16 14:50:05 +03:00
Sergey Skorik ffccbdcb8b
Selenuim: execute selenium tests from 'dashboard' package on openshift prod-preview (#11626) 2018-10-16 13:58:58 +03:00
Sergey Skorik 93935601a7
Selenium: wait that IDE is ready to use before open project (#11612) 2018-10-16 12:41:22 +03:00
Artem Zatsarynnyi cb2310f13f
Don't put new line in the editor when going to a line by number (#11603)
* Don't put a new line in the editor when going to line by number

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
2018-10-16 12:26:32 +03:00
Florent BENOIT c7c697f1e3 Fix build (invalid stubbing)
Change-Id: I5021ed5ba6f54def90c1f6e17a4c8b62fa5eaa99
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2018-10-15 14:11:31 +02:00
Oleksandr Garagatyi a093e4ce54
Merge pull request #11596 from garagatyi/theiaBroker2
Adds an ability to run multiple plugin brokers on plugins provisioning phase. They all be part of a single pod.
Use bare pod instead of deployment for plugin brokering to avoid unwanted restarts of brokers.
Adds Theia plugin broker (which is not merged yet, but should be merged soon).
Allow ChePlugin and plugin brokers (by changing ChePlugins) to provide env vars that are provisioned in all the containers of the workspace. This enables brokers/plugins to share info with each other.
2018-10-15 13:15:16 +03:00
Sergii Kabashniuk 3e72212e8b
Add an ability to disable discover-ability of a plugin endpoint (#11617)
Add an ability to disable discover-ability of a plugin endpoint (#11617)
2018-10-15 13:08:09 +03:00
Oleksandr Garagatyi 0797d09343 Change dockerimage location to my personal account
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-10-15 13:07:12 +03:00
Dmytro Kulieshov 95f61a03ed Reworked LanguageServerFileWatcher (#11515)
Signed-off-by: Dmytro Kulieshov <dkuliesh@redhat.com>
2018-10-15 10:58:28 +02:00
Oleksandr Garagatyi 851c3a8be7 fixup! fixup! fixup! fixup! Add workspaceEnv to plugin, populate it on sidecar resolving 2018-10-14 14:13:16 +03:00
Oleksandr Garagatyi 44a47a7bc1 fixup! fixup! fixup! Add workspaceEnv to plugin, populate it on sidecar resolving 2018-10-14 14:01:16 +03:00
Sergii Leshchenko a4629c2e4d Move recovering of runtimes out of PostConstruct phase (PR #11592) 2018-10-13 17:33:26 +03:00
Sergii Leshchenko 0ce23f5155 Set 'links' response header while returning workspace list (PR #11592) 2018-10-13 17:33:26 +03:00
Sergii Kabashniuk 4d78766f08
Add index in thread names (#11608) 2018-10-13 14:28:15 +03:00
Florent BENOIT 3a91be932a Create a parent /node_modules folder and add setting for yarn to use that parent folder
then, any /projects/* items will use that parent folder to store dependencies and avoid to use current folder
it will avoid any big I/O operations on the /projects folder

Change-Id: I9fee5963808607b93dcc592456845fb5a3d73e4a
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2018-10-12 19:15:03 +02:00
Sergey Skorik f9abc930a5
Selenium: fix unstable selenium tests (#11610) 2018-10-12 16:43:12 +03:00
Florent BENOIT baafe61add Use of the new theia image
Change-Id: Ie359173b529068018bcdf82fa5d7960a07b28188
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2018-10-12 15:27:15 +02:00
Igor Ohrimenko b8316b350f
[Selenium] Adapt the "TheiaBuildPluginTest" selenium test to the new terminal tab titles (#11607) 2018-10-12 15:18:18 +03:00
Mykhailo Kuznietsov 870751df75
Improve and clean up factory validation exception messages (#11585) 2018-10-12 14:13:56 +03:00
Max Shaposhnik 941b8e80b9
Add an ability to use a custom registry for WS.NEXT plugins 2018-10-12 13:40:43 +03:00
Sergii Kabashniuk 518c5f282b
Add cause information in case of InvocationTargetException | IllegalAccessException happened in LoggedRunnable (#11602) 2018-10-12 13:40:10 +03:00
Oleksandr Garagatyi 4919b1b361 fixup! fixup! Add workspaceEnv to plugin, populate it on sidecar resolving 2018-10-12 11:07:41 +03:00
Aleksandr Shmaraiev 6aca32f99e
Selenium: Correct the method 'waitAndSelectItemByName()' in the 'ProjectExplorer' (#11599) 2018-10-12 06:14:31 +00:00
Oleksandr Garagatyi 23eef0a7af fixup! Add workspaceEnv to plugin, populate it on sidecar resolving 2018-10-11 18:52:47 +03:00
Igor Ohrimenko af18323916
[Selenium] Adapt the "TheiaBuildPluginTest" selenium test to changes in the top menu (#11595) 2018-10-11 18:32:01 +03:00
Sergey Skorik 7f12b889c9
Selenium: quick fix for selenium tests (#11597) 2018-10-11 17:56:58 +03:00
Aleksandr Shmaraiev 4e7f4ff15d
Selenium: Change the 'GitStatusBar' to avoid unexpected 'stale element exception' (#11590)
* Selenium: Change the 'GitStatusBar' to avoid unexpected 'stale element exception'
* Rename the 'clickOnStatusBarMinimizeBtn()' on the 'waitAndClickOnStatusBarMinimizeBtn()'
2018-10-11 14:56:35 +00:00
Oleksii Orel eab323deb1 Fix create factory flow
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Oleksii Orel 4171adaa50 Fix import git project service
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Oleksii Orel 4d7d24b5c0 CHE-10732 Fix empty 'Edit the machine' form error
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Oleksii Orel d2e7bc9eb9 CHE-10659 Fix the regular expression for a workspace name
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Oleksandr Garagatyi caa36ae58c Add workspaceEnv to plugin, populate it on sidecar resolving
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-10-11 15:01:58 +03:00
Artem Zatsarynnyi 8b1ffc51d9
Fix importing a project from Git VCS with a branch that contains slash symbol (#11579)
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
2018-10-11 14:07:58 +03:00
Oleksandr Andriienko b53800e8a4
CHE-10945: Fix terminal font for some systems. (#11576)
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2018-10-11 14:06:31 +03:00
Anna Shumilova d4e98b624e Split editors and plugins, and disable installers, when any plugin is selected
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-10-11 11:08:43 +03:00
Igor Ohrimenko 915e9ffbf9
[Selenium] Fix unexpected fail of "AutocompleteFeaturesInEditorTest" selenium test (#11565) 2018-10-11 10:31:15 +03:00
David Festal 534a961e84
Provide better compatibility with alternate OIDC providers (#11090)
Currently in Che there are still a number of requirements in upstream that are not required by the OIDC specification, so that Che still cannot be used with a number of OIDC compliant providers.
For example, in order to have Che working with the [`node-oidc-provider`](https://github.com/panva/node-oidc-provider), the following changes were necessary:

- Remove the requirement to have the email as a claim in the JWT access
token: this is not required the specification and is not supported by a
number of OIDC providers. Normally, the Id token contains such claims.

  So now if the email is not in the JWT token the first time the user connects to Che, ten the email is retrieved from the OIDC provider through its `user-profile` endpoint.

- Explicitely specify the the `openid email profile` scope when requesting the access token. Because OIDC providers, when answering to the `userInfo` endpoint, are expected to return claims that corresponds to the scopes of the access token. So if an access token has the `openid` scope only, the `userinfo` might return no claim at all (according to the specification).

  Until now it was working since keycloak allows adding claims to the returned tokens anyway.

- Allow supporting fixed redirect Uris: most OIDC providers support having a list of redirect URIs to come back to after the authorization step.  But these authorized Uris don't necessarily support wildcards or prefix. Che doesn't support this currently, and these changes introduce 2 fixed callback HTML pages that redirect to the Dashboard / IDE URL of the final page we want to come back to after authentication. This makes Che compatible with more OIDC providers

  We introduced a new boolean property to enable / disable fixed redirect URLs:
  `che.keycloak.use_fixed_redirect_urls` 
  whose default value is `false`

- The previous points required some light changes in the Keycloak Javascript adapter file, that we will submit as a PR to the Keycloak project. I, the meantime the `OIDCKeycloak.js` file is still used, but has been updated to be now based on the `keycloak.js` file of the last `4.5.0-final` Keycloak release. This will make this Keycloak PR easier to get accepted.

  Please keep in mind that this version upgrade only impacts the alternate OIDC provider case: when using a real Keycloak server, Che *always uses the `keycloak.js` file provided by the Keycloak server*. 


Signed-off-by: David Festal <dfestal@redhat.com>
2018-10-10 20:52:35 +02:00
Dmytro Nochevnov 97c703c719
Store logs of test workspaces created by E2E tests from Dashboard (#11542)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-10-10 15:52:24 +00:00
Mario Loriedo a6727b7f3f
Added exec plugin to Che 7 stack (#11580)
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2018-10-10 17:23:02 +02:00
Oleksandr Garagatyi 8eaad8543b Ensure correct memory request/limit are set
Ensure that all containers have memory request is set and not
bigger than memory limit.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-10-10 17:57:18 +03:00
Oleksandr Garagatyi aeb99f99f8 Set Memory request for JWT sidecar
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-10-10 17:57:18 +03:00
Sergey Skorik e08a48eec2
Selenium: update expected stacks lists in 'NewWorkspacesPageTest' test(#11577) 2018-10-10 15:40:14 +03:00
Artem Zatsarynnyi 410ecaa1f0
Fix duplicating the processes in the Commands toolbar (#11566)
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
2018-10-10 14:13:25 +03:00
Sergii Kabashniuk 65bd65e23b Upgrade to new dependency mockito-testng (#10647) 2018-10-10 13:58:33 +03:00