Lines 67-73
subtest 'import record matches tests' => sub {
Link Here
|
67 |
|
67 |
|
68 |
# Unauthorized attempt to update |
68 |
# Unauthorized attempt to update |
69 |
my $tx = $t->ua->build_tx( |
69 |
my $tx = $t->ua->build_tx( |
70 |
PUT => "/api/v1/import/".$match_1->import_record->import_batch_id."/records/".$match_1->import_record_id."/matches/chosen"=> |
70 |
PUT => "/api/v1/import_batches/".$match_1->import_record->import_batch_id."/records/".$match_1->import_record_id."/matches/chosen"=> |
71 |
json => { |
71 |
json => { |
72 |
candidate_match_id => $match_1->candidate_match_id |
72 |
candidate_match_id => $match_1->candidate_match_id |
73 |
} |
73 |
} |
Lines 79-85
subtest 'import record matches tests' => sub {
Link Here
|
79 |
|
79 |
|
80 |
# Invalid attempt to allow match on a non-existent record |
80 |
# Invalid attempt to allow match on a non-existent record |
81 |
$tx = $t->ua->build_tx( |
81 |
$tx = $t->ua->build_tx( |
82 |
PUT => "/api/v1/import/".$del_import_batch_id."/records/".$del_match_id."/matches/chosen" => |
82 |
PUT => "/api/v1/import_batches/".$del_import_batch_id."/records/".$del_match_id."/matches/chosen" => |
83 |
json => { |
83 |
json => { |
84 |
candidate_match_id => $match_1->candidate_match_id |
84 |
candidate_match_id => $match_1->candidate_match_id |
85 |
} |
85 |
} |
Lines 94-100
subtest 'import record matches tests' => sub {
Link Here
|
94 |
|
94 |
|
95 |
# Valid, authorised update |
95 |
# Valid, authorised update |
96 |
$tx = $t->ua->build_tx( |
96 |
$tx = $t->ua->build_tx( |
97 |
PUT => "/api/v1/import/".$match_1->import_record->import_batch_id."/records/".$match_1->import_record_id."/matches/chosen" => |
97 |
PUT => "/api/v1/import_batches/".$match_1->import_record->import_batch_id."/records/".$match_1->import_record_id."/matches/chosen" => |
98 |
json => { |
98 |
json => { |
99 |
candidate_match_id => $match_1->candidate_match_id |
99 |
candidate_match_id => $match_1->candidate_match_id |
100 |
} |
100 |
} |
Lines 111-117
subtest 'import record matches tests' => sub {
Link Here
|
111 |
|
111 |
|
112 |
# Valid unsetting |
112 |
# Valid unsetting |
113 |
$tx = $t->ua->build_tx( |
113 |
$tx = $t->ua->build_tx( |
114 |
DELETE => "/api/v1/import/".$match_1->import_record->import_batch_id."/records/".$match_1->import_record_id."/matches/chosen" => |
114 |
DELETE => "/api/v1/import_batches/".$match_1->import_record->import_batch_id."/records/".$match_1->import_record_id."/matches/chosen" => |
115 |
json => { |
115 |
json => { |
116 |
} |
116 |
} |
117 |
); |
117 |
); |
118 |
- |
|
|