Thanks,

I red the WorkspaceTest.java and understand more the trouble. The test doesn't consider workspaces.yaml declarations to produce its client request when it's run. I think no tool or no part of Geoserver use the content of the yaml rest config files at the moment.

This is why I wasn't able to find after Geoserver startup :
   http://localhost:8080/geoserver/swagger-ui.html giving REST html documentation.    http://localhost:8080/geoserver/v3/api-docs giving Open Api json output for swagger/open api client generation.

and I was expecting finding them, because they might change between Geoserver application versions (for example : yaml will change from 1.8.2 to 1.9.x if my correction is applied.
    If yaml are kept on blob/master/doc/en/api and maintained only there,
https://github.com/geoserver/geoserver/blob/master/doc/en/api/1.0.0/workspaces.yaml would lead to versions from 1.2.0 to 1.8.2 and https://github.com/geoserver/geoserver/blob/master/doc/en/api/1.0.1/workspaces.yaml to 1.9.0 and later ?
    It's hard to stand).

For testing, I need a separate and new intergration test.
Do those run with a remoteOwsTests or a restconfig maven profile ?

I would then wrote a simple test :
    1. Generate client classes from workspace.yaml file at test-compile time (when tests are ran under the maven profile required) :
    2. Start intergration instance ot Geoserver : are they easy to start ?
    3. Call it through the client test code.

Marc.

On 07/02/2021 00:04, Brad Hards wrote:
I'm not following this 100% (not very familiar with this part of the cde), but 
if I got what you are looking for:

https://github.com/geoserver/geoserver/blob/master/doc/en/api/1.0.0/workspaces.yaml

I guess the test would go into WorkspaceTest:

https://github.com/geoserver/geoserver/blob/master/src/restconfig/src/test/java/org/geoserver/rest/catalog/WorkspaceTest.java

although if its very complex or needs unique setup, you could create a new Test 
in that area.

Brad





_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to