From f9999359c898143d0fb9a4a62063cbc51a40e25e Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Fri, 5 Apr 2024 11:38:01 +0200 Subject: Model distribution fails with model-loader 1.13.5 - move sdc-distribution-client instantiation out of the ModelController into a separate class - add integration test with embedded kafka (not fully implemented) Issue-ID: AAI-3818 Change-Id: I0b5dd118d9145372ddf123319b58829d0ef9275a Signed-off-by: Fiete Ostkamp --- src/test/resources/application.properties | 10 ++++++++++ src/test/resources/model-loader.properties | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/test/resources/application.properties (limited to 'src/test/resources') diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties new file mode 100644 index 0000000..96816ce --- /dev/null +++ b/src/test/resources/application.properties @@ -0,0 +1,10 @@ +CONFIG_HOME=src/test/resources +spring.kafka.consumer.auto-offset-reset=earliest +spring.kafka.consumer.group-id=aai +spring.kafka.consumer.client-id=aai-model-loader + +test.topic=SDC-DISTR-NOTIF-TOPIC + +spring.sleuth.enabled=false + +ml.distribution.connection.enabled=false # avoid having the distribution client running in the background (requires active kafka) \ No newline at end of file diff --git a/src/test/resources/model-loader.properties b/src/test/resources/model-loader.properties index 51a38c5..4c24679 100644 --- a/src/test/resources/model-loader.properties +++ b/src/test/resources/model-loader.properties @@ -7,8 +7,8 @@ ml.distribution.ENVIRONMENT_NAME=env ml.distribution.KEYSTORE_PASSWORD= ml.distribution.KEYSTORE_FILE= ml.distribution.PASSWORD=Aa123456 -ml.distribution.POLLING_INTERVAL=30 -ml.distribution.POLLING_TIMEOUT=20 +ml.distribution.POLLING_INTERVAL=5 +ml.distribution.POLLING_TIMEOUT=3 ml.distribution.USER=ci ml.distribution.ARTIFACT_TYPES=MODEL_QUERY_SPEC,TOSCA_CSAR -- cgit