From: Jason Etheridge Date: Mon, 28 Nov 2022 04:01:30 +0000 (-0500) Subject: making tests and data align X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=14fc46c8496a70ffd2eeea5e1ead05e6fa191f11;p=working%2FSIPServer.git making tests and data align Signed-off-by: Jason Etheridge --- diff --git a/t/17extensions.t b/t/17extensions.t index 9d9b2a5..325ca36 100755 --- a/t/17extensions.t +++ b/t/17extensions.t @@ -79,6 +79,19 @@ my $item2_on_hold_info_test_template = { id => 'Item Information: check information for item on hold', msg => "1720060110 215612AO$instid|AB$item2_on_hold_barcode|", pat => qr/^18100201$datepat/, # status of 'in transit between library locations' + #^01^other + #|02|on order + # 03 available + # 04 charged + # 05 charged; not to be recalled until earliest recall date + # 06 in process + # 07 recalled + # 08 waiting on hold shelf + # 09 waiting to be re-shelved + # 10 in transit between library locations + # 11 claimed returned + # 12 lost + # 13 missing fields => [ { field => FID_ITEM_ID, pat => qr/^$item2_on_hold_barcode$/, @@ -231,7 +244,7 @@ sub create_amh_sorting_extension_tests { $test->{id} = "Item Info destination location extension"; push @{$test->{fields}}, { field => FID_DESTINATION_LOCATION, - pat => qr/^BM1$/o, + pat => qr/^BR4$/o, just_warn => 1, required => 1, }; push @tests, $test; @@ -275,7 +288,7 @@ sub create_maybe_deprecated_extension_tests { # No need to check this out; we should have a transit for it push @{$test->{fields}}, { field => FID_DESTINATION_LOCATION, - pat => qr/^BM1$/o, + pat => qr/^BR4$/o, just_warn => 1, required => 1, }; push @tests, $test; diff --git a/t/augment_concerto.sql b/t/augment_concerto.sql index a0cc09e..2f3a23b 100644 --- a/t/augment_concerto.sql +++ b/t/augment_concerto.sql @@ -35,11 +35,14 @@ INSERT INTO asset.stat_cat_entry(stat_cat, owner, value) INSERT INTO asset.stat_cat_entry_copy_map (stat_cat, stat_cat_entry, owning_copy) VALUES (1, 2, 2003); -INSERT INTO action.hold_transit_copy (source_send_time, target_copy, source, dest, copy_status, persistant_transfer, hold) - VALUES (NOW(), 317, 4, 9, 0, 'f', 158); +INSERT INTO action.transit_copy (source_send_time, target_copy, source, dest, copy_status, persistant_transfer) + VALUES (NOW(), 317, 4, 7, 0, 'f'); -UPDATE action.hold_request SET phone_notify = '555-5555', pickup_lib = 4, request_lib = 4, selection_ou = 4 WHERE id = 254; -UPDATE asset.copy SET circ_lib = 4 WHERE id = 485; -INSERT INTO action.hold_copy_map (hold, target_copy, proximity) VALUES (254, 485, 0); +UPDATE action.hold_request SET phone_notify = '555-5555', pickup_lib = 7, request_lib = 7, selection_ou = 7 WHERE id = 254; +UPDATE asset.copy SET status = 6, circ_lib = 7 WHERE id = 317; -- in transit + +INSERT INTO action.hold_copy_map (hold, target_copy, proximity) VALUES (254, 485, 0); -- item3_on_hold_barcode +INSERT INTO action.hold_copy_map (hold, target_copy, proximity) values (158, 317, 0); -- item2_on_hold_barcode +INSERT INTO action.hold_copy_map (hold, target_copy, proximity) values (154, 310, 0); -- item on_hold_barcode COMMIT;