From d88a84993ed673ebd5425f40d5f0605ca799fd95 Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 5 Nov 2024 22:01:46 +0700 Subject: [PATCH] Updated tests --- .../Endpoints/Nodes/VariablesTest.php | 77 +++++++------------ 1 file changed, 26 insertions(+), 51 deletions(-) diff --git a/test/Manticoresearch/Endpoints/Nodes/VariablesTest.php b/test/Manticoresearch/Endpoints/Nodes/VariablesTest.php index 2cbddb7b..6face3fc 100644 --- a/test/Manticoresearch/Endpoints/Nodes/VariablesTest.php +++ b/test/Manticoresearch/Endpoints/Nodes/VariablesTest.php @@ -18,57 +18,32 @@ public function testVariables() { $keys = array_keys($response); sort($keys); - // Adding extra try-catch to provide compatibility with previous Manticore versions - try { - $this->assertEquals( - [ - 'accurate_aggregation', - 'auto_optimize', - 'autocommit', - 'character_set_client', - 'character_set_connection', - 'collation_connection', - 'distinct_precision_threshold', - 'grouping_in_utc', - 'last_insert_id', - 'log_level', - 'max_allowed_packet', - 'optimize_cutoff', - 'pseudo_sharding', - 'query_log_format', - 'secondary_indexes', - 'session_read_only', - 'thread_stack', - 'threads_ex', - 'threads_ex_effective', - 'timezone', - ], $keys - ); - } catch (\PHPUnit\Framework\ExpectationFailedException $e) { - $this->assertEquals( - [ - 'accurate_aggregation', - 'auto_optimize', - 'autocommit', - 'character_set_client', - 'character_set_connection', - 'collation_connection', - 'distinct_precision_threshold', - 'grouping_in_utc', - 'last_insert_id', - 'log_level', - 'max_allowed_packet', - 'optimize_cutoff', - 'pseudo_sharding', - 'query_log_format', - 'secondary_indexes', - 'session_read_only', - 'thread_stack', - 'threads_ex', - 'threads_ex_effective', - ], $keys - ); - } + $this->assertEquals( + [ + 'accurate_aggregation', + 'auto_optimize', + 'autocommit', + 'character_set_client', + 'character_set_connection', + 'cluster_user', + 'collation_connection', + 'distinct_precision_threshold', + 'grouping_in_utc', + 'last_insert_id', + 'log_level', + 'max_allowed_packet', + 'optimize_cutoff', + 'pseudo_sharding', + 'query_log_format', + 'secondary_indexes', + 'session_read_only', + 'thread_stack', + 'threads_ex', + 'threads_ex_effective', + 'timezone', + 'user', + ], $keys + ); } public function testVariablesWithPattern() {