From 90adef22d4012864b8421d2a4e58191019a7006b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 3 Dec 2021 18:00:32 -0500 Subject: [PATCH] LP1952931 ASN shipment notifiation Perl Test Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/live_t/35-acq-asn-edi.t | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 Open-ILS/src/perlmods/live_t/35-acq-asn-edi.t diff --git a/Open-ILS/src/perlmods/live_t/35-acq-asn-edi.t b/Open-ILS/src/perlmods/live_t/35-acq-asn-edi.t new file mode 100755 index 0000000000..19109f7a06 --- /dev/null +++ b/Open-ILS/src/perlmods/live_t/35-acq-asn-edi.t @@ -0,0 +1,48 @@ +#!/usr/bin/perl +use strict; use warnings; +use OpenILS::Utils::TestUtils; +use OpenILS::Utils::CStoreEditor (':funcs'); +use OpenILS::Utils::Fieldmapper; + +use Test::More tests => 5; + +diag("Tests EDI Shipment Notifications"); + +use constant { + BR1_ID => 4, + BIB_ID => 248, + PROVIDER_ID => 2, + ADMIN_USER => 'admin', + ADMIN_PASS => 'demo123' +}; + +my $U = 'OpenILS::Application::AppUtils'; +my $script = OpenILS::Utils::TestUtils->new(); +$script->bootstrap; + +my $e = new_editor; +$e->init; + +$script->authenticate({ + username => ADMIN_USER, + password => ADMIN_PASS, + type => 'staff' +}); + +BAIL_OUT('Failed to Login') unless $script->authtoken; + + +sub create_po { + + my $li = Fieldmapper::acq::lineitem->new; + $li->eg_bib_id(BIB_ID); + $li->marc(' a 9780307887436'); + $li-> + + my $po = Fieldmapper::acq::purchase_order->new; + $po->ordering_agency(BR1_ID); + $po->provider(PROVIDER_ID); + $po->name("ASN-Test"); +} + + -- 2.11.0