Stefan Schake
e8e203b69a
CBOR support for the DDI API ( #797 )
...
* Add test for default content-type of DDI
We want to add support for other content types to the DDI interface.
To make sure we don't break devices that implicitly assume they will
receive JSON without setting an Accept header, add a test for the current
behavior.
v2: Complete the assertion
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
* Add CBOR support for DDI API
Concise Binary Object Representation (CBOR) is a binary data format
optimized for small code and message size. Since Spring Boot 2, there
is an autoconfigured data converter so we need to do little more than
add the reference to the Jackson backend and advertise support in the DDI
endpoints. Add tests to ensure all endpoints support the format.
Fixes #748
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
2019-02-28 18:32:48 +01:00
Bondar Bogdan
473b6b2cc5
Feature extend target attributes constraints ( #799 )
...
* extended target attributes key limit to 128 characters
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* fixed tests
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
2019-02-25 14:54:30 +01:00
Kai Zimmermann
f9a7194fd5
Fix JavaDoc syntax errors. Add check to circle build. ( #791 )
...
* Fix JavaDoc syntax errors. Add check to circle build.
* One more code error
* Added missing tags.
2019-02-01 10:31:40 +01:00
Kai Zimmermann
d52a720480
Spring Boot 2.0 ( #721 )
...
* Migration to Boot 2.0.
Signed-off-by: Kai Zimmermann <kai.zimmermann@microsoft.com >
2019-01-31 07:29:27 +01:00
Jeroen Laverman
da098b334b
Improve "Required Migration Step" documentation ( #776 )
...
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
2019-01-08 12:56:47 +01:00
Stefan Behl
eada7cdd6f
Distribution set assignment: Fix NPE in AbstractDsAssignmentStrategy ( #777 )
...
* Fix NPE
* Add unit test
* Fix review findings
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
2018-12-21 13:08:43 +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
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
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
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
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
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
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
2d74249cff
Fix broken link
...
Signed-off-by: Jeroen Laverman jeroen.laverman@bosch-si.com
2018-10-04 16:35:20 +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
Jeroen Laverman
16ce2503df
Introduce log statement, to log stacktrace for MultipartExceptions with root cause without a message ( #733 )
...
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
2018-09-13 15:52:47 +02:00
Jeroen Laverman
b2558233b5
Fix javaDoc comment ( #720 )
...
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
2018-08-15 09:30:31 +02:00
Bondar Bogdan
1aee32999f
Feature update target attributes ui ( #711 )
...
* Added update attributes button with label for status description to target attributes details tab
* Positioned the request attributes update button to the upper right corner using absolute positioning
* DDIFinalResult enum typo fix
* PR review findings
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
2018-08-02 15:15:14 +02:00
Melanie Retter
2540847fef
Display link to distribution set in canceled action ( #709 )
...
Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com >
2018-07-20 15:29:15 +02:00
Stefan Behl
19caff6e46
Feature action cleanup ( #704 )
...
* Initial commit
* Tenant configuration enhancements
* Update REST documentation
* Enhance System Configuration view in UI
* Add unit tests
* Fix delete query for H2
* Improve test coverage
* Fix Sonar findings
* Fix Hawkbit bot findings
* Fix PR review findings
* Fix peer review findings
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
2018-07-19 15:23:14 +02:00
Jeroen Laverman
ecfe774e53
Target attributes update can be (re-)triggered by management API ( #690 )
...
* extend Management API with attribute `requestAttributes`
* introduce new DMF Event Topic `REQUEST_ATTRIBUTES_UPDATE`
* enhance REST documentation by new functionality
* add tests for:
* Management API
* Amqp Message Dispatcher Service
* Repository (Target Management)
Signed-off-by: Jeroen Jan Laverman (INST/ESY3) <jeroen.laverman@bosch-si.com >
2018-06-14 12:48:31 +02:00
Kai Zimmermann
ac931ec8fa
Master now on 0.3
2018-06-11 15:57:15 +02:00
Kai Zimmermann
d8ad9f6ef0
Sandbox uri and user includes DEMO hint ( #692 )
...
* New sandbox name und users.
* Fix controllerId in DDI docs.
* Optimise README set new creds
* Revert accidental checkin
* Fix typo.
* Cleanup text.
* Merge
2018-06-06 16:52:34 +02:00
Michael Müller
cef7c2bbf2
Feature Approval Workflow for rollouts ( #678 )
...
* implement feature approval workflow
Signed-off-by: Ioannis Spyropoulos <ioannis.spyropoulos@bosch-si.com >
Signed-off-by: Michael Müller <Michael.Mueller17@bosch-si.com >
* add documentation for REST endpoints
Signed-off-by: Ioannis Spyropoulos <ioannis.spyropoulos@bosch-si.com >
Signed-off-by: Michael Müller <Michael.Mueller17@bosch-si.com >
* fix broken documentation test
Signed-off-by: Ioannis Spyropoulos <ioannis.spyropoulos@bosch-si.com >
* fix broken documentation test II
Signed-off-by: Ioannis Spyropoulos <ioannis.spyropoulos@bosch-si.com >
2018-06-04 16:36:56 +02:00
Kai Zimmermann
428e3af2bc
hawkBit rest docs (management & DDI API) ( #688 )
...
* hawkBit REST docs.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Fiy gitignore.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Add to website.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Switch to generated docs.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Fix typos.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Review findings.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Otimizations.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Revert accidental checkin.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Add security link.
2018-05-24 16:10:01 +02:00