Skip to content

Commit bf8761b

Browse files
authored
Rename HasNotRight -> HasNoRight in tests (#9550)
1 parent a5bf388 commit bf8761b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ydb/core/tx/schemeshard/ut_base/ut_base.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ Y_UNIT_TEST_SUITE(TSchemeShardTest) {
606606
TestDescribeResult(DescribePath(runtime, "/MyRoot/DirA"),
607607
{NLs::PathVersionEqual(6),
608608
NLs::HasEffectiveRight("+U:user0@builtin"),
609-
NLs::HasNotEffectiveRight("+U:user1@builtin:-")});
609+
NLs::HasNoEffectiveRight("+U:user1@builtin:-")});
610610

611611
{
612612
TestMkDir(runtime, ++txId, "/MyRoot/DirA", "DirB");
@@ -616,7 +616,7 @@ Y_UNIT_TEST_SUITE(TSchemeShardTest) {
616616
TestDescribeResult(DescribePath(runtime, "/MyRoot/DirA/DirB"),
617617
{NLs::PathVersionEqual(5),
618618
NLs::HasEffectiveRight("+U:user0@builtin"),
619-
NLs::HasNotEffectiveRight("+U:user1@builtin:-")});
619+
NLs::HasNoEffectiveRight("+U:user1@builtin:-")});
620620

621621
}
622622

ydb/core/tx/schemeshard/ut_helpers/ls_checks.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ TCheckFunc HasRight(const TString& right) {
12541254
};
12551255
}
12561256

1257-
TCheckFunc HasNotRight(const TString& right) {
1257+
TCheckFunc HasNoRight(const TString& right) {
12581258
return [=] (const NKikimrScheme::TEvDescribeSchemeResult& record) {
12591259
CheckRight(record, right, false, true);
12601260
};
@@ -1270,7 +1270,7 @@ TCheckFunc HasEffectiveRight(const TString& right) {
12701270
};
12711271
}
12721272

1273-
TCheckFunc HasNotEffectiveRight(const TString& right) {
1273+
TCheckFunc HasNoEffectiveRight(const TString& right) {
12741274
return [=] (const NKikimrScheme::TEvDescribeSchemeResult& record) {
12751275
CheckEffectiveRight(record, right, false);
12761276
};

ydb/core/tx/schemeshard/ut_helpers/ls_checks.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ namespace NLs {
170170

171171
TCheckFunc HasOwner(const TString& owner);
172172
TCheckFunc HasRight(const TString& right);
173-
TCheckFunc HasNotRight(const TString& right);
173+
TCheckFunc HasNoRight(const TString& right);
174174
TCheckFunc HasEffectiveRight(const TString& right);
175-
TCheckFunc HasNotEffectiveRight(const TString& right);
175+
TCheckFunc HasNoEffectiveRight(const TString& right);
176176

177177
TCheckFunc KesusConfigIs(ui64 self_check_period_millis, ui64 session_grace_period_millis);
178178
TCheckFunc DatabaseQuotas(ui64 dataStreamShards);

ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -3991,9 +3991,9 @@ Y_UNIT_TEST_SUITE(TImportTests) {
39913991
TestDescribeResult(DescribePath(runtime, "/MyRoot/Table"), {
39923992
NLs::PathExist,
39933993
NLs::HasOwner(userSID),
3994-
NLs::HasNotRight("+R:alice"),
3995-
NLs::HasNotRight("+W:alice"),
3996-
NLs::HasNotRight("+R:bob")
3994+
NLs::HasNoRight("+R:alice"),
3995+
NLs::HasNoRight("+W:alice"),
3996+
NLs::HasNoRight("+R:bob")
39973997
});
39983998
}
39993999
}

0 commit comments

Comments
 (0)