6 -- 99999393000: not found (user does not exist)
7 -- 99999393001: expired
8 -- 99999393002: deleted
11 -- 99999393005: inactive
12 -- 99999393100: external
15 'SELECT * FROM config.remoteauth_profile WHERE enabled IS TRUE AND name = ''Basic''',
16 'Basic HTTP authentication is enabled'
20 (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393000'))),
22 'Confirm remoteauth test for nonexistent patron'
26 (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393001'))),
28 'Confirm remoteauth test for expired patron'
32 (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393002'))),
34 'Confirm remoteauth test for deleted patron'
38 (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393003'))),
40 'Confirm remoteauth test for barred patron'
44 (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393004'))),
46 'Confirm remoteauth test for valid patron'
50 (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393005'))),
52 'Confirm remoteauth test for inactive patron'
56 (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393100'))),
58 'Confirm remoteauth test for external patron'
61 -- Finish the tests and clean up.
62 SELECT * FROM finish();