perl-based tests against stock test data on running system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I think I want to add more examples before pullrequesting this, but here's what I have so far:
collab/
http://
opensrf@
perl Build.PL --destdir || make -s build-perl-fail
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'OpenILS' version '2.4'
./Build test --test_files live_t || make -s build-perl-fail
live_t/00-simple.t ....... ok
live_t/01-auth.t ......... ok
live_t/
All tests successful.
Files=3, Tests=20, 4 wallclock secs ( 0.13 usr 0.07 sys + 1.88 cusr 0.31 csys = 2.39 CPU)
Result: PASS
and
opensrf@
00-simple.t .......
1..2
ok 1 - open-ils.
ok 2 - User with id = 1 is admin user
ok
01-auth.t .........
1..4
# authtoken is 87a774500605a34
# authtime is 7200
ok 1 - Have an authtoken
ok 2 - Default authtime for staff login is 7200 seconds
ok 3 - Can retrieve authtoken from memcached
ok 4 - Authtoken is removed from memcached after logout
ok
02-simple_circ.t ..
1..14
ok 1 - open-ils.
ok 2 - User with id = 1 is admin
ok 3 - open-ils.
ok 4 - Item with id = 310 has barcode CONC70000345
ok 5 - Item with id = 310 has status of Reshelving or Available
# authtoken is 903928330fadc40
# authtime is 7200
ok 6 - Have an authtoken
ok 7 - Registered a new workstation
# authtoken is db8af84d622e2e8
# authtime is 7200
ok 8 - Have an authtoken associated with the workstation
ok 9 - Checkout request returned an object
ok 10 - Checkout returned a SUCCESS event
ok 11 - Item with id = 310 has status of Checked Out after fresh Storage request
ok 12 - Checkin request returned an object
ok 13 - Checkin returned a SUCCESS event
ok 14 - Item with id = 310 has status of Reshelving or Available after fresh Storage request
ok
All tests successful.
Files=3, Tests=20, 4 wallclock secs ( 0.04 usr 0.03 sys + 1.73 cusr 0.30 csys = 2.10 CPU)
Result: PASS
Changed in evergreen: | |
assignee: | nobody → Jason Etheridge (phasefx) |
status: | New → In Progress |
Changed in evergreen: | |
milestone: | none → 2.5.0-alpha1 |
Changed in evergreen: | |
milestone: | 2.5.0-alpha1 → 2.5.0-alpha2 |
Changed in evergreen: | |
milestone: | 2.5.0-alpha2 → 2.5.0-beta1 |
Changed in evergreen: | |
milestone: | 2.5.0-beta1 → 2.5.0-rc |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
I'm going to go ahead and add a pullrequest to this. I have more tests coming, but I can push a new branch/ticket for them. There are also two tickets/branches that silence some warnings that these tests manage to trigger:
https:/ /bugs.launchpad .net/evergreen/ +bug/1207425
and
https:/ /bugs.launchpad .net/opensrf/ +bug/1207464