Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tags when missing on Schema Registry #345

Merged
merged 15 commits into from
Dec 15, 2023
Prev Previous commit
Next Next commit
better managment of tags
adriencalime committed Dec 14, 2023

Verified

This commit was signed with the committer’s verified signature.
commit 3b3c7ecd6e53febed620c7907e8f8001018b3e2c
Original file line number Diff line number Diff line change
@@ -106,8 +106,11 @@ void shouldCreateTags() {
properties.put(CLUSTER_ID, CLUSTER_ID_TEST);

when(schemaRegistryClient.associateTags(anyString(), anyList()))
.thenReturn(Mono.empty())
.thenReturn(Mono.error(new Exception("error")));
.thenReturn(Mono.empty())
.thenReturn(Mono.error(new Exception("error")));
adriencalime marked this conversation as resolved.
Show resolved Hide resolved
when(schemaRegistryClient.createTags(anyList(), anyString()))
.thenReturn(Mono.just(List.of()))
.thenReturn(Mono.error(new Exception("error")));
adriencalime marked this conversation as resolved.
Show resolved Hide resolved
when(managedClusterProperties.getName()).thenReturn(LOCAL_CLUSTER);
when(managedClusterProperties.getConfig()).thenReturn(properties);