File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -2928,4 +2928,26 @@ Y_UNIT_TEST_SUITE(DataStreams) {
2928
2928
2929
2929
}
2930
2930
2931
+ Y_UNIT_TEST (Test_Crreate_AutoPartitioning_Disabled) {
2932
+ TInsecureDatastreamsTestServer testServer (true );
2933
+ SET_YDS_LOCALS;
2934
+
2935
+ {
2936
+ auto result = testServer.DataStreamsClient ->CreateStream (" test-topic" ,
2937
+ NYDS_V1::TCreateStreamSettings ()
2938
+ .ShardCount (3 )
2939
+ .BeginConfigurePartitioningSettings ()
2940
+ .BeginConfigureAutoPartitioningSettings ()
2941
+ .Strategy (NYdb::NDataStreams::V1::EAutoPartitioningStrategy::Disabled)
2942
+ .EndConfigureAutoPartitioningSettings ()
2943
+ .EndConfigurePartitioningSettings ()
2944
+ ).ExtractValueSync ();
2945
+ UNIT_ASSERT_VALUES_EQUAL (result.IsTransportError (), false );
2946
+ if (result.GetStatus () != EStatus::SUCCESS) {
2947
+ result.GetIssues ().PrintTo (Cerr);
2948
+ }
2949
+ UNIT_ASSERT_VALUES_EQUAL_C (result.GetStatus (), EStatus::SUCCESS, result.GetIssues ().ToString ());
2950
+ }
2951
+ }
2952
+
2931
2953
}
You can’t perform that action at this time.
0 commit comments