From 13702454dade2c28c4559f0715949a8d5d623e65 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Mon, 21 Aug 2023 15:16:03 +0200 Subject: [PATCH] chore: bump snapshots --- .../commands/__snapshots__/command.js.snap | 310 +++++++++++++++--- .../commands/__snapshots__/config.js.snap | 4 +- .../commands/__snapshots__/info.js.snap | 8 +- .../commands/__snapshots__/lolwut.js.snap | 4 +- .../commands/__snapshots__/object.js.snap | 8 +- .../commands/__snapshots__/scan.js.snap | 4 +- 6 files changed, 274 insertions(+), 64 deletions(-) diff --git a/test/integration/commands/__snapshots__/command.js.snap b/test/integration/commands/__snapshots__/command.js.snap index 17c9bfef9..10787eb9f 100644 --- a/test/integration/commands/__snapshots__/command.js.snap +++ b/test/integration/commands/__snapshots__/command.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`command count returns number of commands 1`] = `240`; +exports[`command count returns number of commands 1`] = `241`; exports[`command count should throw on wrong number of arguments 1`] = `"ERR wrong number of arguments for 'command|count' command"`; @@ -9,7 +9,7 @@ exports[`command docs returns a commands docs 1`] = ` "get", [ "summary", - "Get the value of a key", + "Returns the string value of a key.", "since", "1.0.0", "group", @@ -23,6 +23,8 @@ exports[`command docs returns a commands docs 1`] = ` "key", "type", "key", + "display_text", + "key", "key_spec_index", 0, ], @@ -36,7 +38,7 @@ exports[`command docs returns a description of multiple commands 1`] = ` "get", [ "summary", - "Get the value of a key", + "Returns the string value of a key.", "since", "1.0.0", "group", @@ -50,6 +52,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "key", "type", "key", + "display_text", + "key", "key_spec_index", 0, ], @@ -58,7 +62,7 @@ exports[`command docs returns a description of multiple commands 1`] = ` "set", [ "summary", - "Set the string value of a key", + "Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.", "since", "1.0.0", "group", @@ -91,6 +95,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "key", "type", "key", + "display_text", + "key", "key_spec_index", 0, ], @@ -99,6 +105,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "value", "type", "string", + "display_text", + "value", ], [ "name", @@ -118,6 +126,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "nx", "type", "pure-token", + "display_text", + "nx", "token", "NX", ], @@ -126,6 +136,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "xx", "type", "pure-token", + "display_text", + "xx", "token", "XX", ], @@ -136,6 +148,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "get", "type", "pure-token", + "display_text", + "get", "token", "GET", "since", @@ -161,6 +175,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "seconds", "type", "integer", + "display_text", + "seconds", "token", "EX", "since", @@ -171,6 +187,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "milliseconds", "type", "integer", + "display_text", + "milliseconds", "token", "PX", "since", @@ -181,6 +199,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "unix-time-seconds", "type", "unix-time", + "display_text", + "unix-time-seconds", "token", "EXAT", "since", @@ -191,6 +211,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "unix-time-milliseconds", "type", "unix-time", + "display_text", + "unix-time-milliseconds", "token", "PXAT", "since", @@ -201,6 +223,8 @@ exports[`command docs returns a description of multiple commands 1`] = ` "keepttl", "type", "pure-token", + "display_text", + "keepttl", "token", "KEEPTTL", "since", @@ -234,11 +258,11 @@ exports[`command getkeys returns the keys used in sdiff 1`] = ` ] `; -exports[`command getkeys should throw on wrong number of arguments 1`] = `"ERR wrong number of arguments for 'command|getkeys' command"`; +exports[`command getkeys should throw on wrong number of arguments 1`] = `"ERR Invalid command specified"`; exports[`command getkeys should throw on wrong number of arguments 2`] = `"ERR Invalid command specified"`; -exports[`command getkeys should throw on wrong number of arguments 3`] = `"ERR wrong number of arguments for 'command|getkeys' command"`; +exports[`command getkeys should throw on wrong number of arguments 3`] = `"ERR Invalid number of arguments specified for command"`; exports[`command getkeysandflags returns the keys used in get 1`] = ` [ @@ -283,11 +307,11 @@ exports[`command getkeysandflags returns the keys used in sdiff 1`] = ` ] `; -exports[`command getkeysandflags should throw on wrong number of arguments 1`] = `"ERR wrong number of arguments for 'command|getkeysandflags' command"`; +exports[`command getkeysandflags should throw on wrong number of arguments 1`] = `"ERR Invalid command specified"`; exports[`command getkeysandflags should throw on wrong number of arguments 2`] = `"ERR Invalid command specified"`; -exports[`command getkeysandflags should throw on wrong number of arguments 3`] = `"ERR wrong number of arguments for 'command|getkeysandflags' command"`; +exports[`command getkeysandflags should throw on wrong number of arguments 3`] = `"ERR Invalid number of arguments specified for command"`; exports[`command help prints a list over available subcommands 1`] = ` [ @@ -311,7 +335,7 @@ exports[`command help prints a list over available subcommands 1`] = ` "GETKEYSANDFLAGS ", " Return the keys and the access flags from a full Redis command.", "HELP", - " Prints this help.", + " Print this help.", ] `; @@ -477,8 +501,10 @@ exports[`command list returns a list of all commands 1`] = ` "client|kill", "client|list", "client|no-evict", + "client|no-touch", "client|pause", "client|reply", + "client|setinfo", "client|setname", "client|tracking", "client|trackinginfo", @@ -502,6 +528,7 @@ exports[`command list returns a list of all commands 1`] = ` "cluster|links", "cluster|meet", "cluster|myid", + "cluster|myshardid", "cluster|nodes", "cluster|replicas", "cluster|replicate", @@ -743,6 +770,7 @@ exports[`command list returns a list of all commands 1`] = ` "unsubscribe", "unwatch", "wait", + "waitaof", "watch", "xack", "xadd", @@ -1508,7 +1536,6 @@ exports[`command returns all commands by default 1`] = ` [ "write", "denyoom", - "noscript", "blocking", ], 1, @@ -1647,7 +1674,6 @@ exports[`command returns all commands by default 1`] = ` -3, [ "write", - "noscript", "blocking", ], 1, @@ -1701,7 +1727,6 @@ exports[`command returns all commands by default 1`] = ` -3, [ "write", - "noscript", "blocking", ], 1, @@ -1756,7 +1781,6 @@ exports[`command returns all commands by default 1`] = ` [ "write", "denyoom", - "noscript", "blocking", ], 1, @@ -1895,7 +1919,6 @@ exports[`command returns all commands by default 1`] = ` -3, [ "write", - "noscript", "blocking", "fast", ], @@ -1950,7 +1973,6 @@ exports[`command returns all commands by default 1`] = ` -3, [ "write", - "noscript", "blocking", "fast", ], @@ -2196,6 +2218,25 @@ exports[`command returns all commands by default 1`] = ` [], [], ], + [ + "client|no-touch", + 3, + [ + "noscript", + "loading", + "stale", + ], + 0, + 0, + 0, + [ + "@slow", + "@connection", + ], + [], + [], + [], + ], [ "client|pause", -3, @@ -2237,6 +2278,25 @@ exports[`command returns all commands by default 1`] = ` [], [], ], + [ + "client|setinfo", + 4, + [ + "noscript", + "loading", + "stale", + ], + 0, + 0, + 0, + [ + "@slow", + "@connection", + ], + [], + [], + [], + ], [ "client|setname", 3, @@ -2675,6 +2735,24 @@ exports[`command returns all commands by default 1`] = ` [], [], ], + [ + "cluster|myshardid", + 2, + [ + "stale", + ], + 0, + 0, + 0, + [ + "@slow", + ], + [ + "nondeterministic_output", + ], + [], + [], + ], [ "cluster|nodes", 2, @@ -2818,6 +2896,7 @@ exports[`command returns all commands by default 1`] = ` "cluster|shards", 2, [ + "loading", "stale", ], 0, @@ -2857,6 +2936,7 @@ exports[`command returns all commands by default 1`] = ` "cluster|slots", 2, [ + "loading", "stale", ], 0, @@ -2932,7 +3012,7 @@ exports[`command returns all commands by default 1`] = ` ], [ "command|getkeys", - -4, + -3, [ "loading", "stale", @@ -2950,7 +3030,7 @@ exports[`command returns all commands by default 1`] = ` ], [ "command|getkeysandflags", - -4, + -3, [ "loading", "stale", @@ -7888,10 +7968,7 @@ exports[`command returns all commands by default 1`] = ` "@string", "@slow", ], - [ - "request_policy:multi_shard", - "response_policy:agg_min", - ], + [], [ [ "flags", @@ -9019,6 +9096,7 @@ exports[`command returns all commands by default 1`] = ` ], [ "request_policy:all_shards", + "response_policy:special", "nondeterministic_output", ], [], @@ -9747,6 +9825,7 @@ exports[`command returns all commands by default 1`] = ` [ "nondeterministic_output", "request_policy:special", + "response_policy:special", ], [], [], @@ -12023,6 +12102,24 @@ exports[`command returns all commands by default 1`] = ` [ "wait", 3, + [], + 0, + 0, + 0, + [ + "@slow", + "@connection", + ], + [ + "request_policy:all_shards", + "response_policy:agg_min", + ], + [], + [], + ], + [ + "waitaof", + 4, [ "noscript", ], @@ -14311,7 +14408,7 @@ exports[`command returns all commands by default 1`] = ` ], [ "zrank", - 3, + -3, [ "readonly", "fast", @@ -14713,7 +14810,7 @@ exports[`command returns all commands by default 1`] = ` ], [ "zrevrank", - 3, + -3, [ "readonly", "fast", @@ -15004,7 +15101,7 @@ exports[`command returns all commands by default 1`] = ` exports[`command should throw on unknown subcommand 1`] = `"ERR unknown subcommand 'foobar'. Try COMMAND HELP."`; -exports[`commandBuffer count returns number of commands 1`] = `240`; +exports[`commandBuffer count returns number of commands 1`] = `241`; exports[`commandBuffer count should throw on wrong number of arguments 1`] = `"ERR wrong number of arguments for 'command|count' command"`; @@ -15013,7 +15110,10 @@ exports[`commandBuffer docs returns a commands docs 1`] = ` Buffer<67 65 74>, [ Buffer<73 75 6d 6d 61 72 79>, - Buffer<47 65 74 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 61 20 6b 65 79>, + Buffer< + 52 65 74 75 72 6e 73 20 74 68 65 20 73 74 72 69 6e 67 20 76 61 6c 75 65 20 6f + 66 20 61 20 6b 65 79 2e +>, Buffer<73 69 6e 63 65>, Buffer<31 2e 30 2e 30>, Buffer<67 72 6f 75 70>, @@ -15027,6 +15127,8 @@ exports[`commandBuffer docs returns a commands docs 1`] = ` Buffer<6b 65 79>, Buffer<74 79 70 65>, Buffer<6b 65 79>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<6b 65 79>, Buffer<6b 65 79 5f 73 70 65 63 5f 69 6e 64 65 78>, 0, ], @@ -15040,7 +15142,10 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<67 65 74>, [ Buffer<73 75 6d 6d 61 72 79>, - Buffer<47 65 74 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 61 20 6b 65 79>, + Buffer< + 52 65 74 75 72 6e 73 20 74 68 65 20 73 74 72 69 6e 67 20 76 61 6c 75 65 20 6f + 66 20 61 20 6b 65 79 2e +>, Buffer<73 69 6e 63 65>, Buffer<31 2e 30 2e 30>, Buffer<67 72 6f 75 70>, @@ -15054,6 +15159,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<6b 65 79>, Buffer<74 79 70 65>, Buffer<6b 65 79>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<6b 65 79>, Buffer<6b 65 79 5f 73 70 65 63 5f 69 6e 64 65 78>, 0, ], @@ -15063,8 +15170,10 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` [ Buffer<73 75 6d 6d 61 72 79>, Buffer< - 53 65 74 20 74 68 65 20 73 74 72 69 6e 67 20 76 61 6c 75 65 20 6f 66 20 61 20 - 6b 65 79 + 53 65 74 73 20 74 68 65 20 73 74 72 69 6e 67 20 76 61 6c 75 65 20 6f 66 20 61 + 20 6b 65 79 2c 20 69 67 6e 6f 72 69 6e 67 20 69 74 73 20 74 79 70 65 2e 20 54 + 68 65 20 6b 65 79 20 69 73 20 63 72 65 61 74 65 64 20 69 66 20 69 74 20 64 6f + 65 73 6e 27 74 20 65 78 69 73 74 2e >, Buffer<73 69 6e 63 65>, Buffer<31 2e 30 2e 30>, @@ -15111,6 +15220,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<6b 65 79>, Buffer<74 79 70 65>, Buffer<6b 65 79>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<6b 65 79>, Buffer<6b 65 79 5f 73 70 65 63 5f 69 6e 64 65 78>, 0, ], @@ -15119,6 +15230,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<76 61 6c 75 65>, Buffer<74 79 70 65>, Buffer<73 74 72 69 6e 67>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<76 61 6c 75 65>, ], [ Buffer<6e 61 6d 65>, @@ -15138,6 +15251,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<6e 78>, Buffer<74 79 70 65>, Buffer<70 75 72 65 2d 74 6f 6b 65 6e>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<6e 78>, Buffer<74 6f 6b 65 6e>, Buffer<4e 58>, ], @@ -15146,6 +15261,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<78 78>, Buffer<74 79 70 65>, Buffer<70 75 72 65 2d 74 6f 6b 65 6e>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<78 78>, Buffer<74 6f 6b 65 6e>, Buffer<58 58>, ], @@ -15156,6 +15273,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<67 65 74>, Buffer<74 79 70 65>, Buffer<70 75 72 65 2d 74 6f 6b 65 6e>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<67 65 74>, Buffer<74 6f 6b 65 6e>, Buffer<47 45 54>, Buffer<73 69 6e 63 65>, @@ -15181,6 +15300,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<73 65 63 6f 6e 64 73>, Buffer<74 79 70 65>, Buffer<69 6e 74 65 67 65 72>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<73 65 63 6f 6e 64 73>, Buffer<74 6f 6b 65 6e>, Buffer<45 58>, Buffer<73 69 6e 63 65>, @@ -15191,6 +15312,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<6d 69 6c 6c 69 73 65 63 6f 6e 64 73>, Buffer<74 79 70 65>, Buffer<69 6e 74 65 67 65 72>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<6d 69 6c 6c 69 73 65 63 6f 6e 64 73>, Buffer<74 6f 6b 65 6e>, Buffer<50 58>, Buffer<73 69 6e 63 65>, @@ -15201,6 +15324,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<75 6e 69 78 2d 74 69 6d 65 2d 73 65 63 6f 6e 64 73>, Buffer<74 79 70 65>, Buffer<75 6e 69 78 2d 74 69 6d 65>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<75 6e 69 78 2d 74 69 6d 65 2d 73 65 63 6f 6e 64 73>, Buffer<74 6f 6b 65 6e>, Buffer<45 58 41 54>, Buffer<73 69 6e 63 65>, @@ -15211,6 +15336,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<75 6e 69 78 2d 74 69 6d 65 2d 6d 69 6c 6c 69 73 65 63 6f 6e 64 73>, Buffer<74 79 70 65>, Buffer<75 6e 69 78 2d 74 69 6d 65>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<75 6e 69 78 2d 74 69 6d 65 2d 6d 69 6c 6c 69 73 65 63 6f 6e 64 73>, Buffer<74 6f 6b 65 6e>, Buffer<50 58 41 54>, Buffer<73 69 6e 63 65>, @@ -15221,6 +15348,8 @@ exports[`commandBuffer docs returns a description of multiple commands 1`] = ` Buffer<6b 65 65 70 74 74 6c>, Buffer<74 79 70 65>, Buffer<70 75 72 65 2d 74 6f 6b 65 6e>, + Buffer<64 69 73 70 6c 61 79 5f 74 65 78 74>, + Buffer<6b 65 65 70 74 74 6c>, Buffer<74 6f 6b 65 6e>, Buffer<4b 45 45 50 54 54 4c>, Buffer<73 69 6e 63 65>, @@ -15254,11 +15383,11 @@ exports[`commandBuffer getkeys returns the keys used in sdiff 1`] = ` ] `; -exports[`commandBuffer getkeys should throw on wrong number of arguments 1`] = `"ERR wrong number of arguments for 'command|getkeys' command"`; +exports[`commandBuffer getkeys should throw on wrong number of arguments 1`] = `"ERR Invalid command specified"`; exports[`commandBuffer getkeys should throw on wrong number of arguments 2`] = `"ERR Invalid command specified"`; -exports[`commandBuffer getkeys should throw on wrong number of arguments 3`] = `"ERR wrong number of arguments for 'command|getkeys' command"`; +exports[`commandBuffer getkeys should throw on wrong number of arguments 3`] = `"ERR Invalid number of arguments specified for command"`; exports[`commandBuffer getkeysandflags returns the keys used in get 1`] = ` [ @@ -15303,11 +15432,11 @@ exports[`commandBuffer getkeysandflags returns the keys used in sdiff 1`] = ` ] `; -exports[`commandBuffer getkeysandflags should throw on wrong number of arguments 1`] = `"ERR wrong number of arguments for 'command|getkeysandflags' command"`; +exports[`commandBuffer getkeysandflags should throw on wrong number of arguments 1`] = `"ERR Invalid command specified"`; exports[`commandBuffer getkeysandflags should throw on wrong number of arguments 2`] = `"ERR Invalid command specified"`; -exports[`commandBuffer getkeysandflags should throw on wrong number of arguments 3`] = `"ERR wrong number of arguments for 'command|getkeysandflags' command"`; +exports[`commandBuffer getkeysandflags should throw on wrong number of arguments 3`] = `"ERR Invalid number of arguments specified for command"`; exports[`commandBuffer help prints a list over available subcommands 1`] = ` [ @@ -15331,7 +15460,7 @@ exports[`commandBuffer help prints a list over available subcommands 1`] = ` "GETKEYSANDFLAGS ", " Return the keys and the access flags from a full Redis command.", "HELP", - " Prints this help.", + " Print this help.", ] `; @@ -15500,8 +15629,10 @@ exports[`commandBuffer list returns a list of all commands 1`] = ` Buffer<63 6c 69 65 6e 74 7c 6b 69 6c 6c>, Buffer<63 6c 69 65 6e 74 7c 6c 69 73 74>, Buffer<63 6c 69 65 6e 74 7c 6e 6f 2d 65 76 69 63 74>, + Buffer<63 6c 69 65 6e 74 7c 6e 6f 2d 74 6f 75 63 68>, Buffer<63 6c 69 65 6e 74 7c 70 61 75 73 65>, Buffer<63 6c 69 65 6e 74 7c 72 65 70 6c 79>, + Buffer<63 6c 69 65 6e 74 7c 73 65 74 69 6e 66 6f>, Buffer<63 6c 69 65 6e 74 7c 73 65 74 6e 61 6d 65>, Buffer<63 6c 69 65 6e 74 7c 74 72 61 63 6b 69 6e 67>, Buffer<63 6c 69 65 6e 74 7c 74 72 61 63 6b 69 6e 67 69 6e 66 6f>, @@ -15530,6 +15661,7 @@ exports[`commandBuffer list returns a list of all commands 1`] = ` Buffer<63 6c 75 73 74 65 72 7c 6c 69 6e 6b 73>, Buffer<63 6c 75 73 74 65 72 7c 6d 65 65 74>, Buffer<63 6c 75 73 74 65 72 7c 6d 79 69 64>, + Buffer<63 6c 75 73 74 65 72 7c 6d 79 73 68 61 72 64 69 64>, Buffer<63 6c 75 73 74 65 72 7c 6e 6f 64 65 73>, Buffer<63 6c 75 73 74 65 72 7c 72 65 70 6c 69 63 61 73>, Buffer<63 6c 75 73 74 65 72 7c 72 65 70 6c 69 63 61 74 65>, @@ -15775,6 +15907,7 @@ exports[`commandBuffer list returns a list of all commands 1`] = ` Buffer<75 6e 73 75 62 73 63 72 69 62 65>, Buffer<75 6e 77 61 74 63 68>, Buffer<77 61 69 74>, + Buffer<77 61 69 74 61 6f 66>, Buffer<77 61 74 63 68>, Buffer<78 61 63 6b>, Buffer<78 61 64 64>, @@ -16544,7 +16677,6 @@ exports[`commandBuffer returns all commands by default 1`] = ` [ Buffer<77 72 69 74 65>, Buffer<64 65 6e 79 6f 6f 6d>, - Buffer<6e 6f 73 63 72 69 70 74>, Buffer<62 6c 6f 63 6b 69 6e 67>, ], 1, @@ -16683,7 +16815,6 @@ exports[`commandBuffer returns all commands by default 1`] = ` -3, [ Buffer<77 72 69 74 65>, - Buffer<6e 6f 73 63 72 69 70 74>, Buffer<62 6c 6f 63 6b 69 6e 67>, ], 1, @@ -16737,7 +16868,6 @@ exports[`commandBuffer returns all commands by default 1`] = ` -3, [ Buffer<77 72 69 74 65>, - Buffer<6e 6f 73 63 72 69 70 74>, Buffer<62 6c 6f 63 6b 69 6e 67>, ], 1, @@ -16792,7 +16922,6 @@ exports[`commandBuffer returns all commands by default 1`] = ` [ Buffer<77 72 69 74 65>, Buffer<64 65 6e 79 6f 6f 6d>, - Buffer<6e 6f 73 63 72 69 70 74>, Buffer<62 6c 6f 63 6b 69 6e 67>, ], 1, @@ -16931,7 +17060,6 @@ exports[`commandBuffer returns all commands by default 1`] = ` -3, [ Buffer<77 72 69 74 65>, - Buffer<6e 6f 73 63 72 69 70 74>, Buffer<62 6c 6f 63 6b 69 6e 67>, Buffer<66 61 73 74>, ], @@ -16986,7 +17114,6 @@ exports[`commandBuffer returns all commands by default 1`] = ` -3, [ Buffer<77 72 69 74 65>, - Buffer<6e 6f 73 63 72 69 70 74>, Buffer<62 6c 6f 63 6b 69 6e 67>, Buffer<66 61 73 74>, ], @@ -17236,6 +17363,25 @@ exports[`commandBuffer returns all commands by default 1`] = ` [], [], ], + [ + Buffer<63 6c 69 65 6e 74 7c 6e 6f 2d 74 6f 75 63 68>, + 3, + [ + Buffer<6e 6f 73 63 72 69 70 74>, + Buffer<6c 6f 61 64 69 6e 67>, + Buffer<73 74 61 6c 65>, + ], + 0, + 0, + 0, + [ + Buffer<40 73 6c 6f 77>, + Buffer<40 63 6f 6e 6e 65 63 74 69 6f 6e>, + ], + [], + [], + [], + ], [ Buffer<63 6c 69 65 6e 74 7c 70 61 75 73 65>, -3, @@ -17277,6 +17423,25 @@ exports[`commandBuffer returns all commands by default 1`] = ` [], [], ], + [ + Buffer<63 6c 69 65 6e 74 7c 73 65 74 69 6e 66 6f>, + 4, + [ + Buffer<6e 6f 73 63 72 69 70 74>, + Buffer<6c 6f 61 64 69 6e 67>, + Buffer<73 74 61 6c 65>, + ], + 0, + 0, + 0, + [ + Buffer<40 73 6c 6f 77>, + Buffer<40 63 6f 6e 6e 65 63 74 69 6f 6e>, + ], + [], + [], + [], + ], [ Buffer<63 6c 69 65 6e 74 7c 73 65 74 6e 61 6d 65>, 3, @@ -17730,6 +17895,26 @@ exports[`commandBuffer returns all commands by default 1`] = ` [], [], ], + [ + Buffer<63 6c 75 73 74 65 72 7c 6d 79 73 68 61 72 64 69 64>, + 2, + [ + Buffer<73 74 61 6c 65>, + ], + 0, + 0, + 0, + [ + Buffer<40 73 6c 6f 77>, + ], + [ + Buffer< + 6e 6f 6e 64 65 74 65 72 6d 69 6e 69 73 74 69 63 5f 6f 75 74 70 75 74 +>, + ], + [], + [], + ], [ Buffer<63 6c 75 73 74 65 72 7c 6e 6f 64 65 73>, 2, @@ -17879,6 +18064,7 @@ exports[`commandBuffer returns all commands by default 1`] = ` Buffer<63 6c 75 73 74 65 72 7c 73 68 61 72 64 73>, 2, [ + Buffer<6c 6f 61 64 69 6e 67>, Buffer<73 74 61 6c 65>, ], 0, @@ -17922,6 +18108,7 @@ exports[`commandBuffer returns all commands by default 1`] = ` Buffer<63 6c 75 73 74 65 72 7c 73 6c 6f 74 73>, 2, [ + Buffer<6c 6f 61 64 69 6e 67>, Buffer<73 74 61 6c 65>, ], 0, @@ -18005,7 +18192,7 @@ exports[`commandBuffer returns all commands by default 1`] = ` ], [ Buffer<63 6f 6d 6d 61 6e 64 7c 67 65 74 6b 65 79 73>, - -4, + -3, [ Buffer<6c 6f 61 64 69 6e 67>, Buffer<73 74 61 6c 65>, @@ -18025,7 +18212,7 @@ exports[`commandBuffer returns all commands by default 1`] = ` Buffer< 63 6f 6d 6d 61 6e 64 7c 67 65 74 6b 65 79 73 61 6e 64 66 6c 61 67 73 >, - -4, + -3, [ Buffer<6c 6f 61 64 69 6e 67>, Buffer<73 74 61 6c 65>, @@ -23147,14 +23334,7 @@ exports[`commandBuffer returns all commands by default 1`] = ` Buffer<40 73 74 72 69 6e 67>, Buffer<40 73 6c 6f 77>, ], - [ - Buffer< - 72 65 71 75 65 73 74 5f 70 6f 6c 69 63 79 3a 6d 75 6c 74 69 5f 73 68 61 72 64 ->, - Buffer< - 72 65 73 70 6f 6e 73 65 5f 70 6f 6c 69 63 79 3a 61 67 67 5f 6d 69 6e ->, - ], + [], [ [ Buffer<66 6c 61 67 73>, @@ -24303,6 +24483,9 @@ exports[`commandBuffer returns all commands by default 1`] = ` [ Buffer< 72 65 71 75 65 73 74 5f 70 6f 6c 69 63 79 3a 61 6c 6c 5f 73 68 61 72 64 73 +>, + Buffer< + 72 65 73 70 6f 6e 73 65 5f 70 6f 6c 69 63 79 3a 73 70 65 63 69 61 6c >, Buffer< 6e 6f 6e 64 65 74 65 72 6d 69 6e 69 73 74 69 63 5f 6f 75 74 70 75 74 @@ -25036,6 +25219,9 @@ exports[`commandBuffer returns all commands by default 1`] = ` 6e 6f 6e 64 65 74 65 72 6d 69 6e 69 73 74 69 63 5f 6f 75 74 70 75 74 >, Buffer<72 65 71 75 65 73 74 5f 70 6f 6c 69 63 79 3a 73 70 65 63 69 61 6c>, + Buffer< + 72 65 73 70 6f 6e 73 65 5f 70 6f 6c 69 63 79 3a 73 70 65 63 69 61 6c +>, ], [], [], @@ -27398,6 +27584,28 @@ exports[`commandBuffer returns all commands by default 1`] = ` [ Buffer<77 61 69 74>, 3, + [], + 0, + 0, + 0, + [ + Buffer<40 73 6c 6f 77>, + Buffer<40 63 6f 6e 6e 65 63 74 69 6f 6e>, + ], + [ + Buffer< + 72 65 71 75 65 73 74 5f 70 6f 6c 69 63 79 3a 61 6c 6c 5f 73 68 61 72 64 73 +>, + Buffer< + 72 65 73 70 6f 6e 73 65 5f 70 6f 6c 69 63 79 3a 61 67 67 5f 6d 69 6e +>, + ], + [], + [], + ], + [ + Buffer<77 61 69 74 61 6f 66>, + 4, [ Buffer<6e 6f 73 63 72 69 70 74>, ], @@ -29708,7 +29916,7 @@ exports[`commandBuffer returns all commands by default 1`] = ` ], [ Buffer<7a 72 61 6e 6b>, - 3, + -3, [ Buffer<72 65 61 64 6f 6e 6c 79>, Buffer<66 61 73 74>, @@ -30110,7 +30318,7 @@ exports[`commandBuffer returns all commands by default 1`] = ` ], [ Buffer<7a 72 65 76 72 61 6e 6b>, - 3, + -3, [ Buffer<72 65 61 64 6f 6e 6c 79>, Buffer<66 61 73 74>, diff --git a/test/integration/commands/__snapshots__/config.js.snap b/test/integration/commands/__snapshots__/config.js.snap index cd11cd58a..f0e1c6dca 100644 --- a/test/integration/commands/__snapshots__/config.js.snap +++ b/test/integration/commands/__snapshots__/config.js.snap @@ -14,7 +14,7 @@ exports[`config help prints a list over available subcommands 1`] = ` "REWRITE", " Rewrite the configuration file.", "HELP", - " Prints this help.", + " Print this help.", ] `; @@ -73,7 +73,7 @@ exports[`configBuffer help prints a list over available subcommands 1`] = ` 69 6f 6e 20 66 69 6c 65 2e >, Buffer<48 45 4c 50>, - Buffer<20 20 20 20 50 72 69 6e 74 73 20 74 68 69 73 20 68 65 6c 70 2e>, + Buffer<20 20 20 20 50 72 69 6e 74 20 74 68 69 73 20 68 65 6c 70 2e>, ] `; diff --git a/test/integration/commands/__snapshots__/info.js.snap b/test/integration/commands/__snapshots__/info.js.snap index 14baf3db7..4c736550b 100644 --- a/test/integration/commands/__snapshots__/info.js.snap +++ b/test/integration/commands/__snapshots__/info.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`info should return default info with CRLF 1`] = `"redis_version:7.0.12"`; +exports[`info should return default info with CRLF 1`] = `"redis_version:7.2.0"`; exports[`info should return enough info to be useful 1`] = ` [ @@ -419,11 +419,11 @@ exports[`info should return enough info to be useful 1`] = ` `; exports[`info should return the Redis version number used during end-to-end testing 1`] = ` -"redis_version:7.0.12 +"redis_version:7.2.0 " `; -exports[`infoBuffer should return default info with CRLF 1`] = `"redis_version:7.0.12"`; +exports[`infoBuffer should return default info with CRLF 1`] = `"redis_version:7.2.0"`; exports[`infoBuffer should return enough info to be useful 1`] = ` [ @@ -842,6 +842,6 @@ exports[`infoBuffer should return enough info to be useful 1`] = ` `; exports[`infoBuffer should return the Redis version number used during end-to-end testing 1`] = ` -"redis_version:7.0.12 +"redis_version:7.2.0 " `; diff --git a/test/integration/commands/__snapshots__/lolwut.js.snap b/test/integration/commands/__snapshots__/lolwut.js.snap index 2b3a6c93b..cf6bee9a4 100644 --- a/test/integration/commands/__snapshots__/lolwut.js.snap +++ b/test/integration/commands/__snapshots__/lolwut.js.snap @@ -1,8 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`lolwut should return Redis version by default 1`] = ` -"Redis ver. 7.0.12 +"Redis ver. 7.2.0 " `; -exports[`lolwutBuffer should return Redis version by default 1`] = `Buffer<52 65 64 69 73 20 76 65 72 2e 20 37 2e 30 2e 31 32 0a>`; +exports[`lolwutBuffer should return Redis version by default 1`] = `Buffer<52 65 64 69 73 20 76 65 72 2e 20 37 2e 32 2e 30 0a>`; diff --git a/test/integration/commands/__snapshots__/object.js.snap b/test/integration/commands/__snapshots__/object.js.snap index 7433f3514..f81f67cce 100644 --- a/test/integration/commands/__snapshots__/object.js.snap +++ b/test/integration/commands/__snapshots__/object.js.snap @@ -4,11 +4,11 @@ exports[`object encoding returns the internal encoding for the Redis object 1`] exports[`object encoding returns the internal encoding for the Redis object 2`] = `"int"`; -exports[`object encoding returns the internal encoding for the Redis object 3`] = `"quicklist"`; +exports[`object encoding returns the internal encoding for the Redis object 3`] = `"listpack"`; exports[`object encoding returns the internal encoding for the Redis object 4`] = `"intset"`; -exports[`object encoding returns the internal encoding for the Redis object 5`] = `"hashtable"`; +exports[`object encoding returns the internal encoding for the Redis object 5`] = `"listpack"`; exports[`object encoding returns the internal encoding for the Redis object 6`] = `"listpack"`; @@ -24,11 +24,11 @@ exports[`objectBuffer encoding returns the internal encoding for the Redis objec exports[`objectBuffer encoding returns the internal encoding for the Redis object 2`] = `Buffer<69 6e 74>`; -exports[`objectBuffer encoding returns the internal encoding for the Redis object 3`] = `Buffer<71 75 69 63 6b 6c 69 73 74>`; +exports[`objectBuffer encoding returns the internal encoding for the Redis object 3`] = `Buffer<6c 69 73 74 70 61 63 6b>`; exports[`objectBuffer encoding returns the internal encoding for the Redis object 4`] = `Buffer<69 6e 74 73 65 74>`; -exports[`objectBuffer encoding returns the internal encoding for the Redis object 5`] = `Buffer<68 61 73 68 74 61 62 6c 65>`; +exports[`objectBuffer encoding returns the internal encoding for the Redis object 5`] = `Buffer<6c 69 73 74 70 61 63 6b>`; exports[`objectBuffer encoding returns the internal encoding for the Redis object 6`] = `Buffer<6c 69 73 74 70 61 63 6b>`; diff --git a/test/integration/commands/__snapshots__/scan.js.snap b/test/integration/commands/__snapshots__/scan.js.snap index 5a53da334..15e2dae3a 100644 --- a/test/integration/commands/__snapshots__/scan.js.snap +++ b/test/integration/commands/__snapshots__/scan.js.snap @@ -10,6 +10,8 @@ exports[`scan should return null array if nothing in db 1`] = ` exports[`scanBuffer should return null array if nothing in db 1`] = ` [ Buffer<30>, - [], + [ + Buffer<62 61 72>, + ], ] `;