use of org.bf2.admin.kafka.systemtest.utils.TokenUtils in project kafka-admin-api by bf2fc6cc711aee1a0c2a.
the class AccessControlListIT method setup.
@BeforeEach
void setup() {
validResourceOperations = config.getValue(KafkaAdminConfigRetriever.ACL_RESOURCE_OPERATIONS, String.class);
tokenUtils = new TokenUtils(config);
}
use of org.bf2.admin.kafka.systemtest.utils.TokenUtils in project kafka-admin-api by bf2fc6cc711aee1a0c2a.
the class ConsumerGroupsOAuthTestIT method initialize.
@BeforeAll
static void initialize() {
tokenUtils = new TokenUtils(ConfigProvider.getConfig());
JsonObject token = tokenUtils.getTokenObject(UserType.OWNER.getUsername());
// Fetch one token before the tests begin to minimize wait time in expired token test
initialToken = token.getString("access_token");
initialTokenExpiresAt = System.currentTimeMillis() + (token.getInt("expires_in") * 1000);
}
use of org.bf2.admin.kafka.systemtest.utils.TokenUtils 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()));
}
use of org.bf2.admin.kafka.systemtest.utils.TokenUtils in project kafka-admin-api by bf2fc6cc711aee1a0c2a.
the class RestOAuthTestIT method initialize.
@BeforeAll
static void initialize() {
tokenUtils = new TokenUtils(ConfigProvider.getConfig());
JsonObject token = tokenUtils.getTokenObject(UserType.OWNER.getUsername());
// Fetch one token before the tests begin to minimize wait time in expired token test
initialToken = token.getString("access_token");
initialTokenExpiresAt = System.currentTimeMillis() + (token.getInt("expires_in") * 1000);
}
Aggregations