$user->PrincipalObj->GrantRight( Right => 'ModifyAsset' );
178
178
181
181
'Authorization' => $auth,
182
182
);
183
183
is($res->code, 200);
184
is_deeply($mech->json_response, ["Asset Asset update using REST: Name changed from 'Asset creation using REST' to 'Asset update using REST'", "Asset Asset update using REST: Status changed from 'new' to 'allocated'"]);
184
is_deeply($mech->json_response, ["Asset 1: Name changed from 'Asset creation using REST' to 'Asset update using REST'", "Asset 1: Status changed from 'new' to 'allocated'"]);