summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBulat <[email protected]>2025-10-20 16:54:18 +0300
committerGitHub <[email protected]>2025-10-20 16:54:18 +0300
commitfec82809617b3cc3eaf47995d02287945e9ef8b0 (patch)
treee475cbeb5c9efeec12e0b3d21c2e6ac267e58ae7
parent7874efeb56a4beed3df6a5a5a413dc6583d23e7a (diff)
[C++ SDK] Fixed topic metrics test (#27168)HEADmain
-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);