Koha/C4/SIP/t
Joe Atzberger d24d147831 bug 3435: SIP2 - 3M extension for SmartChute checkin.
Implement the optional fields: CR CS CT CV CY and DA.
Also silenced some outstanding debugging print statements.
Consolidated similar accesseor subs in Patron.pm to use x_items.
Adjust SIP tests to specify correct AP (location).  Add a 3rd item
to SIPtext.pm for later use.

Note CT (destination) is currently populated with destination branch code.
We can adjust that to be destination branch name, or some combination in
a subsequent patch if necessary.

This work was sponsored by the Northeast Kansas Library system.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-07-30 11:06:53 -04:00
..
000_sc_config_auth.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
00sc_status.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
01patron_status.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
02patron_info.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
03checkout.t bug 3435: SIP2 - 3M extension for SmartChute checkin. 2009-07-30 11:06:53 -04:00
04patron_status.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
05block_patron.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
06patron_enable.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
07hold.t bug 3435: SIP2 - 3M extension for SmartChute checkin. 2009-07-30 11:06:53 -04:00
08checkin.t bug 3435: SIP2 - 3M extension for SmartChute checkin. 2009-07-30 11:06:53 -04:00
09renew.t bug 3435: SIP2 - 3M extension for SmartChute checkin. 2009-07-30 11:06:53 -04:00
10renew_all.t bug 3435: SIP2 - 3M extension for SmartChute checkin. 2009-07-30 11:06:53 -04:00
11item_info.t SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
Makefile SIP/t - test files adapted, supplemented, expanded. Note: requires matching data to be loaded. 2008-06-05 22:43:24 -05:00
README adding openncip / opensip SIP2 service 2007-11-06 06:32:53 -06:00
SIPtest.pm bug 3435: SIP2 - 3M extension for SmartChute checkin. 2009-07-30 11:06:53 -04:00

CONFIGURING THE TEST SUITE

Before you can run the test suite, you need to configure certain
information about the SIP server and the ILS data in the file
SIPtest.pm.

RUNNING THE TESTS

Every file tests a different protocol transaction.
Unfortunately, a lot of test cases are missing, but the basics
are tested, as are most of the simple error conditions (invalid
users, unknown items, checking in item that's not checked out).

To run a single test, just run

   perl -I.. <file>

If the test fails, the output should be pretty clear about what
went wrong (assuming you can read raw SIP packets).

To run all the tests, just type

   make test

Right now, that will run tests for functionality that isn't
supported in the Evergreen environment (the two main cases are
enable patron and hold management).  To run just the Evergreen tests, use

       make test-openils

which will run just the tests

	00sc_status.t
	01patron_status.t
	02patron_info.t
	03checkout.t
	06patron_enable.t
	08checkin.t
	09renew.t
	11item_info.t
	05block_patron.t

NOTE: the Block Patron tests are run last because "Patron Enable"
isn't supported.  Thus, after running the "Block Patron" test,
manual intervention is required to unblock the test patron.

The Renew All tests will fail when running the stub "ILS"
implementation unless there's only one ILS server running.  This
won't be a problem for any real backend implementation that
properly manages the database of users and items.