Commit Graph

2142 Commits

Author SHA1 Message Date
Dominic Schabel
a1ace0a463 Fixed wrong GPG key for MariaDB driver
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-12-17 16:28:10 +01:00
Dominic Schabel
25209166a7 Fixed outdated comment
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-12-17 15:56:11 +01:00
Dominic Schabel
c9067156d9 Message fixed
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-12-17 11:04:52 +01:00
Dominic Schabel
a6cfd4205a Update Dockerfiles to 0.2.5
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-12-17 10:45:23 +01:00
Stefan Klotz
20d84a10eb Fix artifact filename validation (#770)
* use validated ArtifactUpload object when creating a new artifact

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* rename method

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* add regular expression classes

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* add filename validation to UI upload button

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* move filename validation to uploadStarted

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* clean up code for UI error handling during artifact upload, assert
filename validation

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* update visibilities

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* clean up code

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* clean up code

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* change RegexChar class to enum and use i18n

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* typo, use StringBuilder

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* typo

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* use dedicated class for collections of regular expression characters

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* remove Optional, remove stringBuilder

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* PR findings

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* make regex validation method static

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* use WhiteListType.NONE for filename validation via mgmt-api

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
2018-12-17 10:17:46 +01:00
Bondar Bogdan
a2c1e5f132 Transaction handling refactoring (#771)
* unified new transaction handling in jpa repositories, extended Deployment Management and Action Repository

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* moved Deployment Helper to utilities package

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* removed superfluous utility method from Deployment Helper

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* refactored distribution set to target assignment, fixed PR review findings

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* fixed PR review findings

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* added additional validation of active flag and current status fields for action status update repository method

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* fixed timing issue in amqp message handler integration test, when validating target attributes update

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
2018-12-14 17:41:38 +01:00
Jeroen Laverman
b06928d089 Fix missing localization (#772)
* fix typos

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Add localization to documentation link description

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Add localization for rollouts errorthreshold

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Add CN to available localizations

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix NO TAG localization

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Fix sonar findings

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Make Localization configurable

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix sonar findings

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix review findings

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix review findings

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* add final

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2018-12-13 09:07:10 +01:00
Stefan Klotz
347fac7f00 Fix empty collection saved in ds table (#768)
* check if collection is empty, clean up and refactor code
* fix map and set types
* fix array conversion
* fix review findings

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
2018-11-30 09:05:18 +01:00
Stefan Schake
e9ddcefd4a Include attribute values in target search text filter (#736)
* Add specification for like attribute value

v2: ensure returned targets are unique
v3: remove redundant or

Signed-off-by: Stefan Schake <stefan.schake@devolo.de>

* Use like attribute value specification with target search text

Target attributes are the primary way to relay back metadata,
particularly in a plug&play application. They should therefore be
included in the target search. Attribute keys are excluded since they
are expected to be consistent between targets.

v3: remove whitespace changes

Signed-off-by: Stefan Schake <stefan.schake@devolo.de>

* Add test for target search includes attribute values

v2: test targets returned are unique

Signed-off-by: Stefan Schake <stefan.schake@devolo.de>
2018-11-29 10:18:51 +01:00
Bondar Bogdan
b2dfd4a99e Feature target metadata filter (#767)
* implemented RSQL query filter for target metadata

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* refactored rsql fields providers code for targets, distribution sets and software modules for consistency, fixed predicate grouping for map fields in rsql utility

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* extended tests for target management rsql queries with target metadata

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* extended target management test for RSQL not equal case of target metadata, added a suggestion of comparator operators when map key ends with = or ! symbol in Target Filter View

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* Fixed peer review findings

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>

* small test fixes: seconds are respected while scheduling the maintenance window, redundant ds-target assignment statement removed

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
2018-11-28 14:09:52 +01:00
Bondar Bogdan
a460f61e13 Added TargetAttributesRequestedEvent event type (#769)
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
2018-11-27 14:40:41 +01:00
Stefan Klotz
be348030b2 Feature target metadata ui (#765)
* add metadata tab and popup to target UI

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* send event to update UI

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* send event on target meta data delete and update

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* display selected element name in details layout and metadata popup of UI

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* add comments to explain manual event publishing

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* remove option to hide metadata button in details layout

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* fix typos and refactor

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* fix typos

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>

* fix wrong method call

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
2018-11-26 11:10:49 +01:00
Dominic Schabel
9d38f76c43 Bugfix for CircleCI builds
CircleCI updated the latest docker image to JDK 8u81 which has a bug

Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-11-20 18:56:19 +01:00
Stefan Klotz
d4c1e82090 Feature do not temp store uploaded files (#763)
* Upload artefacts directly without creating a temp file
* Remove redundant code that checks if user tries to update a directory
* Handle UI upload exceptions, use Spring thread pool
* Clean up code
* Fix review findings
* Fix Sonar findings

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
2018-11-12 08:57:10 +01:00
Stefan Schake
49d064df18 Switch printed order of firstname and lastname (#758)
When separating with a comma, put the lastname up front.

Signed-off-by: Stefan Schake <stefan.schake@devolo.de>
2018-11-07 11:02:22 +01:00
Stefan Behl
ddca072561 Fixes for software module assignment in Distributions Management view of Mgmt UI (#759)
* Fix software module assignment
* Fix hawkbit-bot findings
* Fix review findings

Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
2018-10-30 08:48:39 +01:00
Bondar Bogdan
0cf4f8e8b9 Feature target metadata (#757)
* Defined the model for target matadata and the corresponding repository layer/management
* Added target metadata quotas incl enforcement
* Extended Target Mgmt REST API to allow for metadata CRUD operations
* Added migration scripts for each database
* Added back reference to target metadata in JpaTarget
* Added tests for target management, Mgmt REST API, target metadata RSQL, and REST documentation
* Updated asciidocs for target rest documentation
* Fix Allure imports and annotations
* Fix review findings

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
2018-10-29 11:28:34 +01:00
Dominic Schabel
1cbde47370 First version of a Dockerfile generator added
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-26 23:57:48 +02:00
Dominic Schabel
1bff1feee2 Use CircleCI image with smaller footprint
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-26 21:25:39 +02:00
Dominic Schabel
96f6651570 Plugin versions upgraded
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-26 16:57:08 +02:00
Dominic Schabel
583f6fca08 Allure report timeout fixed
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-26 15:55:40 +02:00
Dominic Schabel
a6135a6c0c Quickfix for Allure timeout
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-26 15:38:38 +02:00
Dominic Schabel
70021c1935 Version of hawkBit 0.2.4 added
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-26 13:43:11 +02:00
Stefan Klotz
d09ca7be05 Migrate to Allure 2 (#749)
Add allure 2.7.0 dependency; change class references of Description, Features, Stories

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
2018-10-25 18:18:37 +02:00
Stefan Klotz
f8e1a547b0 Request attribute update after deployment (#750)
Send attribute update request to ddi connected device after successful software update

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
2018-10-25 17:12:41 +02:00
Dominic Schabel
93279c0803 Switched to HTTPS link in docs
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-22 21:29:00 +02:00
Dominic Schabel
56ce992764 Slides from Community Day added to docs
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-22 21:06:42 +02:00
Dominic Schabel
e1f28ab5bf Moved test results to 'jUnit' so it will be correctly displayed by CircleCI
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-16 19:05:47 +02:00
Dominic Schabel
ca65687fd5 Optimize CircleCI build (#756)
Optimize CircleCI build

Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-16 17:00:00 +02:00
Jeroen Laverman
1aed625fe6 Update website and docker files (#754)
* Add version 0.2.3.

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* remove themes

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2018-10-16 16:19:32 +02:00
Jeroen Laverman
bcdfed8511 Add sonarqube for PRs (#755)
* Add sonarqube for PRs

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix path to script

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Rename Token

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix script

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2018-10-16 15:37:52 +02:00
Jeroen Laverman
f40f388158 remove script
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-16 11:22:41 +02:00
Jeroen Laverman
d375689e55 Add SonarQube batch
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-16 11:16:16 +02:00
Jeroen Laverman
a46de65252 Show SonarQube status in website
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-16 11:14:52 +02:00
Jeroen Laverman
bbe6829012 Activate SonarQube analysis
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-16 11:12:48 +02:00
Jeroen Laverman
1f542f77a7 Fix docker command
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-16 09:47:35 +02:00
Jeroen Laverman
73e36775e3 Fix command
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2018-10-05 15:07:45 +02:00
Stefan Behl
086408e8f8 Feature Max Artifact Storage quota (#739)
* Enforcement of artifact storage quota
* Added REST integration tests for artifact upload
* Fix test config
* Fix failing test cases
* Fix PR review findings

Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
2018-10-05 13:52:46 +02:00
Jeroen Laverman
124ef54a78 Remove unnecessary properties
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-05 11:12:57 +02:00
Jeroen Laverman
2d74249cff Fix broken link
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-04 16:35:20 +02:00
Dominic Schabel
a1be6e3e81 Update docker setup to hawkBit 0.2.3
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-01 16:12:23 +02:00
Dominic Schabel
cba6755eac Revert PR 722
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-10-01 13:13:53 +02:00
Jeroen Laverman
f4893bce55 Fix invalid ID of login button
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-09-26 13:23:34 +02:00
Jeroen Laverman
e2dcb2bb08 Remove redundant configuration
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-09-24 14:42:16 +02:00
Jeroen Laverman
db05a0e164 Update path
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-09-21 17:01:24 +02:00
Jeroen Laverman
3de88ee397 Decrease timeout
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-09-21 17:00:40 +02:00
Jeroen Laverman
74009cfed5 Do not require SSL for cloud sandbox
SSL is handled by reverse proxy.

Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-09-21 17:00:05 +02:00
Jeroen Laverman
9fb2e7f3be Add new sandbox (#741)
* Add new sandbox files and remove temporary unavailable notice
* remove old deployment script
* adapt application properties
* restructure hawkbit-runtime
* move sandbox description.
* adapt license checks
* Introduce review findings and add new docker files
* Remove redundant profile and attribute
* Update website
* redirect to sandbox
* getting started
* Add description for docker folder and renew favicon
2018-09-21 14:12:47 +02:00
Jeroen Laverman
5fe86954b0 Fix handle invalid controller attributes (#740)
* Move controller attribute validation from DMF to Repository

Rational: Constraint validation on key & value of a map is currently not
supported by EclipseLink Maven Plugin. Therefore, this check has to be
done by hawkBit. The check is required for both APIs (DMF + DDI).

* add tests for attribute validation
* update tests

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Review findings

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* * Add custom exception for invalid target attributes
* Add integration tests for DDI and DMF

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* * rename exception

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* * rename test steps

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Fix value size

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Ensure constraints are validated correctly

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Introduce review findings

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix sonar finding

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2018-09-21 13:21:01 +02:00
Dominic Schabel
cab2a6f774 Superfluous exception removed from method signature
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2018-09-17 10:43:25 +02:00