0.1 and 0.2 merged script report

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


On 02/07/2017 01:29 PM, Thomas Sødring wrote:
> Hi,
>
> I hope (fingers crossed) that the 0.1 branch has been merged into 0.2 .
> This means that all the fixes for 0.1 that the test script was finding
> should now be available in 0.2. 0.2 expects a running elasticsearch
> instance. See readme notes on the required version of elasticsearch.
>
> Once data is persisted now it is available in both the database and
> elasticsearch. So you can query elasticsearch if you want to play around
> with Noark and elasticsearch.
>
> Somehow I expect a few bug reports :) I am learning git at the moment so
> hopefully I haven't broken anything!
>
> I tried to test it via the test script Petter wrote, but I'm getting
> errors when I run. I'll post an own message about that.
>
>  - Tom
> _______________________________________________
> nikita-noark mailing list
> nikita-noark at nuug.no
> https://lists.nuug.no/mailman/listinfo/nikita-noark

I was missing a module to run the script, although the script runs, it
bombs out at the end. This might be because the ny-arkiv call is now
returning a number of links. There might be a format problem here or
something similar. Maybe Petter can check it when he has time.


success: level 0 CORS - HTTP OPTTIONS request worked
failure: level 0 XML - unable to GET content for base.
success: level 0 JSON - found base
success: level 0 JSON - correct content-type for base
success: level 0 JSON - found _links in json response
success: able to log in using admin/password
recursively discovering standard URLs from the top
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url .
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/ should be
well known
success: rel http://rel.kxml.no/noark5/v4/api/sakarkiv/ should be well known
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkivskaper/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/mappe/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/klasse/
should be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/basisregistrering/ should
be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/klassifikasjonssystem/
should be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentobjekt/ should be
well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkiv/
should be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentbeskrivelse/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkivdel/
should be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/registrering/ should be
well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-arkiv/
should be well known
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/sakarkiv/
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/klassifikasjonssystem/
should be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/basisregistrering/ should
be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-arkiv/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkiv/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkivdel/
should be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentbeskrivelse/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/mappe/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkivskaper/
should be well known
success: rel http://rel.kxml.no/noark5/v4/api/arkivstruktur/klasse/
should be well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentobjekt/ should be
well known
success: rel
http://rel.kxml.no/noark5/v4/api/arkivstruktur/registrering/ should be
well known
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/arkivskaper/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/mappe/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/klasse/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/basisregistrering/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/klassifikasjonssystem/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentobjekt/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/arkiv/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentbeskrivelse/
success: MIME type application/vnd.noark5-v4+json;charset=UTF-8 should
be application/vnd.noark5-v4+json for url
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/registrering/
failure: unable to GET
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/ny-arkiv
success: found .
success: found http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/arkiv/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/arkivskaper/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/basisregistrering/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentbeskrivelse/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentobjekt/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/klasse/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/klassifikasjonssystem/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/mappe/
success: found
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/registrering/
success: found http://localhost:8092/noark5v4/hateoas-api/sakarkiv/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkiv/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/arkiv/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkivdel/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkivskaper/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/arkivskaper/
mapping
http://rel.kxml.no/noark5/v4/api/arkivstruktur/basisregistrering/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/basisregistrering/
mapping
http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentbeskrivelse/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentbeskrivelse/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentobjekt/
to http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentobjekt/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/klasse/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/klasse/
mapping
http://rel.kxml.no/noark5/v4/api/arkivstruktur/klassifikasjonssystem/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/klassifikasjonssystem/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/mappe/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/mappe/
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-arkiv/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/ny-arkiv
mapping http://rel.kxml.no/noark5/v4/api/arkivstruktur/registrering/ to
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/registrering/
mapping http://rel.kxml.no/noark5/v4/api/sakarkiv/ to
http://localhost:8092/noark5v4/hateoas-api/sakarkiv/
success: created fond
success: fond creationg returned HTTP code 201
success: _links in response from fond creation should include 'self'
reference
success: _links in response from fond creation include
'http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-arkivdel/' reference
57 successes, 2 failures
Traceback (most recent call last):
  File "./runtest", line 333, in <module>
    main()
  File "./runtest", line 330, in main
    t.runtests()
  File "./runtest", line 324, in runtests
    self.testNewDocument()
  File "./runtest", line 219, in testNewDocument
    createseriesurl = linkrefs[createserierel]
NameError: global name 'createserierel' is not defined



More information about the nikita-noark mailing list