Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal committed Nov 27, 2024
1 parent 26c14a3 commit 5a87773
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void cleanArtifacts() throws Exception {

@Test
public void testConfiguration() throws Exception {
String groupId = TestUtils.generateGroupId();
String groupId = "testConfiguration";
String topic = TestUtils.generateArtifactId();
String recordName = "myrecord4";
AvroGenericRecordSchemaFactory schemaFactory = new AvroGenericRecordSchemaFactory(groupId, recordName, List.of("bar"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,24 +294,23 @@ void testArtifactNotFound() throws Exception {

@Test
void testEvolveAvroApicurio() throws Exception {
evolveSchemaTest(false);
evolveSchemaTest(false, "testEvolveAvroApicurio");
}

@Test
@Tag(ACCEPTANCE)
void testEvolveAvroApicurioReusingClient() throws Exception {
evolveSchemaTest(true);
evolveSchemaTest(true, "testEvolveAvroApicurioReusingClient");
}

void evolveSchemaTest(boolean reuseClients) throws Exception {
void evolveSchemaTest(boolean reuseClients, String recordNamespace) throws Exception {
//using TopicRecordIdStrategy

Class<?> strategy = TopicRecordIdStrategy.class;

String topicName = TestUtils.generateTopic();
kafkaCluster.createTopic(topicName, 1, 1);

String recordNamespace = TestUtils.generateGroupId();
String recordName = TestUtils.generateSubject();
String schemaKey = "key1";
AvroGenericRecordSchemaFactory avroSchema = new AvroGenericRecordSchemaFactory(recordNamespace, recordName, List.of(schemaKey));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void createAndUpdateArtifact() throws Exception {
@Test
void createAndDeleteMultipleArtifacts() throws Exception {
LOGGER.info("Creating some artifacts...");
String groupId = TestUtils.generateGroupId();
String groupId = "createAndDeleteMultipleArtifacts";

List<ArtifactMetaData> artifacts = IntStream.range(0, 10)
.mapToObj(i -> {
Expand Down

0 comments on commit 5a87773

Please sign in to comment.