From 52f1024a4e8febad8073f04f659209d7372da6d6 Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Mon, 2 Mar 2020 11:55:59 +0200 Subject: [PATCH] TT#75751 - Fix API tests after adding 'enabled' setting for CFs - Add 'enabled' column to the request content to mitigate error that appeared after adding the column Change-Id: I5de3e52e7fab34c4bad8497630684f0d221f11e4 --- t/api-rest/api-journals.t | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/t/api-rest/api-journals.t b/t/api-rest/api-journals.t index 73d9159e0d..b65e82834c 100644 --- a/t/api-rest/api-journals.t +++ b/t/api-rest/api-journals.t @@ -946,19 +946,19 @@ sub test_cfmapping { $req->header('Prefer' => 'return=representation'); $req->content(JSON::to_json({ cfb => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}], + timeset => $cftimeset->{name}, enabled => 1}], cfna => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}], + timeset => $cftimeset->{name}, enabled => 1}], cft => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}], + timeset => $cftimeset->{name}, enabled => 1}], cfu => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}], + timeset => $cftimeset->{name}, enabled => 1}], cfs => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}], + timeset => $cftimeset->{name}, enabled => 1}], cfr => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}], + timeset => $cftimeset->{name}, enabled => 1}], cfo => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}], + timeset => $cftimeset->{name}, enabled => 1}], })); $res = $ua->request($req); is($res->code, 200, _get_request_test_message("PUT test cfmappings")); @@ -978,7 +978,7 @@ sub test_cfmapping { $req->header('Prefer' => 'return=representation'); $req->content(JSON::to_json( [ { op => 'replace', path => '/cfb', value => [{ destinationset => $cfdestinationset->{name}, - timeset => $cftimeset->{name}}] } ] + timeset => $cftimeset->{name}, enabled => 1}] } ] )); $res = $ua->request($req); is($res->code, 200, _get_request_test_message("PATCH test cfmappings"));