From b1b0b71f796a0b172c6c37b4820b375673b0ddfe Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 24 Dec 2021 17:26:28 +0300 Subject: [PATCH] tests(integration): add push with locale test --- tests/push_command.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/push_command.rs b/tests/push_command.rs index 06c35b5..7032368 100644 --- a/tests/push_command.rs +++ b/tests/push_command.rs @@ -15,3 +15,21 @@ fn should_push_new_object_to_sonic() { flush_collection(COLLECTION); } + +#[test] +fn should_push_new_object_to_sonic_with_russian_locale() { + let ingest_channel = ingest_start(); + + match ingest_channel.push_with_locale( + COLLECTION, + BUCKET, + "1", + "Открытый пирог с орехами и сгущенкой", + "rus", + ) { + Ok(res) => assert!(res), + Err(_) => unreachable!(), + } + + flush_collection(COLLECTION); +}