Search in sources :

Example 1 with ConsumerUtils

use of org.bf2.admin.kafka.systemtest.utils.ConsumerUtils in project kafka-admin-api by bf2fc6cc711aee1a0c2a.

the class PartitionsOffsetOauthIT method setup.

@BeforeEach
void setup() {
    tokenUtils = new TokenUtils(config);
    consumerUtils = new ConsumerUtils(config, tokenUtils.getToken(UserType.OWNER.getUsername()));
}
Also used : ConsumerUtils(org.bf2.admin.kafka.systemtest.utils.ConsumerUtils) TokenUtils(org.bf2.admin.kafka.systemtest.utils.TokenUtils) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with ConsumerUtils

use of org.bf2.admin.kafka.systemtest.utils.ConsumerUtils in project kafka-admin-api by bf2fc6cc711aee1a0c2a.

the class ConsumerGroupsOAuthTestIT method setup.

@BeforeEach
void setup() {
    String token = tokenUtils.getToken(UserType.OWNER.getUsername());
    topicUtils = new TopicUtils(config, token);
    topicUtils.deleteAllTopics();
    groupUtils = new ConsumerUtils(config, token);
    batchId = UUID.randomUUID().toString();
}
Also used : ConsumerUtils(org.bf2.admin.kafka.systemtest.utils.ConsumerUtils) TopicUtils(org.bf2.admin.kafka.systemtest.utils.TopicUtils) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ConsumerUtils (org.bf2.admin.kafka.systemtest.utils.ConsumerUtils)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 TokenUtils (org.bf2.admin.kafka.systemtest.utils.TokenUtils)1 TopicUtils (org.bf2.admin.kafka.systemtest.utils.TopicUtils)1