mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-15 17:51:06 +00:00
parent
1aa0720843
commit
558a22d5b8
2 changed files with 14 additions and 0 deletions
|
@ -103,6 +103,7 @@ ConnectionContext::ConnectionContext(const ConnectionContext* owner, Transaction
|
|||
acl_commands = owner->acl_commands;
|
||||
keys = owner->keys;
|
||||
skip_acl_validation = owner->skip_acl_validation;
|
||||
ns = owner->ns;
|
||||
} else {
|
||||
acl_commands = std::vector<uint64_t>(acl::NumberOfFamilies(), acl::NONE_COMMANDS);
|
||||
}
|
||||
|
|
|
@ -1106,4 +1106,17 @@ TEST_F(MultiEvalTest, MultiAndEval) {
|
|||
EXPECT_EQ(resp, "OK");
|
||||
}
|
||||
|
||||
TEST_F(MultiTest, MultiTypes) {
|
||||
// we had a bug with namespaces for type command in multi/exec
|
||||
EXPECT_THAT(Run({"multi"}), "OK");
|
||||
EXPECT_THAT(Run({"type", "sdfx3"}), "QUEUED");
|
||||
EXPECT_THAT(Run({"type", "asdasd2"}), "QUEUED");
|
||||
EXPECT_THAT(Run({"type", "wer124"}), "QUEUED");
|
||||
EXPECT_THAT(Run({"type", "asafdasd"}), "QUEUED");
|
||||
EXPECT_THAT(Run({"type", "dsfgser"}), "QUEUED");
|
||||
EXPECT_THAT(Run({"type", "erg2"}), "QUEUED");
|
||||
EXPECT_THAT(Run({"exec"}),
|
||||
RespArray(ElementsAre("none", "none", "none", "none", "none", "none")));
|
||||
}
|
||||
|
||||
} // namespace dfly
|
||||
|
|
Loading…
Reference in a new issue