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
changes/11/38111/1
Flaviu Mates 6 years ago
parent 7b1ca6a281
commit 52f1024a4e

@ -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"));

Loading…
Cancel
Save