File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
core/src/test/scala/integration/kafka/api Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 17
17
package kafka .api
18
18
19
19
import kafka .api .ConsumerRebootstrapTest ._
20
- import kafka .server .QuorumTestHarness .getTestQuorumAndGroupProtocolParametersClassicGroupProtocolOnly
20
+ import kafka .server .QuorumTestHarness .getTestQuorumAndGroupProtocolParametersAll
21
21
import kafka .utils .{TestInfoUtils , TestUtils }
22
22
import org .apache .kafka .clients .CommonClientConfigs
23
23
import org .apache .kafka .clients .producer .{KafkaProducer , ProducerRecord }
@@ -135,12 +135,12 @@ object ConsumerRebootstrapTest {
135
135
136
136
final val RebootstrapTestName = s " ${TestInfoUtils .TestWithParameterizedQuorumAndGroupProtocolNames }.useRebootstrapTriggerMs={2} "
137
137
def rebootstrapTestParams : stream.Stream [Arguments ] = {
138
- assertEquals( 1 , getTestQuorumAndGroupProtocolParametersClassicGroupProtocolOnly.count())
139
- val args = getTestQuorumAndGroupProtocolParametersClassicGroupProtocolOnly
140
- .findFirst().get.get
141
- stream. Stream . of(
142
- Arguments .of((args :+ true ):_* ),
143
- Arguments .of((args :+ false ) :_* )
144
- )
138
+ getTestQuorumAndGroupProtocolParametersAll
139
+ .flatMap { baseArgs =>
140
+ stream. Stream .of(
141
+ Arguments . of((baseArgs.get :+ true ) :_* ),
142
+ Arguments .of((baseArgs.get :+ false ):_* )
143
+ )
144
+ }
145
145
}
146
146
}
Original file line number Diff line number Diff line change @@ -207,10 +207,10 @@ class PlaintextAdminIntegrationTest extends BaseAdminIntegrationTest {
207
207
Admin .create(config)
208
208
}
209
209
210
- @ ParameterizedTest (name = TestInfoUtils .TestWithParameterizedQuorumAndGroupProtocolNames )
211
- @ MethodSource (Array (" getTestQuorumAndGroupProtocolParametersAll" ))
212
210
@ Timeout (10 )
213
- def testDescribeUserScramCredentialsTimeout (quorum : String , groupProtocol : String ): Unit = {
211
+ @ ParameterizedTest
212
+ @ ValueSource (strings = Array (" kraft" ))
213
+ def testDescribeUserScramCredentialsTimeout (quorum : String ): Unit = {
214
214
client = createInvalidAdminClient()
215
215
try {
216
216
// test describeUserScramCredentials(List<String> users, DescribeUserScramCredentialsOptions options)
You can’t perform that action at this time.
0 commit comments