summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Shakhov <[email protected]>2024-09-20 13:34:11 +0300
committerGitHub <[email protected]>2024-09-20 13:34:11 +0300
commitbf8761b4e01eefc04865604355b9b4f23003fd8d (patch)
tree0e33a2f51786d4bba4d93fec5e6ce05f5ef42416
parenta5bf3888132b6505fbb08d6c6e2a2e655d3f1745 (diff)
Rename `HasNotRight` -> `HasNoRight` in tests (#9550)
-rw-r--r--ydb/core/tx/schemeshard/ut_base/ut_base.cpp4
-rw-r--r--ydb/core/tx/schemeshard/ut_helpers/ls_checks.cpp4
-rw-r--r--ydb/core/tx/schemeshard/ut_helpers/ls_checks.h4
-rw-r--r--ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp6
4 files changed, 9 insertions, 9 deletions
diff --git a/ydb/core/tx/schemeshard/ut_base/ut_base.cpp b/ydb/core/tx/schemeshard/ut_base/ut_base.cpp
index 849a52a2534..16abd6beb86 100644
--- a/ydb/core/tx/schemeshard/ut_base/ut_base.cpp
+++ b/ydb/core/tx/schemeshard/ut_base/ut_base.cpp
@@ -606,7 +606,7 @@ Y_UNIT_TEST_SUITE(TSchemeShardTest) {
TestDescribeResult(DescribePath(runtime, "/MyRoot/DirA"),
{NLs::PathVersionEqual(6),
NLs::HasEffectiveRight("+U:user0@builtin"),
- NLs::HasNotEffectiveRight("+U:user1@builtin:-")});
+ NLs::HasNoEffectiveRight("+U:user1@builtin:-")});
{
TestMkDir(runtime, ++txId, "/MyRoot/DirA", "DirB");
@@ -616,7 +616,7 @@ Y_UNIT_TEST_SUITE(TSchemeShardTest) {
TestDescribeResult(DescribePath(runtime, "/MyRoot/DirA/DirB"),
{NLs::PathVersionEqual(5),
NLs::HasEffectiveRight("+U:user0@builtin"),
- NLs::HasNotEffectiveRight("+U:user1@builtin:-")});
+ NLs::HasNoEffectiveRight("+U:user1@builtin:-")});
}
diff --git a/ydb/core/tx/schemeshard/ut_helpers/ls_checks.cpp b/ydb/core/tx/schemeshard/ut_helpers/ls_checks.cpp
index 0e2ab9091a0..36334aca0de 100644
--- a/ydb/core/tx/schemeshard/ut_helpers/ls_checks.cpp
+++ b/ydb/core/tx/schemeshard/ut_helpers/ls_checks.cpp
@@ -1254,7 +1254,7 @@ TCheckFunc HasRight(const TString& right) {
};
}
-TCheckFunc HasNotRight(const TString& right) {
+TCheckFunc HasNoRight(const TString& right) {
return [=] (const NKikimrScheme::TEvDescribeSchemeResult& record) {
CheckRight(record, right, false, true);
};
@@ -1270,7 +1270,7 @@ TCheckFunc HasEffectiveRight(const TString& right) {
};
}
-TCheckFunc HasNotEffectiveRight(const TString& right) {
+TCheckFunc HasNoEffectiveRight(const TString& right) {
return [=] (const NKikimrScheme::TEvDescribeSchemeResult& record) {
CheckEffectiveRight(record, right, false);
};
diff --git a/ydb/core/tx/schemeshard/ut_helpers/ls_checks.h b/ydb/core/tx/schemeshard/ut_helpers/ls_checks.h
index 33baaa5b80f..6e49cb37941 100644
--- a/ydb/core/tx/schemeshard/ut_helpers/ls_checks.h
+++ b/ydb/core/tx/schemeshard/ut_helpers/ls_checks.h
@@ -170,9 +170,9 @@ namespace NLs {
TCheckFunc HasOwner(const TString& owner);
TCheckFunc HasRight(const TString& right);
- TCheckFunc HasNotRight(const TString& right);
+ TCheckFunc HasNoRight(const TString& right);
TCheckFunc HasEffectiveRight(const TString& right);
- TCheckFunc HasNotEffectiveRight(const TString& right);
+ TCheckFunc HasNoEffectiveRight(const TString& right);
TCheckFunc KesusConfigIs(ui64 self_check_period_millis, ui64 session_grace_period_millis);
TCheckFunc DatabaseQuotas(ui64 dataStreamShards);
diff --git a/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp b/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp
index ee1de957a11..cb9bff66bf3 100644
--- a/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp
+++ b/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp
@@ -3991,9 +3991,9 @@ Y_UNIT_TEST_SUITE(TImportTests) {
TestDescribeResult(DescribePath(runtime, "/MyRoot/Table"), {
NLs::PathExist,
NLs::HasOwner(userSID),
- NLs::HasNotRight("+R:alice"),
- NLs::HasNotRight("+W:alice"),
- NLs::HasNotRight("+R:bob")
+ NLs::HasNoRight("+R:alice"),
+ NLs::HasNoRight("+W:alice"),
+ NLs::HasNoRight("+R:bob")
});
}
}