From 190e09a85de9cb136be1cd5b337f33638d5e3357 Mon Sep 17 00:00:00 2001 From: clun Date: Wed, 25 Oct 2023 19:03:56 +0200 Subject: [PATCH] Adding the cdc response to reflect file --- .../META-INF/native-image/reflect-config.json | 49 ++++++++++++++++++- .../astra/cli/test/db/DbCdcCommandsTest.java | 2 +- 2 files changed, 48 insertions(+), 3 deletions(-) diff --git a/src/main/resources/META-INF/native-image/reflect-config.json b/src/main/resources/META-INF/native-image/reflect-config.json index 3717323..810582d 100644 --- a/src/main/resources/META-INF/native-image/reflect-config.json +++ b/src/main/resources/META-INF/native-image/reflect-config.json @@ -119,8 +119,53 @@ "allDeclaredFields":true, "methods":[{"name":"","parameterTypes":[] }] }, - - + { + "name":"com.dtsx.astra.sdk.streaming.domain.CdcDefinition", + "allDeclaredFields":true, + "methods":[ + { "name":"","parameterTypes":[] }, + { "name":"getOrgId","parameterTypes":[] }, + { "name":"setOrgId","parameterTypes":["java.lang.String"] }, + { "name":"getConnectorName","parameterTypes":[] }, + { "name":"setConnectorName","parameterTypes":["java.lang.String"] }, + { "name":"getConnectorStatus","parameterTypes":[] }, + { "name":"setConnectorStatus","parameterTypes":["java.lang.String"] }, + { "name":"getCdcStatus","parameterTypes":[] }, + { "name":"setCdcStatus","parameterTypes":["java.lang.String"] }, + { "name":"getCodStatus","parameterTypes":[] }, + { "name":"setCodStatus","parameterTypes":["java.lang.String"] }, + { "name":"getCreatedAt","parameterTypes":[] }, + { "name":"setCreatedAt","parameterTypes":["java.util.Date"] }, + { "name":"getUpdatedAt","parameterTypes":[] }, + { "name":"setUpdatedAt","parameterTypes":["java.util.Date"] }, + { "name":"getEventTopic","parameterTypes":[] }, + { "name":"setEventTopic","parameterTypes":["java.lang.String"] }, + { "name":"getDataTopic","parameterTypes":[] }, + { "name":"setDataTopic","parameterTypes":["java.lang.String"] }, + { "name":"getInstances","parameterTypes":[] }, + { "name":"setInstances","parameterTypes":["int"] }, + { "name":"getCpu","parameterTypes":[] }, + { "name":"setCpu","parameterTypes":["int"] }, + { "name":"getMemory","parameterTypes":[] }, + { "name":"setMemory","parameterTypes":["int"] }, + { "name":"getClusterName","parameterTypes":[] }, + { "name":"setClusterName","parameterTypes":["java.lang.String"] }, + { "name":"getTenant","parameterTypes":[] }, + { "name":"setTenant","parameterTypes":["java.lang.String"] }, + { "name":"getNamespace", "parameterTypes":[] }, + { "name":"setNamespace", "parameterTypes":["java.lang.String"] }, + { "name":"getConfigType", "parameterTypes":[] }, + { "name":"setConfigType", "parameterTypes":["java.lang.String"] }, + { "name":"getDatabaseId", "parameterTypes":[] }, + { "name":"setDatabaseId", "parameterTypes":["java.lang.String"] }, + { "name":"getDatabaseName", "parameterTypes":[] }, + { "name":"setDatabaseName", "parameterTypes":["java.lang.String"] }, + { "name":"getKeyspace", "parameterTypes":[] }, + { "name":"setKeyspace", "parameterTypes":["java.lang.String"] }, + { "name":"getDatabaseTable", "parameterTypes":[] }, + { "name":"setDatabaseTable", "parameterTypes":["java.lang.String"] } + ] + }, { "name":"com.dtsx.astra.cli.db.cqlsh.DbCqlShellCmd", diff --git a/src/test/java/com/dtsx/astra/cli/test/db/DbCdcCommandsTest.java b/src/test/java/com/dtsx/astra/cli/test/db/DbCdcCommandsTest.java index 157fcbf..cb5372f 100644 --- a/src/test/java/com/dtsx/astra/cli/test/db/DbCdcCommandsTest.java +++ b/src/test/java/com/dtsx/astra/cli/test/db/DbCdcCommandsTest.java @@ -107,7 +107,7 @@ void shouldDeleteCdcByDefinition() { @AfterAll static void cleanUp() { - assertSuccessCli("streaming delete %s".formatted(RANDOM_TENANT)); + //assertSuccessCli("streaming delete %s".formatted(RANDOM_TENANT)); } }