Test result from my runtest script for Nikita and n5test

Thomas Sødring thomas.sodring at hioa.no
Tue Feb 7 08:13:16 CET 2017


When I get all the Hateoas links in place I'll try the script. At some
point we need to support XML when extracting the data out of the core. I
think that is probably the right time to do the XML stuff.

One comment:

 GET http://127.0.0.1:8092/noark5v4/hateoas-api/arkivstruktur/ny-arkiv

Shouldn't 'ny-arkiv' only be called with a POST?

But all-in-all, thatæ's a decent response for something that's under
development!

 - Tom

On 02/07/2017 06:59 AM, Petter Reinholdtsen wrote:
> Here is the latest result from my test script:
>
> % ./runtest |grep failu
> failure: level 0 XML - unable to GET content for base.
> failure: unable to GET http://127.0.0.1:8092/noark5v4/hateoas-api/arkivstruktur/ny-arkiv
> failure: _links in response from fond creation should include 'self' reference
> failure: _links in response from fond creation missing 'http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-arkivdel' reference
> failure: _links in response from serie creation should include 'self' reference
> failure: _links in response from serie creation missing 'http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-mappe/' reference
> failure: _links in response from file creation should include 'self' reference
> failure: _links in response from file creation missing 'http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-mappe/' reference
> failure: _links in response from record creation should include 'self' reference
> failure: _links in response from record creation missing 'http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-registrering/' reference
> failure: _links in response from docdesc creation should include 'self' reference
> failure: _links in response from docdesc creation missing 'http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-dokumentobjekt/' reference
> failure: _links in response from docobj creation should include 'self' reference
> 60 successes, 13 failures
> %
>
> Quite a lot of successful tests, most of them are verifying the content
> found while recursively following _links.
>
> To test yourself, fetch using
> 'got clone https://github.com/petterreinholdtsen/noark5-tester'
> and run ./runtest
>



More information about the nikita-noark mailing list