Commit Graph

7477 Commits (5ac5e46ee2954fdff7a32fa5df2923e99744efb7)

Author SHA1 Message Date
Yevhen Vydolob 5ac5e46ee2
Generate and publish TS DTO interfaces (#12293)
#11306 generate and publish TS DTO interfaces

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2019-01-11 10:51:56 +02:00
Oleksandr Garagatyi 72065b582f
Add binding of VS Code extension broker for Che 7 (#12149)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-01-10 21:09:40 +02:00
Lukas Krejci 316272e35f
Merge pull request #12368. Fixes #12242
Add workspace failure count metric.
2019-01-10 14:38:13 +01:00
Lukas Krejci d9c603d4ad Fix the scope of che-core-api-dto. It is only required in tests.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-10 09:39:37 +01:00
Mykhailo Kuznietsov 3574455d8e
Add filter to track 5xx errors for Prometheus (#12284) 2019-01-10 09:37:26 +02:00
Lukas Krejci 551ff2b0e1 Add workspace failure count metric.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 17:52:20 +01:00
Lukas Krejci 43da30e0b6
Merge pull request #12270. Fixes #12092 2019-01-09 17:51:21 +01:00
Lukas Krejci 69ff7a83ac
Use the names of the enums instead of their ordinals when storing them to DB (#12222)
* Use the names of the enums instead of their ordinals when storing them
to varchar columns in DB.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 16:07:24 +01:00
Lukas Krejci 3fd7af575b Test that activity manager relays the results from the DAO when
counting workspaces in a status.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 11:00:48 +01:00
Lukas Krejci c8effa7c11 Reformulate the tests in a more given-when-then style.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 10:56:11 +01:00
Lukas Krejci ade67cb7a0 Use a more appropriate gauge builder method.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 10:42:19 +01:00
Sergii Leshchenko b0754087f5
Added an ability to deploy Che Plugin Registry with argument for deploy_che.sh script (#12310) 2019-01-09 11:26:49 +02:00
Angel Misevski 1ffb78c177 Add test cases for Deployments supprt
Add test cases for
- KubernetesInternalRuntime, when creating from deployments
- UniqueNamesProvisioner, to ensure deployments and configmaps are
  handled correctly

Signed-off-by: Angel Misevsk <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski a1417ac9c6 Simplify KubernetesEnvironment#addPod() slightly + cleanup
Remove podName parameter from addPod method and simply get it from the
pod's metadata.

Additional cleanup and documentation changes:

- Make some log messages level 'info' instead of 'debug'
- Modify argument order in messages to to make more sense
- Add docs for KubernetesEnvironment methods about how/when pods map can
  be modified
- Fix issue where pods referencing nonexistent configmaps would emit
  unreadable error messages due to configmap renaming.
- Clean up code according to PR Quality Review

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski e0f774c456 Add user dashboard-side validation for deployments/configmaps in recipes
Add validation and processing on the dashboard side for recipes
containing deployments and/or configmaps. This allows users to create
new stacks using these items in recipes.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski 129788ba31 Cleanup related to Deployments support
- Rename method in KubernetesInternalRuntime to make its meaning more
  clear
- Fix some documentation issues
- Refactor KubernetesEnvironment to set podData in constructor instead
  of through builder, avoiding inconsistencies in podData when using
  constructor directly.
- Rename KubernetesEnvironment#getPodData to getPodsData to better
  represent the data that is returned
- Fix issue where pod-based recipes were not correctly getting
  deployment name label and so were failing to start
- Fix issue where deployments were not given a unique name by
  provisioner.

Signed-off-by: Angel Misevsk <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski e52d35e5a7 Add ConfigMap support in Kubernetes/OpenShift recipes
Allow configmaps to be specified in Kubernetes/OpenShift recipes. Also
changes UniqueNamesProvisioner to rewrite configmap names across the
environment to avoid name collisions.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski bc5c90a754 Fix tests to accomodate support of deployments in k8s/OS recipes
Changes necessary to make tests compile and pass after introduction of
deployments into Kubernetes/OpenShift recipes.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski 9dfc0b6654 Support deployments in Kubernetes/OpenShift recipes
Add support of deployments in Kubernetes and OpenShift recipes.

Important changes:
- Since a (Kubernetes|OpenShift)Environment now can contain *both* pods
  and deployments simultaneously, we need to:
  - Introduce a wrapper class, PodData, which stores spec and metadata
    for either a pod or deployment, allowing provisioners to look in one
    place for specs that need to be modified
  - Disallow modifying the results of KubernetesEnvironment.getPods()
    directly, as this would ignore any deployments in the environment
  - Add method KubernetesEnvironment.getDeployments(), to obtain
    deployment objects directly when needed.
- Modify workspace start process to start all deployments in environment
  as well as all pods.

Note: In an effort to keep the changes in this PR readable, nothing is
done to fix broken tests due to the changes above. This commit will not
compile unless test compilation is skipped. The next commit fixes tests.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Lukas Krejci eb38457b08 Sprinkle bits of javadoc on the classes.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-08 12:32:02 +01:00
Lukas Krejci b20d64d464 Make JpaWorkspaceActivityDao#countWorkspacesInStatus transactional.
Add simple tests for the method.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-08 12:18:26 +01:00
Lukas Krejci aec666ffc7 Rename the workspaces.in.status metric to che.workspace.status
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-08 08:53:24 +01:00
Lukas Krejci d8a87ba1b1 Only install the wsmaster metrics module when metrics are enabled.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-08 08:52:56 +01:00
Lukas Krejci 7f38fc4e91 Sorting the poms.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-08 08:52:35 +01:00
Lukas Krejci dec24d8ac4 Merge remote-tracking branch 'upstream/master' into workspace-prometheus-metrics
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-07 22:27:22 +01:00
Lukas Krejci 68d2788b18 Move the wsmaster metrics into a separate module so that
the metrics-related functionality doesn't "infect" the rest of the codebase

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-07 15:34:33 +01:00
Aleksandr Shmaraiev 902ddc02fd
Selenium: Do refactoring selenium tests (#12338) 2019-01-05 11:32:30 +02:00
Oleksii Orel d67d0abbd3
CHE-8909 fix add a new machine flow (#12324)
* CHE-8909 fix add a new machine flow

Signed-off-by: Oleksii Orel <oorel@redhat.com>

* fix machine name in WorkspaceDetailsMachineActionsTest selenium test

* fix the regular expression for a container name

Signed-off-by: Oleksii Orel <oorel@redhat.com>
2019-01-04 15:49:57 +02:00
Aleksandr Shmaraiev ed9a5f5d02
Selenium: Do refactoring selenium tests in the 'intelligencecommand' package (#12331) 2019-01-04 09:35:38 +02:00
Dmytro Nochevnov 431920538b
Make Keycloak CLI client for E2E test as extendable (#12325)
Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
2019-01-03 21:01:23 +01:00
Sergii Leshchenko 51f945a550
Use 'envFrom' in Che Deployment instead of duplicating of entries from config map (#12289) 2019-01-03 11:27:48 +02:00
Aleksandr Shmaraiev 5d0cdfcbbb
Selenium: Do refactoring selenium tests from the 'factory' package (#12323) 2019-01-03 09:32:08 +02:00
Max Shaposhnik 0cc54b0132
Add kubernetes/os type tool into devfile API 2019-01-02 16:08:55 +02:00
Aleksandr Shmaraiev e4d0f9987d
Selenium: Refactor tests from the 'editor' package (#12313) 2018-12-31 16:09:41 +02:00
Sergii Kabashniuk d5b879abf2
Made defile commands optional (#12308) 2018-12-30 12:15:28 +02:00
Dmytro Nochevnov 9536a5063e
Fix LoginNewUserWithOpenShiftOAuthTest selenium test (#12318)
* Fix getting existed test workspace id
* Fix workspace name in CreateWorkspaceOnDashboardTest
* Remove error-prone command from LoginExistedUserWithOpenShiftOAuthTest
* Fix LoginNewUserWithOpenShiftOAuthTest selenium test

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
2018-12-29 22:40:00 +01:00
Sergey Skorik e885bbd982
Selenium: add info about known #12315 issue to TheiaBuildPluginTest selenium test (#12316) 2018-12-29 16:38:10 +02:00
Sergey Skorik cb5da3faaa
Selenium: add info about known issues, stabilize tests (#12314)
* add info about known issues, stabilize tests

* fix timeout in CodenvyEditor page object
2018-12-29 16:37:42 +02:00
Dmytro Nochevnov af48cd877b
Upgrade version of selenium chrome-node to 3.141.59-dubnium (#12286)
* Upgrade version of selenium chromenode to 3.141.59-dubnium
* Fix test timeouts to comply with new chrome-node version
* Fix NewWorkspacePageTest selenium test
* Fix ImportProjectFromGitHubTest, AuthorizeOnGithubFromDashboardTest

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
2018-12-28 20:55:28 +01:00
Anna Shumilova a082fbe047 Make documentation links configurable
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-12-28 15:39:09 +02:00
Dmytro Nochevnov c85ef9e2ad
Remove redundant Eclipse Che 'user' role (#12279)
* Don't bind 'user' role to test user

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>

* Remove role 'user' from keycloak

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
2018-12-28 14:35:31 +01:00
Sergey Skorik b5ee590b20
Selenium: fix existed selenium tests from 'factory' package according to factory creation changes (#12297) 2018-12-28 14:27:36 +02:00
Dmytro Nochevnov 10a8006af7
Exclude flaky selenium tests from execution by default (#12296)
* Exclude flaky selenium tests from execution by default

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>

* Fix e2e selenium tests documentation

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>

* Restore CreateWorkspaceFromNodeStackTest test

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
2018-12-28 11:50:49 +01:00
Sergii Leshchenko 316011beec
Merge pull request #12257. Fixes #12207
Add periodical job that stops Runtimes without existing pods
2018-12-28 12:14:56 +02:00
Sergii Leshchenko 6553ddfbac Add logging messages when workspace is stopped abnormally 2018-12-28 11:47:28 +02:00
Anna Shumilova cd822c837a che-12167: change docker image regex to cover all cases from docker documentation
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-12-28 10:33:00 +02:00
Anna Shumilova 10c1b2b3a3 che-10030: avoid browser freeze after closing dialog with codemirror required error
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-12-28 10:33:00 +02:00
Sergii Leshchenko e8bf807964 Fix typo: 'ingressMeta' -> 'routeMeta' 2018-12-28 10:32:02 +02:00
Sergii Leshchenko 4758e5a453 Fix events publishing when stopping hanging k8s runtimes 2018-12-28 10:32:02 +02:00
Sergii Leshchenko c9308790e8 Make Internal#getContext and InternalRuntime#stop methods not final for testing 2018-12-28 10:32:02 +02:00