Skip to content

Commit

Permalink
Pulling changes from redis-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Dec 21, 2023
1 parent 50a944a commit dc86d5b
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions babushka-core/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[env]
BABUSHKA_NAME = "Babushka" # This should be overwritten by each wrapper library.
BABUSHKA_VERSION = "0.1.0"
GLIDE_NAME = "Glide" # This should be overwritten by each wrapper library.
GLIDE_VERSION = "0.1.0"
1 change: 1 addition & 0 deletions babushka-core/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pub(super) fn get_redis_connection_info(
username: chars_to_string_option(&info.username),
password: chars_to_string_option(&info.password),
use_resp3,
client_name: None,
},
None => redis::RedisConnectionInfo {
db: database_id as i64,
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/rust/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[env]
BABUSHKA_NAME = "Babushka" # This should be overwritten by each wrapper library.
BABUSHKA_VERSION = "0.1.0"
GLIDE_NAME = "Glide" # This should be overwritten by each wrapper library.
GLIDE_VERSION = "0.1.0"
4 changes: 2 additions & 2 deletions csharp/lib/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[env]
BABUSHKA_NAME = { value = "BabushkaC#", force = true }
BABUSHKA_VERSION = "0.1.0"
GLIDE_NAME = { value = "GlideC#", force = true }
GLIDE_VERSION = "0.1.0"
4 changes: 2 additions & 2 deletions java/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[env]
BABUSHKA_NAME = { value = "javababushka", force = true }
BABUSHKA_VERSION = "0.1.0"
GLIDE_NAME = { value = "GlideJava", force = true }
GLIDE_VERSION = "0.1.0"
4 changes: 2 additions & 2 deletions node/rust-client/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[env]
BABUSHKA_NAME = { value = "BabushkaJS", force = true }
BABUSHKA_VERSION = "0.1.0"
GLIDE_NAME = { value = "GlideJS", force = true }
GLIDE_VERSION = "0.1.0"
6 changes: 3 additions & 3 deletions node/tests/SharedTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function runBaseTests<Context>(config: {

const result = await client.customCommand("CLIENT", ["INFO"]);

expect(result).toContain("lib-name=BabushkaJS");
expect(result).toContain("lib-name=GlideJS");
expect(result).toContain("lib-ver=0.1.0");
});
},
Expand Down Expand Up @@ -245,15 +245,15 @@ export function runBaseTests<Context>(config: {
expect(
Number(
parseInfoResponse(getFirstResult(OldResult).toString())[
"total_commands_processed"
"total_commands_processed"
]
)
).toBeGreaterThan(1);
expect(await client.configResetStat()).toEqual("OK");
const result = await client.info([InfoOptions.Stats]);
expect(
parseInfoResponse(getFirstResult(result).toString())[
"total_commands_processed"
"total_commands_processed"
]
).toEqual("1");
});
Expand Down
4 changes: 2 additions & 2 deletions python/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[env]
BABUSHKA_NAME = { value = "BabushkaPy", force = true }
BABUSHKA_VERSION = "0.1.0"
GLIDE_NAME = { value = "GlidePy", force = true }
GLIDE_VERSION = "0.1.0"
2 changes: 1 addition & 1 deletion python/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def test_register_client_name_and_version(self, redis_client: TRedisClient
return pytest.mark.skip(reason=f"Redis version required >= {min_version}")
info = await redis_client.custom_command(["CLIENT", "INFO"])
assert type(info) is str
assert "lib-name=BabushkaPy" in info
assert "lib-name=GlidePy" in info
assert "lib-ver=0.1.0" in info

@pytest.mark.parametrize("cluster_mode", [True, False])
Expand Down

0 comments on commit dc86d5b

Please sign in to comment.