diff options
author | Bulat <[email protected]> | 2025-10-20 16:54:18 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2025-10-20 16:54:18 +0300 |
commit | fec82809617b3cc3eaf47995d02287945e9ef8b0 (patch) | |
tree | e475cbeb5c9efeec12e0b3d21c2e6ac267e58ae7 | |
parent | 7874efeb56a4beed3df6a5a5a413dc6583d23e7a (diff) |
-rw-r--r-- | ydb/public/sdk/cpp/tests/integration/topic/describe_topic.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ydb/public/sdk/cpp/tests/integration/topic/describe_topic.cpp b/ydb/public/sdk/cpp/tests/integration/topic/describe_topic.cpp index e8ac9874647..3ac94b38754 100644 --- a/ydb/public/sdk/cpp/tests/integration/topic/describe_topic.cpp +++ b/ydb/public/sdk/cpp/tests/integration/topic/describe_topic.cpp @@ -120,6 +120,11 @@ TEST_F(Describe, TEST_NAME(Location)) { } TEST_F(Describe, TEST_NAME(MetricsLevel)) { + char* ydbVersion = std::getenv("YDB_VERSION"); + if (ydbVersion != nullptr && std::string(ydbVersion) != "trunk") { + GTEST_SKIP() << "Skipping test for YDB version " << ydbVersion; + } + TTopicClient client(MakeDriver()); // const std::uint32_t MetricsLevelDisabled = 0; @@ -149,7 +154,7 @@ TEST_F(Describe, TEST_NAME(MetricsLevel)) { }; { - const std::string topic("topic-with-counters"); + const std::string topic(GetTopicPath("topic-with-counters")); createTopic(topic, MetricsLevelDetailed); checkFlag(topic, MetricsLevelDetailed); setMetricsLevel(topic, MetricsLevelObject); @@ -169,7 +174,7 @@ TEST_F(Describe, TEST_NAME(MetricsLevel)) { } { - const std::string topic("topic-without-counters-by-default"); + const std::string topic(GetTopicPath("topic-without-counters-by-default")); auto res = client.CreateTopic(topic).GetValueSync(); ASSERT_TRUE(res.IsSuccess()); Y_ENSURE(checkFlag(topic, {})); @@ -185,7 +190,7 @@ TEST_F(Describe, TEST_NAME(MetricsLevel)) { } { - const std::string topic("topic-without-counters"); + const std::string topic(GetTopicPath("topic-without-counters")); createTopic(topic, MetricsLevelObject); Y_ENSURE(checkFlag(topic, MetricsLevelObject)); setMetricsLevel(topic, MetricsLevelDetailed); |