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:
27
27
- 2136:2136
28
28
- 8765:8765
29
29
volumes :
30
+ - /tmp/ydb_data:/ydb_data
30
31
- /tmp/ydb_certs:/ydb_certs
31
32
env :
32
33
YDB_LOCAL_SURVIVE_RESTART : true
33
- YDB_USE_IN_MEMORY_PDISKS : true
34
34
YDB_TABLE_ENABLE_PREPARED_DDL : true
35
35
options : ' -h localhost'
36
36
steps :
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ jobs:
76
76
- 2136:2136
77
77
- 8765:8765
78
78
volumes :
79
+ - /tmp/ydb_data:/ydb_data
79
80
- /tmp/ydb_certs:/ydb_certs
80
81
env :
81
82
YDB_LOCAL_SURVIVE_RESTART : true
82
- YDB_USE_IN_MEMORY_PDISKS : true
83
83
YDB_TABLE_ENABLE_PREPARED_DDL : true
84
84
options : ' -h localhost'
85
85
steps :
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ add_ydb_test(NAME topic_it GTEST
6
6
basic_usage.cpp
7
7
describe_topic.cpp
8
8
local_partition.cpp
9
+ topic_to_table.cpp
9
10
trace.cpp
10
11
LINK_LIBRARIES
11
12
topic_it_utils
@@ -24,6 +25,7 @@ add_ydb_test(NAME topic_direct_read_it GTEST
24
25
describe_topic.cpp
25
26
local_partition.cpp
26
27
direct_read.cpp
28
+ topic_to_table.cpp
27
29
LINK_LIBRARIES
28
30
topic_it_utils
29
31
topic_it_setup
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ target_sources(topic_it_setup
7
7
8
8
target_link_libraries (topic_it_setup
9
9
PUBLIC
10
+ topic_it_utils
10
11
YDB-CPP-SDK::Discovery
11
12
YDB-CPP-SDK::Topic
12
13
GTest::gtest
Original file line number Diff line number Diff line change @@ -18,12 +18,11 @@ void TTopicTestFixture::SetUp() {
18
18
TTopicClient client (MakeDriver ());
19
19
20
20
const testing::TestInfo* const testInfo = testing::UnitTest::GetInstance ()->current_test_info ();
21
- std::filesystem::path execPath (std::string{GetExecPath ()});
22
21
23
22
std::stringstream topicBuilder;
24
23
topicBuilder << std::getenv (" YDB_TEST_ROOT" ) << " /" << testInfo->test_suite_name () << " -" << testInfo->name () << " /" ;
25
24
TopicPrefix_ = topicBuilder.str ();
26
-
25
+
27
26
std::stringstream consumerBuilder;
28
27
consumerBuilder << testInfo->test_suite_name () << " -" << testInfo->name () << " -" ;
29
28
ConsumerPrefix_ = consumerBuilder.str ();
@@ -32,6 +31,11 @@ void TTopicTestFixture::SetUp() {
32
31
CreateTopic ();
33
32
}
34
33
34
+ void TTopicTestFixture::TearDown () {
35
+ TTopicClient client (MakeDriver ());
36
+ client.DropTopic (GetTopicPath ()).GetValueSync ();
37
+ }
38
+
35
39
std::string TTopicTestFixture::GetEndpoint () const {
36
40
auto endpoint = std::getenv (" YDB_ENDPOINT" );
37
41
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;
14
14
class TTopicTestFixture : public ::testing::Test, public ITopicTestSetup {
15
15
public:
16
16
void SetUp () override ;
17
+ void TearDown () override ;
17
18
18
19
std::string GetEndpoint () const override ;
19
20
std::string GetDatabase () const override ;
You can’t perform that action at this time.
0 commit comments