[GeoNetwork-devel] Test servers for harvesters

Hi,

I am trying to make some tests for geonetwork harvesters, as I see we have none. For other geonetworks and CSW I can use GN itself but, do you know other servers to make tests with? Like an ArcSDE testing server?

Regards,
María.

Is there any way you can write some unit tests that mocks the server
responses so we have some modicum of basic tests as well as integration
tests?

As for actual servers to test I am afraid I only have CSW, Webdav servers
which I am sure you already have test instances.

Jesse

On Thu, Sep 26, 2013 at 8:32 AM, Jesse Eichar
<jesse.eichar@anonymised.com> wrote:

Is there any way you can write some unit tests that mocks the server
responses so we have some modicum of basic tests as well as integration
tests?

That was my last option.

As for actual servers to test I am afraid I only have CSW, Webdav servers
which I am sure you already have test instances.

Jesse

On Thu, Sep 26, 2013 at 8:33 AM, María Arias de Reyna <delawen@anonymised.com.>wrote:

On Thu, Sep 26, 2013 at 8:32 AM, Jesse Eichar
<jesse.eichar@anonymised.com> wrote:
> Is there any way you can write some unit tests that mocks the server
> responses so we have some modicum of basic tests as well as integration
> tests?

That was my last option.

It seems to me that we should have this option as well as integration
option because tests that depend on external servers to be running are
brittle and not available online. It would be nice to have quick unit
tests as well as integration tests... That said I understand if you don't
have time for both.

On Thu, Sep 26, 2013 at 8:53 AM, Jesse Eichar
<jesse.eichar@anonymised.com> wrote:

On Thu, Sep 26, 2013 at 8:33 AM, María Arias de Reyna <delawen@anonymised.com>
wrote:

On Thu, Sep 26, 2013 at 8:32 AM, Jesse Eichar
<jesse.eichar@anonymised.com> wrote:
> Is there any way you can write some unit tests that mocks the server
> responses so we have some modicum of basic tests as well as integration
> tests?

That was my last option.

It seems to me that we should have this option as well as integration option
because tests that depend on external servers to be running are brittle and
not available online. It would be nice to have quick unit tests as well as
integration tests... That said I understand if you don't have time for
both.

Hi,

I finally gave up on testing, as I couldn't make it work right.

Here is the pull request of the code, in case you want to review it
before merging: https://github.com/geonetwork/core-geonetwork/pull/255

I tried to make work a local Jeeves instance, but it throws a null
pointer at some point. Probably because nobody has been using this
code for a long time:

private String appPath = "../web/target/geonetwork";
private String configPath = "./web/target/WEB-INF/geonetwork";
private String baseUrl = "/geonetwork";
...
LocalJeeves.init(appPath, configPath, baseUrl);

[main] FATAL jeeves.engine - Stack :
java.lang.IllegalArgumentException: ServletContext must not be null
at org.springframework.util.Assert.notNull(Assert.java:112)
at org.springframework.web.context.support.WebApplicationContextUtils.getWebApplicationContext(WebApplicationContextUtils.java:109)
at org.springframework.web.context.support.WebApplicationContextUtils.getWebApplicationContext(WebApplicationContextUtils.java:99)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:168)
at jeeves.server.local.LocalJeeves.init(LocalJeeves.java:133)

Maybe it would be good if we set up a testcase class for geonetwork,
which runs a local jeeves instance.

Regards,
María.

Hola Maria, I’m also working on the new admin interface for harvesters these days and was also looking for some online servers for testing for Thredds, OAI, Z39.50 protocols.

If anyone have some online URL for testing that would be nice.

Thanks.

Francois

···

2013/9/26 María Arias de Reyna <delawen@anonymised.com>

Hi,

I am trying to make some tests for geonetwork harvesters, as I see we have none. For other geonetworks and CSW I can use GN itself but, do you know other servers to make tests with? Like an ArcSDE testing server?

Regards,
María.


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Francois,

We have a Thredds here at http://www.metoc.gov.au/thredds

Regards,

Andrew

----- Original Message -----
From: Francois Prunayre
To: María Arias de Reyna
Cc: geonetwork-devel@anonymised.comists.sourceforge.net
Sent: Monday, September 30, 2013 4:39 PM
Subject: Re: [GeoNetwork-devel] Test servers for harvesters

Hola Maria, I’m also working on the new admin interface for harvesters these days and was also looking for some online servers for testing for Thredds, OAI, Z39.50 protocols.

If anyone have some online URL for testing that would be nice.

Thanks.

Francois

2013/9/26 María Arias de Reyna <delawen@anonymised.com>

Hi,

I am trying to make some tests for geonetwork harvesters, as I see we have none. For other geonetworks and CSW I can use GN itself but, do you know other servers to make tests with? Like an ArcSDE testing server?

Regards,
María.


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk