Sync property naming convention (#2664)

Co-authored-by: vasilchev <vasil.ilchev@bosch.com>
This commit is contained in:
Vasil Ilchev
2025-09-10 14:55:51 +03:00
committed by GitHub
parent 2d45e2a76c
commit 20768a550c
8 changed files with 10 additions and 10 deletions

View File

@@ -25,4 +25,4 @@ spring.servlet.multipart.max-file-size=5MB
hawkbit.server.security.dos.maxStatusEntriesPerAction=100
hawkbit.server.security.dos.maxAttributeEntriesPerTarget=10
# Quota - END
hawkbit.events.remote-enabled=false
hawkbit.events.remote.enabled=false

View File

@@ -74,7 +74,7 @@ import org.springframework.test.context.TestPropertySource;
@ActiveProfiles({ "test" })
@SpringBootTest(classes = { JpaRepositoryConfiguration.class }, webEnvironment = SpringBootTest.WebEnvironment.NONE)
@TestPropertySource(properties = {
"hawkbit.events.remote-enabled=false",
"hawkbit.events.remote.enabled=false",
"spring.main.allow-bean-definition-overriding=true" })
class AmqpMessageDispatcherServiceTest extends AbstractIntegrationTest {

View File

@@ -38,7 +38,7 @@ import org.springframework.test.context.TestPropertySource;
// Dirty context is necessary to create a new vhost and recreate all necessary beans after every test class.
@DirtiesContext(classMode = ClassMode.AFTER_CLASS)
@TestPropertySource(properties = {
"hawkbit.events.remote-enabled=false",
"hawkbit.events.remote.enabled=false",
"spring.main.allow-bean-definition-overriding=true" })
@SuppressWarnings("java:S6813") // constructor injects are not possible for test classes
public abstract class AbstractAmqpIntegrationTest extends AbstractIntegrationTest {

View File

@@ -11,4 +11,4 @@
# Logging START - activate to see request/response details
#logging.level.org.eclipse.hawkbit.rest.util.MockMvcResultPrinter=DEBUG
# Logging END
hawkbit.events.remote-enabled=false
hawkbit.events.remote.enabled=false

View File

@@ -49,8 +49,8 @@ spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.amqp.RabbitA
## Uncomment bellow to Enable communication between services (disabled by default) - no cluster support.
# To enable it, enable RabbitMQ (see above)
# and set below 'hawkbit.events.remote-enabled=true'
hawkbit.events.remote-enabled=false
# and set below 'hawkbit.events.remote.enabled=true'
hawkbit.events.remote.enabled=false
## Disable DMF (by default) - no DMF support. To enable it, enable RabbitMQ (see above) and comment the line
## (hawkbit.dmf.rabbitmq.enabled=false) set hawkbit.dmf.rabbitmq.enabled=true

View File

@@ -44,7 +44,7 @@ import org.springframework.context.ApplicationEventPublisher;
@Slf4j
public final class EventPublisherHolder {
@Value("${hawkbit.events.remote-enabled:true}")
@Value("${hawkbit.events.remote.enabled:true}")
private boolean remoteEventsEnabled;
@Value("${hawkbit.events.remote.destination:fanoutEventChannel}")
private String fanoutEventChannel;
@@ -65,7 +65,7 @@ public final class EventPublisherHolder {
@PostConstruct
private void validateRemoteEventConfig() {
if (remoteEventsEnabled && streamBridge == null) {
throw new IllegalStateException("'hawkbit.events.remote-enabled' is true but streamBridge is not configured. Check if 'spring-cloud-starter-stream-rabbit' dependency is included.");
throw new IllegalStateException("'hawkbit.events.remote.enabled' is true but streamBridge is not configured. Check if 'spring-cloud-starter-stream-rabbit' dependency is included.");
}
}

View File

@@ -64,4 +64,4 @@ hawkbit.repository.cluster.lock.refreshOnRemainPercent=10
## reduce scheduler tic period to speed up tests
hawkbit.repository.cluster.lock.ticPeriodMS=10
hawkbit.events.remote-enabled=false
hawkbit.events.remote.enabled=false

View File

@@ -80,4 +80,4 @@ hawkbit.server.security.dos.maxActionsPerTarget=20
# Quota - END
# Properties that are managed by autoconfigure module at runtime and not available during test - END
hawkbit.events.remote-enabled=false
hawkbit.events.remote.enabled=false