@@ -175,7 +175,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
175
175
176
176
void PartitionSplit_oldSDK (SdkVersion sdk) {
177
177
TTopicSdkTestSetup setup = CreateSetup ();
178
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
178
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
179
179
180
180
TTopicClient client = setup.MakeClient ();
181
181
@@ -228,7 +228,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
228
228
229
229
Y_UNIT_TEST (PartitionSplit_AutoscaleAwareSDK) {
230
230
TTopicSdkTestSetup setup = CreateSetup ();
231
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
231
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
232
232
233
233
TTopicClient client = setup.MakeClient ();
234
234
@@ -273,7 +273,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
273
273
274
274
void PartitionSplit_PreferedPartition (SdkVersion sdk, bool autoscaleAwareSDK) {
275
275
TTopicSdkTestSetup setup = CreateSetup ();
276
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
276
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
277
277
278
278
TTopicClient client = setup.MakeClient ();
279
279
@@ -354,7 +354,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
354
354
355
355
void PartitionMerge_PreferedPartition (SdkVersion sdk, bool autoscaleAwareSDK) {
356
356
TTopicSdkTestSetup setup = CreateSetup ();
357
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 2 , 100 );
357
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 2 , 100 );
358
358
359
359
TTopicClient client = setup.MakeClient ();
360
360
@@ -426,7 +426,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
426
426
427
427
void PartitionSplit_ReadEmptyPartitions (SdkVersion sdk, bool autoscaleAwareSDK) {
428
428
TTopicSdkTestSetup setup = CreateSetup ();
429
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
429
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
430
430
431
431
TTopicClient client = setup.MakeClient ();
432
432
auto readSession = CreateTestReadSession ({ .Name =" Session-0" , .Setup =setup, .Sdk = sdk, .AutoPartitioningSupport = autoscaleAwareSDK });
@@ -455,7 +455,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
455
455
456
456
void PartitionSplit_ReadNotEmptyPartitions (SdkVersion sdk) {
457
457
TTopicSdkTestSetup setup = CreateSetup ();
458
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
458
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
459
459
460
460
TTopicClient client = setup.MakeClient ();
461
461
auto readSession = CreateTestReadSession ({ .Name =" Session-0" , .Setup =setup, .Sdk = sdk, .AutoCommit = false , .AutoPartitioningSupport = false });
@@ -490,7 +490,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
490
490
491
491
Y_UNIT_TEST (PartitionSplit_ReadNotEmptyPartitions_AutoscaleAwareSDK) {
492
492
TTopicSdkTestSetup setup = CreateSetup ();
493
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
493
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
494
494
495
495
TTopicClient client = setup.MakeClient ();
496
496
auto readSession = CreateTestReadSession ({ .Name =" Session-0" , .Setup =setup, .Sdk = SdkVersion::Topic, .AutoCommit = false , .AutoPartitioningSupport = true });
@@ -511,7 +511,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
511
511
512
512
void PartitionSplit_ManySession (SdkVersion sdk) {
513
513
TTopicSdkTestSetup setup = CreateSetup ();
514
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
514
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
515
515
516
516
TTopicClient client = setup.MakeClient ();
517
517
@@ -551,7 +551,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
551
551
552
552
Y_UNIT_TEST (PartitionSplit_ManySession_AutoscaleAwareSDK) {
553
553
TTopicSdkTestSetup setup = CreateSetup ();
554
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
554
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
555
555
556
556
TTopicClient client = setup.MakeClient ();
557
557
@@ -596,7 +596,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
596
596
597
597
Y_UNIT_TEST (PartitionSplit_ManySession_existed_AutoscaleAwareSDK) {
598
598
TTopicSdkTestSetup setup = CreateSetup ();
599
- setup.CreateTopicWithAutoscale (std::string{ TEST_TOPIC}, std::string{ TEST_CONSUMER} , 1 , 100 );
599
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
600
600
601
601
TTopicClient client = setup.MakeClient ();
602
602
@@ -860,8 +860,8 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
860
860
861
861
auto msg = TString (1_MB, ' a' );
862
862
863
- auto writeSession_1 = CreateWriteSession (client, " producer-1" , 0 , std::string {TEST_TOPIC}, false );
864
- auto writeSession_2 = CreateWriteSession (client, " producer-2" , 0 , std::string {TEST_TOPIC}, false );
863
+ auto writeSession_1 = CreateWriteSession (client, " producer-1" , 0 , TString {TEST_TOPIC}, false );
864
+ auto writeSession_2 = CreateWriteSession (client, " producer-2" , 0 , TString {TEST_TOPIC}, false );
865
865
866
866
{
867
867
UNIT_ASSERT (writeSession_1->Write (Msg (msg, 1 )));
@@ -881,8 +881,8 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
881
881
UNIT_ASSERT_EQUAL (describe.GetTopicDescription ().GetPartitions ().size (), 3 );
882
882
}
883
883
884
- auto writeSession2_1 = CreateWriteSession (client, " producer-1" , 1 , std::string {TEST_TOPIC}, false );
885
- auto writeSession2_2 = CreateWriteSession (client, " producer-2" , 1 , std::string {TEST_TOPIC}, false );
884
+ auto writeSession2_1 = CreateWriteSession (client, " producer-1" , 1 , TString {TEST_TOPIC}, false );
885
+ auto writeSession2_2 = CreateWriteSession (client, " producer-2" , 1 , TString {TEST_TOPIC}, false );
886
886
887
887
{
888
888
UNIT_ASSERT (writeSession2_1->Write (Msg (msg, 7 )));
@@ -922,8 +922,8 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
922
922
923
923
auto msg = TString (1_MB, ' a' );
924
924
925
- auto writeSession_1 = CreateWriteSession (client, " producer-1" , 0 , std::string {TEST_TOPIC}, false );
926
- auto writeSession_2 = CreateWriteSession (client, " producer-2" , 0 , std::string {TEST_TOPIC}, false );
925
+ auto writeSession_1 = CreateWriteSession (client, " producer-1" , 0 , TString {TEST_TOPIC}, false );
926
+ auto writeSession_2 = CreateWriteSession (client, " producer-2" , 0 , TString {TEST_TOPIC}, false );
927
927
928
928
{
929
929
UNIT_ASSERT (writeSession_1->Write (Msg (msg, 1 )));
@@ -943,8 +943,8 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
943
943
UNIT_ASSERT_EQUAL (describe.GetTopicDescription ().GetPartitions ().size (), 3 );
944
944
}
945
945
946
- auto writeSession2_1 = CreateWriteSession (client, " producer-1" , 1 , std::string {TEST_TOPIC}, false );
947
- auto writeSession2_2 = CreateWriteSession (client, " producer-2" , 1 , std::string {TEST_TOPIC}, false );
946
+ auto writeSession2_1 = CreateWriteSession (client, " producer-1" , 1 , TString {TEST_TOPIC}, false );
947
+ auto writeSession2_2 = CreateWriteSession (client, " producer-2" , 1 , TString {TEST_TOPIC}, false );
948
948
949
949
{
950
950
UNIT_ASSERT (writeSession2_1->Write (Msg (msg, 7 )));
@@ -1190,7 +1190,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
1190
1190
1191
1191
Y_UNIT_TEST (BalancingAfterSplit_sessionsWithPartition) {
1192
1192
TTopicSdkTestSetup setup = CreateSetup ();
1193
- setup.CreateTopicWithAutoscale (TString{ TEST_TOPIC} , TEST_CONSUMER, 1 , 100 );
1193
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 1 , 100 );
1194
1194
1195
1195
TTopicClient client = setup.MakeClient ();
1196
1196
@@ -1230,7 +1230,7 @@ Y_UNIT_TEST_SUITE(TopicAutoscaling) {
1230
1230
1231
1231
Y_UNIT_TEST (ReBalancingAfterSplit_sessionsWithPartition) {
1232
1232
TTopicSdkTestSetup setup = CreateSetup ();
1233
- setup.CreateTopicWithAutoscale (TString{ TEST_TOPIC} , TEST_CONSUMER, 2 , 100 );
1233
+ setup.CreateTopicWithAutoscale (TEST_TOPIC, TEST_CONSUMER, 2 , 100 );
1234
1234
1235
1235
TTopicClient client = setup.MakeClient ();
1236
1236
0 commit comments