File tree Expand file tree Collapse file tree 8 files changed +97
-85
lines changed Expand file tree Collapse file tree 8 files changed +97
-85
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ jobs:
2727 - 2136:2136
2828 - 8765:8765
2929 volumes :
30+ - /tmp/ydb_data:/ydb_data
3031 - /tmp/ydb_certs:/ydb_certs
3132 env :
3233 YDB_LOCAL_SURVIVE_RESTART : true
33- YDB_USE_IN_MEMORY_PDISKS : true
3434 YDB_TABLE_ENABLE_PREPARED_DDL : true
3535 options : ' -h localhost'
3636 steps :
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ jobs:
7676 - 2136:2136
7777 - 8765:8765
7878 volumes :
79+ - /tmp/ydb_data:/ydb_data
7980 - /tmp/ydb_certs:/ydb_certs
8081 env :
8182 YDB_LOCAL_SURVIVE_RESTART : true
82- YDB_USE_IN_MEMORY_PDISKS : true
8383 YDB_TABLE_ENABLE_PREPARED_DDL : true
8484 options : ' -h localhost'
8585 steps :
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ add_ydb_test(NAME topic_it GTEST
66 basic_usage.cpp
77 describe_topic.cpp
88 local_partition.cpp
9+ topic_to_table.cpp
910 trace.cpp
1011 LINK_LIBRARIES
1112 topic_it_utils
@@ -24,6 +25,7 @@ add_ydb_test(NAME topic_direct_read_it GTEST
2425 describe_topic.cpp
2526 local_partition.cpp
2627 direct_read.cpp
28+ topic_to_table.cpp
2729 LINK_LIBRARIES
2830 topic_it_utils
2931 topic_it_setup
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ target_sources(topic_it_setup
77
88target_link_libraries (topic_it_setup
99 PUBLIC
10+ topic_it_utils
1011 YDB-CPP-SDK::Discovery
1112 YDB-CPP-SDK::Topic
1213 GTest::gtest
Original file line number Diff line number Diff line change @@ -18,12 +18,11 @@ void TTopicTestFixture::SetUp() {
1818 TTopicClient client (MakeDriver ());
1919
2020 const testing::TestInfo* const testInfo = testing::UnitTest::GetInstance ()->current_test_info ();
21- std::filesystem::path execPath (std::string{GetExecPath ()});
2221
2322 std::stringstream topicBuilder;
2423 topicBuilder << std::getenv (" YDB_TEST_ROOT" ) << " /" << testInfo->test_suite_name () << " -" << testInfo->name () << " /" ;
2524 TopicPrefix_ = topicBuilder.str ();
26-
25+
2726 std::stringstream consumerBuilder;
2827 consumerBuilder << testInfo->test_suite_name () << " -" << testInfo->name () << " -" ;
2928 ConsumerPrefix_ = consumerBuilder.str ();
@@ -32,6 +31,11 @@ void TTopicTestFixture::SetUp() {
3231 CreateTopic ();
3332}
3433
34+ void TTopicTestFixture::TearDown () {
35+ TTopicClient client (MakeDriver ());
36+ client.DropTopic (GetTopicPath ()).GetValueSync ();
37+ }
38+
3539std::string TTopicTestFixture::GetEndpoint () const {
3640 auto endpoint = std::getenv (" YDB_ENDPOINT" );
3741 Y_ENSURE_BT (endpoint, " YDB_ENDPOINT is not set" );
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ extern const bool EnableDirectRead;
1414class TTopicTestFixture : public ::testing::Test, public ITopicTestSetup {
1515public:
1616 void SetUp () override ;
17+ void TearDown () override ;
1718
1819 std::string GetEndpoint () const override ;
1920 std::string GetDatabase () const override ;
You can’t perform that action at this time.
0 commit comments