From e403354cf6acce5087ec4486e93a4c0844f0e80a Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Tue, 29 Mar 2022 16:19:04 +0200 Subject: [PATCH] TT#168050 fix allowed_cli check for duplicates - update testcase Change-Id: I618bf88a9e2d3e050772ddb392e517ed3d4392fd --- t/api-rest/api-preferences.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/api-rest/api-preferences.t b/t/api-rest/api-preferences.t index 71956fe87a..a7af62686f 100644 --- a/t/api-rest/api-preferences.t +++ b/t/api-rest/api-preferences.t @@ -153,9 +153,7 @@ foreach my $api (@apis){ {'op' => 'add', 'path' => '/allowed_clis', value => $addmulti_value, mode => 'append' }, ]; ($res, $preferences_put->{content}) = $test_machine->request_patch($preferences_patch_op,$preferences->{uri}); - $test_machine->http_code_msg(200, "check extended patch result: add multi to absent", $res, $preferences_put->{content}); - (undef, $preferences_new->{content}) = $test_machine->check_item_get($preferences->{uri}); - is_deeply([@{$preferences_new->{content}->{allowed_clis}}[-4..-1]], $addmulti_value, "check patched allowed_clis: add multi to absent"); + $test_machine->http_code_msg(422, "check extended patch result: add multi to absent", $res, $preferences_put->{content}); $addmulti_value = ['444','555','666','777','888']; $preferences_patch_op = [