Kai Zimmermann
fd6de4496d
Improved simulator download case a bit. Added missing test asserts for
...
target token in DMF.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com >
2016-05-18 09:05:01 +02:00
Michael Hirsch
68a87490c6
Merge pull request #170 from bsinno/fix_remove_special_coap_auth_token
...
remove special coap-auth-token filter for coap-downloads
2016-05-11 14:09:18 +02:00
Kai Zimmermann
c2413ebd61
Added tests for md5 has gen in download messages.
...
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com >
2016-05-09 11:23:42 +02:00
Kai Zimmermann
16350c5e15
Made URL generator configurable.
...
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com >
2016-05-03 18:34:16 +02:00
Kai Zimmermann
7c4351faa5
Fixed wrong handling of multi line message status.
...
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com >
2016-05-03 15:44:46 +02:00
Kai Zimmermann
85263e475d
use correct term for token. Similar to mgmt API.
...
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com >
2016-05-03 09:48:55 +02:00
Kai Zimmermann
dbc70ae374
Added targetToken to DMF update message.
...
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com >
2016-05-03 09:25:07 +02:00
Michael Hirsch
9be6aa6e18
remove special coap-auth-token filter for coap-downloads
...
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com >
2016-04-28 14:12:07 +02:00
SirWayne
9dd51e7105
Use java 8 duration to calculate ttl
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-04-27 15:37:54 +02:00
SirWayne
702decee62
Rename deadletter queue and add ttl
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-04-19 10:42:29 +02:00
SirWayne
30ba98ff8e
TTL
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-04-13 17:27:49 +02:00
SirWayne
ee0fc26678
TTL
...
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com >
2016-04-13 14:10:28 +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