Fix nop cache using (especially for testing) (#2841)
+ fix flaky tests that requires no caches Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -23,9 +23,9 @@ hawkbit.controller.maintenanceWindowPollCount=3
|
||||
|
||||
# Cache config
|
||||
hawkbit.cache.ttl=10s
|
||||
hawkbit.cache.spec=expireAfterAccess=${hawkbit.cache.ttl}
|
||||
hawkbit.cache.RolloutStatus.spec=maximumSize=50000,expireAfterAccess=${hawkbit.cache.ttl}
|
||||
hawkbit.cache.RolloutGroupStatus.spec=maximumSize=50000,expireAfterAccess=${hawkbit.cache.ttl}
|
||||
hawkbit.cache.spec=expireAfterWrite=${hawkbit.cache.ttl}
|
||||
hawkbit.cache.RolloutStatus.spec=maximumSize=50000,expireAfterWrite=${hawkbit.cache.ttl}
|
||||
hawkbit.cache.RolloutGroupStatus.spec=maximumSize=50000,expireAfterWrite=${hawkbit.cache.ttl}
|
||||
# Cache config - END
|
||||
|
||||
# Attention: if you want to use a maximumPollingTime greater 23:59:59 you have to update the DurationField in the configuration window
|
||||
|
||||
@@ -89,9 +89,6 @@ class TenantConfigurationManagementTest extends AbstractJpaIntegrationTest imple
|
||||
tenantConfigurationManagement.addOrUpdateConfiguration(
|
||||
TenantConfigurationKey.AUTHENTICATION_GATEWAY_SECURITY_TOKEN_KEY, newConfigurationValue2);
|
||||
|
||||
// sometimes it reads old value, maybe if read too early. wait to settle up?
|
||||
waitMillis(100);
|
||||
|
||||
// verify that new configuration value is used
|
||||
final TenantConfigurationValue<String> updatedConfigurationValue2 = tenantConfigurationManagement
|
||||
.getConfigurationValue(TenantConfigurationKey.AUTHENTICATION_GATEWAY_SECURITY_TOKEN_KEY, String.class);
|
||||
|
||||
Reference in New Issue
Block a user