Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix global crs codes lookup in discovery collections crs tests #254

Closed

Conversation

groldan
Copy link
Contributor

@groldan groldan commented Nov 14, 2024

  • Fix DiscoveryCollectionsStorageCrs look up of global crs
    DiscoveryCollectionsStorageCrs asserts that a /collections document complies with

    Abstract Test 3: /conf/crs/storageCrs
    Test Purpose: Verify that the storage CRS identifier is a valid value
    
    Test Method: For each collection object that includes a storageCrs property in the paths /collections and
    /collections/{collectionId}, validate that the string is also found in the crs property of the collection or, in case
    the crs property includes a value #/crs, in the global list of CRSs.
    

    but doesn't expand the collection's #/crs JSON pointer to the collections document crs list.
    This patch fixes it and adds unit tests to cover all possible cases.

  • Fix DiscoveryCollectionsDefaultCrs look up of codes in the global crs

    DiscoveryCollectionsDefaultCrs asserts that a /collections document complies with

     Abstract Test 2: /conf/crs/default-crs
     Test Purpose: Verify that the list of supported CRSs includes the default CRS.
     Requirement: /req/crs/fc-md-crs-list B
    

    but doesn't expand the collection's #/crs JSON pointer to the collections document crs list.

    This patch fixes it and adds unit tests to cover all possible cases.


Fixes #251

DiscoveryCollectionsDefaultCrs asserts that a `/collections` document
complies with

```
 Abstract Test 2: /conf/crs/default-crs
 Test Purpose: Verify that the list of supported CRSs includes the default CRS.
 Requirement: /req/crs/fc-md-crs-list B
```

but doesn't expand the collection's `#/crs` JSON pointer to the collections
document crs list.

This patch fixes it and adds unit tests to cover all possible cases.
DiscoveryCollectionsStorageCrs asserts that a `/collections` document
complies with

```
Abstract Test 3: /conf/crs/storageCrs
Test Purpose: Verify that the storage CRS identifier is a valid value

Test Method: For each collection object that includes a storageCrs property in the paths /collections and
/collections/{collectionId}, validate that the string is also found in the crs property of the collection or, in case
the crs property includes a value #/crs, in the global list of CRSs.
```

but doesn't expand the collection's `#/crs` JSON pointer to the collections
document crs list.

This patch fixes it and adds unit tests to cover all possible cases.
@groldan
Copy link
Contributor Author

groldan commented Nov 17, 2024

Closing as superseded by #255, issuing the pull request from the geoserver fork

@groldan groldan closed this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant