# Test config

%test.quarkus.log.level=${LOG_LEVEL:WARN}
%test.quarkus.log.category."io.apicurio".level=${REGISTRY_LOG_LEVEL:INFO}
%test.quarkus.log.console.enable=true
%test.quarkus.http.test-port=0

# Metrics
%test.registry.metrics.ResponseTimeoutReadinessCheck.errorThreshold=10000
%test.registry.metrics.ResponseErrorLivenessCheck.errorThreshold=10000
%test.registry.metrics.ResponseErrorLivenessCheck.disableLogging=true
%test.registry.metrics.PersistenceTimeoutReadinessCheck.errorThreshold=10000
%test.registry.metrics.PersistenceExceptionLivenessCheck.errorThreshold=10000
%test.registry.metrics.PersistenceExceptionLivenessCheck.disableLogging=true

%test.quarkus.micrometer.enabled=true
%test.quarkus.micrometer.binder.http-server.enabled=false
%test.quarkus.micrometer.binder.http-client.enabled=false
%test.quarkus.micrometer.export.prometheus.enabled=true
%test.quarkus.datasource.metrics.enabled=true
%test.quarkus.datasource.jdbc.enable-metrics=true

# The ignored error list
%test.registry.liveness.errors.ignored=${LIVENESS_ERRORS_IGNORED:}

# UI Config
%test.registry.ui.config.uiContextPath=${REGISTRY_UI_CONFIG_UI_CONTEXT_PATH:/ui/}
%test.registry.ui.config.apiUrl=${REGISTRY_UI_CONFIG_APIURL:_}

# UI Features
%test.registry.ui.features.readOnly=${REGISTRY_UI_FEATURES_READONLY:false}

%test.registry.events.kafka.config.bootstrap.servers=${bootstrap.servers:localhost:9092}
%test.registry.events.kafka.config.enable.idempotence=true
%test.registry.events.kafka.config.retries=3
%test.registry.events.kafka.config.acks=all

%test.registry.logconfigjob.every=1s
%test.registry.logconfigjob.delayed=1s
%test.registry.enable.multitenancy=false
%test.registry.multitenancy.reaper.every=3s
%test.app.multitenancy.reaper.every=${registry.multitenancy.reaper.every}


# Storage
%test.quarkus.datasource.db-kind=h2
%test.quarkus.datasource.jdbc.url=jdbc:h2:mem:registry_db
#%test.quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost:9123/mem:registry;DB_CLOSE_DELAY=-1;IFEXISTS=FALSE;
%test.quarkus.datasource.jdbc.initial-size=20
%test.quarkus.datasource.jdbc.min-size=10
%test.quarkus.datasource.jdbc.max-size=20
%test.registry.sql.init=true

# Artifact version deletion
%test.registry.rest.artifact.deletion.enabled=true