-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bfd2ad
commit 8b67ba7
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/test/java/com/michelin/ns4kafka/integration/ConfigIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.michelin.ns4kafka.integration; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
import com.michelin.ns4kafka.integration.container.KafkaIntegrationTest; | ||
import com.michelin.ns4kafka.property.ManagedClusterProperties; | ||
import io.micronaut.test.extensions.junit5.annotation.MicronautTest; | ||
import jakarta.inject.Inject; | ||
import java.util.List; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@MicronautTest | ||
public class ConfigIntegrationTest extends KafkaIntegrationTest { | ||
|
||
@Inject | ||
List<ManagedClusterProperties> managedClusterProperties; | ||
|
||
@Test | ||
void shouldHaveDefaultTimeouts() { | ||
assertNotNull(managedClusterProperties.getFirst()); | ||
|
||
assertEquals(15000, managedClusterProperties.getFirst().getTimeout().getAcl().getCreate()); | ||
assertEquals(15001, managedClusterProperties.getFirst().getTimeout().getAcl().getDelete()); | ||
assertEquals(15002, managedClusterProperties.getFirst().getTimeout().getAcl().getDescribe()); | ||
|
||
assertEquals(15003, managedClusterProperties.getFirst().getTimeout().getTopic().getAlterConfigs()); | ||
assertEquals(15004, managedClusterProperties.getFirst().getTimeout().getTopic().getCreate()); | ||
assertEquals(15005, managedClusterProperties.getFirst().getTimeout().getTopic().getDescribeConfigs()); | ||
assertEquals(15006, managedClusterProperties.getFirst().getTimeout().getTopic().getDelete()); | ||
assertEquals(15007, managedClusterProperties.getFirst().getTimeout().getTopic().getList()); | ||
|
||
assertEquals(15008, managedClusterProperties.getFirst().getTimeout().getUser().getAlterQuotas()); | ||
assertEquals(15009, managedClusterProperties.getFirst().getTimeout().getUser().getAlterScramCredentials()); | ||
assertEquals(15010, managedClusterProperties.getFirst().getTimeout().getUser().getDescribeQuotas()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters