Bug 18014: Add test to AuthoritiesMarc.t to expose problem in AddAuthority
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 31 Jan 2017 08:11:05 +0000 (09:11 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 14 Feb 2017 14:01:10 +0000 (14:01 +0000)
commit24ac8392b39ac82b528cb931e97c19c0e582fbf8
tree996d702735399f55642519b179ec8d8ec51c5c82
parentac004aa63ec4dfbb73329d150ef6b32ac8ea5e87
Bug 18014: Add test to AuthoritiesMarc.t to expose problem in AddAuthority

Since AddAuthority uses max(id)+1 logic to produce the next authid,
authority id's will be reused when you delete the last record. This may
be a source of problems and will be addressed on the next patch.

This patch add a test to expose the problem.

Test plan:
[1] Run t/db_dependent/AuthoritiesMarc.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/AuthoritiesMarc.t