TT#168050 fix allowed_cli check for duplicates - update testcase

Change-Id: I618bf88a9e2d3e050772ddb392e517ed3d4392fd
mr10.4
Rene Krenn 3 years ago
parent 4e7e55189c
commit e403354cf6

@ -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 = [

Loading…
Cancel
Save