Michael Herdt
c5afc6b17e
make DdiActionFeedback#time value an optional property ( #1283 )
...
Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io >
2022-10-05 15:28:43 +02:00
Stefan Behl
3d3481110e
Provide target quicklinks from Target Filters and Rollout views to Deployment view ( #1270 )
...
* Adapted GridComponentBuilder#addControllerIdColumn to create a link
* Do not hard-code target link ID prefix
* Encode controller ID
* Introduce HTML encoder for controller IDs
* Remove unused imports
2022-09-23 15:29:58 +02:00
Michael Herdt
5e963f8308
Introduce action status scoped custom code ( #1277 )
...
* Allow providing a custom code with an action status feedback to give more fine grained device specific details.
* Add ddi rest docs for new optional status code value.
* Provide new code value via mgmt api. Fix review findings.
* Fix failing tests
Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io >
Co-authored-by: Stefan Behl <stefan.behl@bosch.io >
2022-09-21 15:20:34 +02:00
Florian Ruschbaschan
32718676a4
Feature/java11 build ( #1280 )
...
* hawkBit on Java 11
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* Preparing java 11 build
- Update eclipse-link maven plugin dependencies
- Fixing warnings, adopt to java-11 style
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Preparing java 11 build
- Fixing warnings, adapt to java-11 style
- Added since to deprecated
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Fixing sonar warnings
- removed deprecated API
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Fixing sonar warnings & failing test
- Added suppressWarning
- added WithSpringAuthorityRule to clean-up listener
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Compile warnings
- Test if final causes issues in tests
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Removed deprecated code
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Reverted changes
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Removed final as this causes invalid reflective access exceptions
- The eclipselink generated classes seem to modify the field directly
- update plugin version
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Upgrade eclipselink from 2.7.9 to 2.7.10
* Remove @deprecated endpoints from MgmtTargetTagResource
* Remove dependencies already defined in eclipselink-maven-plugin
* Try eclipselink 2.7.11-RC1
* Set project encoding to UTF-8
* Upgrade surefire and failsafe plugins to 3.0.0-M7
* Try fixed string instead of a random generated one
* Replace JsonBuilder by Jackson ObjectMapper usage
* Use JsonBuilder again
* Use APPLICATION_JSON_UTF8 instead of APPLICATION_JSON
* Try to replace com.vaadin.external.google:android-json by org.json:json
* Add debugging outputs
* Improve debugging outputs
* Improve debugging outputs
* Use Jackson instead of JsonBuilder
* Use Jackson instead of JsonBuilder 2nd part
* Use Spring json dependency
* Use eclipselink 2.7.11
* Fix RootControllerDocumentationTest
* Improve helper methods of AbstractDDiApiIntegrationTest
* Upgrade SpringBoot and SpringCloud versions
* Improve deprecation notice for 0.3.0M8
* Fix BaseAmqpServiceTest
* Fix SpecificationsBuilderTest
* Removed deprecated code
* Define maven-enforcer-plugin version
* Remove com.google.code.findbugs.jsr305
Signed-off-by: Florian Ruschbaschan <florian.ruschbaschan@bosch.io >
* Update circleci image to openjdk:openjdk:11.0.13-jdk-buster
Signed-off-by: Florian Ruschbaschan <florian.ruschbaschan@bosch.io >
* Fix javadoc generation and license check
Signed-off-by: Florian Ruschbaschan <florian.ruschbaschan@bosch.io >
* Fix review findings
Signed-off-by: Florian Ruschbaschan <florian.ruschbaschan@bosch.io >
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
Signed-off-by: Florian Ruschbaschan <florian.ruschbaschan@bosch.io >
Co-authored-by: Dominic Schabel <dominic.schabel@bosch.io >
Co-authored-by: Peter Vigier <Peter.Vigier@bosch.io >
Co-authored-by: Markus Block <markus.block@bosch-si.com >
2022-09-19 10:33:31 +02:00
Natalia Kislicyn
69e6488004
DDI API: /controller/v1/{controllerid}/installedBase/{actionId} ( #1220 )
...
* installedBase DDI: initial impl + rest docs
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* refactor installedBase implementation
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* ddi installed base tests
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* restructure root controller rest docs
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* fix some java docs and formatting
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* don't add action history message when calling /installedBase
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* fix test after removing action history message
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* fix review comments
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
* fix review comments
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io >
2022-01-24 18:13:03 +01:00
Bondar Bogdan
146735012a
Artifact Encryption plug point ( #1202 )
...
* added ArtifactEncryption interface, injected it into SM creation UI module, added encryption metadata key generation upon SM creation, used encryptor during file upload
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* add default artifact encryption implementation based on gcm aes algorithm
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* changed ArtifactEncryptor interface to manage encryption secrets by itself
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* cleaned up stale code, fixed sonar
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* fixed software module encryption within transaction
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* added artifact encryption secrets store
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* extended ArtifactEncryption interface to allow decryption, secrets store provides removeSecret, added missing javadocs
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* intriduced DbArtifact interface, use EncryptionAwareDbArtifact for artifact decryption during download
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* introduced ArtifactEncryptionService to minimize duplications and unneccessary dependency injections
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* declared ArtifactEncryptionService as a bean
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* added persistant encryption flag to software module
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* further adptations for encryption flag persistence
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* added ArtifactEncryptionException, fixed encryption check in UI
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* added encryption error handling
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* added encrypted flag to DDI/DMF, adapted exception handling
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* adapted rest docs
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* Add test to verify artifact encryption is not given by default
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
* Add isEncrypted() to toString() of JpaSoftwareModule, fix typos
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
* Fix sql migration scripts
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
* Calculate encrypted artifact size by subtract encryption size overhead
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
* publish upload failed without waiting for interuption during UI file upload
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
* upgraded cron utils to 9.1.6
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io >
Co-authored-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
2021-11-18 09:07:05 +01:00
Florian Ruschbaschan
bacd72f40c
Set DdiActionFeedback ID deprecated ( #1091 )
...
* Deprecate DdiActionFeedback ID
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
* Add deprecation to FEEDBACK_ACTION_ID in docu
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
2021-06-11 13:56:23 +02:00
Dominic Schabel
81defa10a6
Migration to JUnit5 as default test runtime ( #1082 )
...
* Migrate tests to JUnit5
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* REST docs tests migrated to JUnit5
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* Migrated security and UI tests to JUnit5
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* Migrated management tests to JUnit5
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* Reflecting changes from JUnit5 migration
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* Fix RabbitMQ test detection
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* Drop support for JUnit4
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
2021-03-15 13:40:40 +01:00
Dominic Schabel
9c5360e59d
JUnit5 support ( #1063 )
...
* First preparation for JUnit5
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
* Exclusion of JUnit5 removed
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
2021-02-12 08:22:26 +01:00
Ammar Bikic
165f6e0435
Change to proper versioning
...
Signed-off-by: Ammar Bikic <ammar.bikic@bosch.io >
2020-11-03 09:59:21 +01:00
Ammar Bikic
28b65a290d
Update Spring Boot to 2.3.2
...
-Update Spring Cloud to Hoxton.SR7
-Replace ResourceSupport by RepresentationModel (Spring Hateoas 1.0)
-Replace ControllerLinkBuilder by WebMvcLinkBuilder (Spring Hateoas 1.0)
-Move getId() from Identifiable to BaseEntity (Spring Hateoas 1.0)
-Remove hamcrest.Factory
-Use static Sort.by reference
-Place http security anyRequest().authenticated()
-Replace MockMvcRequestBuilders.fileUpload by MockMvcRequestBuilders.multipart
-Deprecate MEDIA_TYPE_CBOR_UTF8
-Replace MEDIA_TYPE_CBOR_UTF8 by MEDIA_TYPE_CBOR in tests
-Replace HAL_JSON_UTF8 by HAL_JSON in tests
-Replace APPLICATION_JSON_UTF8 by APPLICATION_JSON in tests
-Use org.mockito.junit.MockitoJUnitRunner
-Remove overridden dependency versions
-Removing not needed comments in pom.xml
-Downgrade flyway-core to be MySQL 5.6 compatible
-Add maven-site-plugin since it was removed with spring-boot 2.3
-Set servlet encoding properties
-Introducing Test that verifies the charset inside the content-type of a response
-Add @DirtiesContext to CorsTest and ContentTypeTest
-Add content-type mockmvc test with adapted mockmvc config
-Move encoding.force property to test class
-Switch expected and actual parameter values in content-type test
-Delete deprecated content-type test with TestRestTemplate
-Exclude JUnit5 from spring-boot-starter-test
-Upgrade allure-junit4 to 2.13.5
-Add aspectjweaver 1.9.6 to surefire test execution
-Add flyway-core version to property
-Use getRequiredLink() within MgmtBaseEntity.getId()
Signed-off-by: Ammar Bikic <ammar.bikic@bosch.io >
2020-10-02 18:11:18 +02:00
Alexander Dobler
fe8569593e
Fix remove unused status of data config ( #988 )
...
* Removed unused status from data config endpoint
* Removed unused paramter from test
* Formating fixes
* Fixed comments after review
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch.io >
2020-08-26 09:59:44 +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
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
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
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
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
Kai Zimmermann
ac931ec8fa
Master now on 0.3
2018-06-11 15:57:15 +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