Commit Graph

2246 Commits

Author SHA1 Message Date
Natalia Kislicyn
b50a82fc0f RabbitMQ listener properties (#899)
* Rename dmf defaults properties to config rabbitmq's simple listener

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>

* set rabbitmq listener prefetch and concurrency properties

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>
2019-10-21 10:59:58 +02:00
Kai Zimmermann
1a0c6cb842 Updated cloud slide. (#902)
Signed-off-by: Kai Zimmermann <kai.zimmermann@microsoft.com>
2019-10-21 07:56:56 +02:00
Jeroen Laverman
c7c7f37fb4 Add link to hawkBit sessions of ECE19
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2019-10-19 10:38:52 +02:00
Jeroen Laverman
42700c1e35 Add slides for EclipseCon 2019 Community day (#900)
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2019-10-19 10:37:42 +02:00
Robert Sing
b4025f9c27 improved documentation of ddi-rootcontroller resource's links list (#887)
* improved documentation of ddi-rootcontroller resource's links list
* fixed review comments
* improved formatting

Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>
2019-10-18 09:32:08 +02:00
Sandeep Ravindranath
ed0f56d0a3 Change constructor visibility of JpaTargetTagManagement to public (#896)
Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb) <Sandeep.Ravindranath@bosch-si.com>
2019-10-11 15:08:27 +02:00
Natalia Kislicyn
193603282a Introduce new DMF message THING_REMOVED (#891)
* Introduce new DMF message THING_REMOVED

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>

* rename test to its original name

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>

* API documentation adapted; constant defined for duplicated string

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>

* Resolve review comments; Replace try/catch blocks in exceptions testing

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>

* Re-add finally block in test cases

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>
2019-10-10 14:41:47 +02:00
Stefan Klotz
8687510131 Assign multiple distribution sets to a target via mgmt api (#886)
* Add multiassignment to mgmt api target endpoint
* Remove single assignment ds to targets offline
* Fix tests
* Add quota for maxResultingActionsPerManualAssignment
* Fix assignment with same target or distribution set multiple times in one request
* Log UI error
* Add tests
* Enable single assignment requests with multiple DSs and types
* Remove redundant target to DS assignment methods
* Add tests, fix assignment
* Fix possible nullpointer during target assignment request
* Update api docu
* Clean up deployment management code
* Enforce MaxActions quota for offline assignment
* Fix review findings
* Rename property, add migration into
* Add builder for DeploymentRequest
* Change offline assignment method to accept an assignment list, like online assignment
* Fix PR findings

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
2019-09-17 14:20:26 +02:00
Dominic Schabel
dba972423b Fixed wrong Spring version
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-09-03 17:19:45 +02:00
Ahmed Sayed
a85dafaad5 Added localization to String.format (#857)
Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
2019-09-02 08:45:14 +02:00
Robert Sing
9f76f6c371 added missing JsonIgnoreProperties annotation for DDI Api model classes (#881)
* added missing JsonIgnoreProperties annotation for DDI model classes
* added Copyright Headers & serialization tests for all Ddi model classes
* fixed typo in test
* fixed review findings
* added missing test descriptions

Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>
2019-08-27 09:27:20 +02:00
Anand Kumar
e841dc6a8a Security fix for UI auto refresh (#885)
Signed-off-by: Anand Kumar <anand.kumar@bosch-si.com>
2019-08-21 11:05:36 +02:00
Ahmed Sayed
d40b11d2ab introduced open actionIds in MgmtTargetAssignmentResponseBody (#864)
* introduced open actionIds in MgmtTargetAssignmentResponseBody

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed SonarQube issues

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* removed unused method parameter

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* updated documentation tests

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* added limit to the alreadyAssignedActions in the AssignmentResult

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* moved alreadyAssignedActions limitation to MgmtDistributionSetMapper

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed review findings

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* removed alreadyAssignedActions

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed sonarQube issues

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed compilation error

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed PR review findings

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed PR review findings

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* Renamed AssignmentResult to AbstractAssignmentResult

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed review findings

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* fixed formatting

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* reverted method visibility

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
2019-08-20 11:31:20 +02:00
Ahmed Sayed
973f1952c7 Excluded EntityAlreadyExists exceptions from requeuing (#883)
* excluded EntityAlreadyExists exceptions from requeuing

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* moved the catch clause closer to the thrown exception

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* reverted AmqpMessageHandlerServiceIntegrationTest package change

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* reduced scope of method variable

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>

* removed instantiation of exceptions

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
2019-08-14 16:59:08 +02:00
Bondar Bogdan
c68c5a6f5b Feature event publishing (#884)
* refactored code to use EventPublisherHolder for publishing application events where possible

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

* fixed comment

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
2019-08-14 09:08:23 +02:00
Markus Block
2b5b8b4a63 Remove dependency to Vaadin addon tokenfield (#875)
* Removed vaadin Tokenfield dependency

Implemented own Tokenfield, but not finished yet. This branch is not
intended to be merged!!!

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* added Combobox and get it running

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Fixed remaining problems, added Combobox for tag selection

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* fixed permission check

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* fixed tag update

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Changed Tag assignment in details tab

Removed assign button and assign a tag when it is selected. In tables
only refreshFilter when necessary.

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* fixed Bulkupload

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Making Sonar happy

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Making Sonar happy

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Fixed Bug in DistTokenfield and sorted Tags in Tag list

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Making Sonar happy

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Fixed Sonar issues

Signed-off-by: Markus Block <markus.block@bosch-si.com>

* Implemented code review remarks

Signed-off-by: Markus Block <markus.block@bosch-si.com>
2019-08-13 11:19:19 +02:00
Dominic Schabel
275c6a5b2e Filed CQs for PR #865
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-08-02 13:36:45 +02:00
Bondar Bogdan
41cbf23c62 Feature dispatcher refactoring (#872)
* added target validation for cancel event, allowed from-self check overriding

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

* changed methods visibility

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

* made isFromSelf a concrete implementation of shouldBeProcessed generic event method

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

* changed log level to warn

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
2019-08-01 10:19:20 +02:00
Dominic Schabel
f4475780d6 Set constructor to public
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-08-01 09:35:55 +02:00
AnbazhakanSubramaniam
d76188a382 Default sort order for targets and rollouts (ref #764) (#874)
* Default sort order for targets and rollouts (ref #764)

The default sort order has been change in order to show the newest
targets and rollouts are always on the top.

* Review Point handled : TARGET_TABLE_CREATE_AT_SORT_ORDER has been
removed

Signed-off-by: Anbazhakan Subramaniam <Anbazhakan.Subramaniam@in.bosch.com>
2019-08-01 09:13:59 +02:00
Dominic Schabel
248b3e62b4 0.3.0M5 docker images added
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-07-31 13:02:17 +02:00
Robert Sing
61378b1f5c fixed NullPointerException in deployment view (#871)
* fixed NullPointer exception in deployment view

Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>

* fixed review findings

Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>
2019-07-31 09:29:23 +02:00
Dominic Schabel
5b4bbeef41 0.3.0M5 added to release notes
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-07-29 15:39:26 +02:00
Alexander Dobler
bde3548846 DDI supports sha256 (#869)
* Add SHA256 file hash to ddi GET outputs

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Integrate review findings for SHA256 changes

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Renamed hashes to base16hases in store() parameters

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Added missing javadoc according to sonarqube findings

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
2019-07-29 14:11:40 +02:00
Sandeep Ravindranath
fba6cf9787 External ref for actions and status-update events (#830)
* Add feature to listen to rollout status update
* With this feature, extensions can update back the status of a given rollout using an event(containing distributionSetId and targetId).
* In future, AmqpMessageHandlerService can make use of this feature and de-couple its own implementation from performing status update of an action.
* Implement ActionStatusUpdateHandlerService using actionId
* Extend actions to support externalRef
* Update the action status using externalRef.
* Update securityContext to support running a callable under specific authorities.
* Fixing the review comments
* Increase length of externalRef to 128 chars
* Remove actionStatusUpdateEvent and the handler service
* Use 256 chars for externalRef
* Increment the version for migration script
* Another feature had use v1_12_12 in a recent PR. So incrementing the version.
* Create length limit for externalRef and add it to index
* Externalref will be much longer than 256 chars if controllerId is as long as 256 chars
* Adding tests for verifying externalRef in controllerManagement
* Improve test to consider multiple externalRefs
* Fix issue in migration script for mssql server
* Fix documentation

Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb) <Sandeep.Ravindranath@bosch-si.com>
2019-07-25 09:45:07 +02:00
Dominic Schabel
e80399bc79 CQ list for PR #865 populated
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-07-25 09:28:14 +02:00
Alexander Dobler
c6357b1e5c Reduced DMF logging level in BaseAmqpService to debug (#868)
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
2019-07-19 14:52:37 +02:00
Stefan Behl
4e9308a949 Performance optimizations for Multi-Assignments (#858)
* Add remote event test for the new MultiActionEvent
* Improve test descriptions
* Improve sendMultiActionRequestMessages
* Moved action filtering to the database query level (#12)
* Use @ExpectedEvents instead of EventHandlerStubs
* Removed @Param from 'existsByTargetControllerIdAndStatusAndActiveIsTrue'
* Reverted metadata initialization
* Fix hawkBit bot findings

Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
2019-07-19 14:47:29 +02:00
Robert Sing
749218098f Fixed typos in server error codes and messages (#867)
* fixed typos in server error codes and messages

Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>

* reverted changes of server error message keys

Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>
2019-07-18 09:55:13 +02:00
Dominic Schabel
7dd3e0db71 0.3.0M4 added to release notes
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-07-02 17:42:20 +02:00
Stefan Behl
fd9de429e6 Fix MAX_TENANTS_QUERY constant. Signed-off-by: Stefan Behl stefan.behl@bosch-si.com 2019-07-01 16:30:25 +02:00
Nazife Basbaz
2e37f85c2f Test check complete of distribution set (#859)
* fix the logic that marks distributionSet as complete
* DistributionSets without SoftwareModules shall not be marked as complete, when no Software Module is assigned

Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb) <Sandeep.Ravindranath@bosch-si.com>

* test to verify that the distributionSet is complete or not
* change test description

Signed-off-by: Nazife Basbaz <nazife.basbaz@bosch-si.com>
2019-07-01 11:28:24 +02:00
Sandeep Ravindranath
effb1e24ad fix the logic that marks distributionSet as complete (#838)
DistributionSets without SoftwareModules shall not be marked as complete, when no Software Module is assigned

Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb) <Sandeep.Ravindranath@bosch-si.com>
2019-07-01 10:24:00 +02:00
Natalia Kislicyn
0812937f3f Handle response of MethodArgumentNotValidException (#855)
* Handle response of MethodArgumentNotValidException
* Readapt DdiDeploymentBaseTest after merge conflicts
* Handle Exceptions HttpMessageNotReadable and MethodArgumentNotValid in one ExceptionHandler method

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>
2019-06-25 13:31:31 +02:00
Bondar Bogdan
379726a697 Feature enable cors (#854)
* enabled cors in security configuration, added corresponding properties
* added test for cors validation
* formatting
* added mariadb test dependency and refactored test
* added database listeners to the test
* Remove dependency duplicate

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
2019-06-24 17:19:38 +02:00
Ahmed Sayed
4640b8ad5e refactored DdiDeploymentBaseTest.java (#853)
* refactored DdiDeploymentBaseTest.java
* removed hardcoded variables, moved createArtifact() to TestDataFactory

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
2019-06-21 11:12:21 +02:00
Stefan Behl
06a739a3dc Fix failing ControllerManagement tests (#856)
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
2019-06-19 16:48:07 +02:00
Florian Ruschbaschan
f6c0edffa5 Increase target name to 128 and target controller id to 256 (#849)
* Increase target name to 128 and target controller id to 256
* Fix test failures by using constant NamedEntity.NAME_MAX_SIZE + 1
* Use constant NamedEntity.NAME_MAX_SIZE + 1 for mgmt-resource tests
* Add db migration scripts to increase the controllerId and name limit
* Fix review issues
* Use correct constant field for junit tests
* Change Hawkbit documentation url of application-<db>.properties
* Add new line at the end of db migration scripts
* Update assertion description
* Revert copyright years to its creator year
* Add DDI-, AMQP- and controller management-tests

Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch-si.com>
2019-06-18 15:29:15 +02:00
Bondar Bogdan
568848bb27 Fix upload artifact (#852)
* fixed repository to check for file existence before trying to get the artifact
* added additional existence checks before retrieving the artifact from repository

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
2019-06-13 16:59:21 +02:00
Jeroen Laverman
34fc7a7012 Add fix for Download-Only deployment type on DDI-API (#848)
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2019-06-12 15:43:29 +02:00
Jeroen Laverman
be17958f4a Add documentation for feature Multi-Assignment (#840)
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2019-06-06 16:43:14 +02:00
Natalia Kislicyn
3b15e80e95 Bugfix NPE in target percentage (#819)
* Fixed NullPointerException in groups validation callback

Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>
2019-06-06 08:21:28 +02:00
Nazife Basbaz
fde0cbdf16 fix bug: change sql-query in localArtifactRepository (#820)
Also-by: Nazife Basbaz <nazife.basbaz@bosch-si.com>
Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
2019-06-05 16:07:07 +02:00
Patrick Schlebusch
b8ca7d24c8 Change loglevel to debug for rolloutgroup status messages (#847)
Signed-off-by: Patrick Schlebusch <patrick.schlebusch@devolo.de>
2019-06-05 08:03:41 +02:00
Dominic Schabel
e6146fa55e Sonar issue fixed
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-05-24 11:40:41 +02:00
Dominic Schabel
509693d0ae Sonar issue fixed
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-05-24 11:14:31 +02:00
Dominic Schabel
c88e7bb06e Sonar issues fixed
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-05-23 19:48:34 +02:00
Dominic Schabel
e5c4b7ff2e Bump version of badges to 0.3.0M3
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-05-23 16:34:29 +02:00
Ahmed Sayed
fc46495d92 fixed typo (#845)
Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
2019-05-23 15:45:17 +02:00
Bondar Bogdan
d5c373e420 fixed conditions evaluations, that always resulted in true (#844)
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
2019-05-23 09:12:41 +02:00