SirWayne
e45306eafb
Fix Default Port for PopertyHandler
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-04-21 16:43:38 +02:00
Michael Hirsch
d903be57b7
use correct mock parameters to ensure test
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-12 15:50:48 +02:00
Michael Hirsch
30e8230b8a
correct usage of logging, missing parameters
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-12 15:48:19 +02:00
Michael Hirsch
cc8c674341
correct usage of logging, missing parameters
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-12 15:47:21 +02:00
Michael Hirsch
369d9da25a
source code improvements
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-12 14:35:59 +02:00
Michael Hirsch
b11a0bac5d
reduce method cyclomatic complexity by extracting security check into
...
own method
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-12 12:18:59 +02:00
Michael Hirsch
0b5286299c
fix unit tests after changing the lookup way
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-12 10:03:19 +02:00
Michael Hirsch
c4fd082098
fix the lookup of artifacts with the same lookup key, e.g. SHA1 hash if
...
multiple artifacts with key exists for different software modules
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-12 09:39:07 +02:00
Michael Hirsch
4884f18deb
remove local variable which is never read only returned
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-05 19:06:14 +02:00
Michael Hirsch
df1d4c5a20
Merge branch 'master' into
...
Download_server_supports_download_through_HTTP_and_HTTPs
Conflicts:
hawkbit-core/src/main/java/org/eclipse/hawkbit/tenancy/configuration/TenantConfigurationKey.java
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-05 11:58:27 +02:00
Kai Zimmermann
13c38c1134
Merge pull request #112 from bsinno/fix-log-severity
...
Reduced log severity of invalid incoming messages to warning.
2016-03-31 17:30:33 +02:00
Kai Zimmermann
d84a42e064
Merge pull request #115 from bsinno/BUG/Check_Message_Body
...
Check if the message body is empty
2016-03-31 17:30:20 +02:00
SirWayne
3bbbadd165
Check if the message body is empty
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-31 15:53:52 +02:00
Kai Zimmermann
b839fd4925
Log complete message in error case
2016-03-31 14:18:17 +02:00
Jonathan Philip Knoblauch
b03fa5eec8
Verify all download URLs generated by SP-server (e.g. DDI and DMF API)
...
- the get artifact request for the DDI API know contains https links
- additional there where http links added
- section for creating download urls based on patters was moved to hawkbit-core
- tests where adapted and extended
Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com >
2016-03-31 13:17:08 +02:00
Kai Zimmermann
413bb9d814
Reduced log severity of invalid incoming messages to warning.
...
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com >
2016-03-30 17:10:47 +02:00
SirWayne
26466c7d6a
Before sending a message check if the uri is a amqp uri.
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-30 13:05:11 +02:00
Michael Hirsch
1cb7519ace
add security and filters for anonymous download via http and amqp
...
requests
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-03-23 16:17:53 +01:00
Michael Hirsch
cdac7185c4
fix typo of class TenantSecurityToken and handle authentication message
...
based on FileResource not only on SHA1 hash
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-03-23 10:23:35 +01:00
Kai Zimmermann
7473c1b226
Merge pull request #56 from bsinno/feature_MECS-86_tenant_specific_polling_configuration
...
Feature: tenant specific polling configuration
Note: @fabnon is member of @michahirsch and my organisation
2016-03-14 16:37:46 +01:00
SirWayne
0b813a0cc8
Create rabbitTemplate bean with jackson message converter
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-14 14:30:14 +01:00
SirWayne
a4cc3df092
Fix test properties
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-09 15:36:59 +01:00
SirWayne
ed97031faf
Merge branch 'master' into
...
feature_MECS-86_tenant_specific_polling_configuration
Conflicts:
hawkbit-autoconfigure/src/main/java/org/eclipse/hawkbit/autoconfigure/security/SecurityManagedConfiguration.java
hawkbit-core/src/main/java/org/eclipse/hawkbit/tenancy/configuration/TenantConfigurationKey.java
hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpControllerAuthentfication.java
hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpControllerAuthentficationTest.java
hawkbit-repository/src/test/resources/application-test.properties
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-09 13:29:40 +01:00
SirWayne
6c74c1186d
Create unit test for the json amqp message conversion
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-08 12:23:31 +01:00
SirWayne
f4791743ce
Add test case description
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-07 12:18:18 +01:00
SirWayne
52be35c7ff
Rename deadletter queue and exchange
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-07 10:02:00 +01:00
Michael Hirsch
da9124cecd
use correct method to send the message to rabbitMQ, exchange was not
...
used from parameter
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-03-05 17:43:39 +01:00
Michael Hirsch
ff156234fa
Annotation component must be removed because bean will otherwise
...
registered twice because of EnableAutoConfiguration in the
AmqpConfiguration
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-03-05 14:11:37 +01:00
Kai Zimmermann
dcea53f4c8
Merge remote-tracking branch 'eclipse/master' into harmonize-test-documentation
2016-03-04 18:14:26 +01:00
Kai Zimmermann
a227ede0e0
Completed merge
2016-03-04 12:21:38 +01:00
Kai Zimmermann
25832e7e16
Merge remote-tracking branch 'eclipse/master' into cleanup-properties
...
# Conflicts:
#
hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpProperties.j
ava
2016-03-04 12:11:35 +01:00
Kai Zimmermann
71653470dc
Merge remote-tracking branch 'eclipse/master' into harmonize-test-documentation
2016-03-03 20:59:15 +01:00
Michael Hirsch
74731d39ce
fix retrieving the wrong message converter for converting messages over
...
amqp
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-03-03 10:57:57 +01:00
SirWayne
052d50e98d
Merge branch 'Clean_Code' into Multiple_VHost_Connection
...
Conflicts:
hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpMessageHandlerServiceTest.java
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-02 14:14:09 +01:00
Dennis Melzer
d014e81b73
Update AmqpMessageHandlerService.java
2016-03-02 12:50:00 +01:00
SirWayne
5973413cbe
Add Javadoc and remove message converter from base class
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-03-01 08:37:50 +01:00
SirWayne
c9c36ea435
Add description for asserts in test cases
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-02-29 15:34:07 +01:00
Michael Hirsch
4ca1bdf9ef
fix tests by setting the SystemSecurityContext to prevent NPE in tests
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-02-29 13:19:08 +01:00
Fabian Nonnenmacher
2be4922615
Added System Security Context as attribute to AbstractControllerAuthenticationFilter
...
This is necessary, because the tenant configuration methods are only accessable with specific permissions.
With the SystemSecurityContext methods can be executed as SystemRunner and therefor we can set permissions.
* updated the chaine of condtructors to set the context in the filter class
* added SystemRunner permission to TenantConfigurationManagement
* Autowired the system context to AMQP and HTTP controller
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com >
2016-02-29 13:18:58 +01:00
Fabian Nonnenmacher
6cef6aed1a
Moved tenant configuration functions to new management class
...
- moved fucntions to TenantConfigurationManagement, for better function capseling
- updated references
- updated references in tests, tests were succesfully
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com >
2016-02-29 13:15:40 +01:00
Fabian Nonnenmacher
07fce42469
Changed return type of SystemManagement.getConfigurationValue()
...
* changed Return type to wrapper object, adding additional meta data stored in the database
* updated all calls of this method
* updated function calls in tests
* verified correct execution of correspending tests
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com >
2016-02-29 13:15:03 +01:00
SirWayne
895a78fee8
Merge branch 'master' into Multiple_VHost_Connection
...
Conflicts:
hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpMessageHandlerServiceTest.java
hawkbit-security-core/src/test/java/org/eclipse/hawkbit/util/IpUtilTest.java
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-02-29 12:41:52 +01:00
Kai Zimmermann
e95acec956
Merge pull request #52 from bsinno/REFACTORING_CLEAN_CODE_PART_2
...
👍 merged
2016-02-26 09:50:43 +01:00
Kai Zimmermann
7692a29918
Fixed property bean setup
2016-02-25 20:36:17 +01:00
Kai Zimmermann
3eaab83014
Merge remote-tracking branch 'eclipse/master' into cleanup-properties
2016-02-25 18:01:56 +01:00
Kai Zimmermann
ab18e12b69
Completed migration to ConfigurationProperties annotation. Added boot metadata generation to build.
2016-02-25 17:59:46 +01:00
Michael Hirsch
f969d6f4c2
clean code refactorings
...
- add description to assertions in unit tests
- make inner classes static
- remove out-commented code
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-02-25 14:38:25 +01:00
SirWayne
dbf03dca12
Add the "@Override" annotation
...
Add some description to JUnit Tests
Remove unused override comments
Remove unused javadoc on private methode
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-02-25 11:37:56 +01:00
Kai Zimmermann
0b8e693cec
Migrated environment aware to property annotation mechanism, documented properties.
2016-02-25 11:36:21 +01:00
Kai Zimmermann
ecdf38b4f9
Fixed typo
2016-02-23 22:12:29 +01:00