summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ydb/public/sdk/cpp/tests/integration/topic/describe_topic.cpp11
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);