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

Noisy many "Tests skipped" when only some of the collections support the Features API, timeStamps #134

Closed
jerstlouis opened this issue Jan 21, 2021 · 11 comments · Fixed by #138
Assignees
Milestone

Comments

@jerstlouis
Copy link
Member

In light of the resolution of the big Collections discussion ( opengeospatial/ogcapi-common#140 ), where some of the collections of a dataset could be accessible as Features, some as Coverages, and some as both, there should probably be an "early skip" without the noise for Collections not offering "items".
e.g. if I set a max number of collections to test to 5, the first 3 are raster collections without Features that cause "Skipping test" noise in the results.
In our OpenAPI definition this is actually properly reflected, but the test still gets noisy about these.

Similar comment for Feature collections without a timeStamp property -- not all collections would be temporal or expose times...

@dstenger
Copy link
Contributor

Thank you for the input.

Can you provide a test service which is causing much noise/ is long running?

@jerstlouis
Copy link
Member Author

@dstenger http://maps.ecere.com/ogcapi with noOfCollections = 5.
It will show Skip = 45 with skip messages like:

org.testng.SkipException: Property timeStamp is not set in collection items 'NaturalEarth:cultural:ne_10m_admin_0_antarctic_claims'
org.testng.SkipException: Could not find collection with id NaturalEarth:raster:HYP_HR_SR_OB_DR in the OpenAPI document
org.testng.SkipException: Could not find url for collection with id NaturalEarth:raster:HYP_HR_SR_OB_DR supporting GeoJson (type application/geo+json)
org.testng.SkipException: Could not find a response for collection with id NaturalEarth:raster:HYP_HR_SR_OB_DR

None of the collections have time stamps, and the raster collections don't support OGC API - Features.

@ghobona
Copy link
Contributor

ghobona commented Jan 28, 2021

So in pseudo code, it would be.

Retrieve /collections

For each ID in collections:
     Retrieve /collections/ID
     If response of /collections/ID has JSON Object with "rel" : "items":
           Add to list of collections to test with this ETS

Run compliance test on list of collections to test with this ETS

@cportele
Copy link
Member

@ghobona - Since this is the ETS for Features and not for, e.g., Records, also inspect the itemType, if there is an items link. If the property is present and has a value that is not "feature", ignore that collection, too.

@dstenger
Copy link
Contributor

dstenger commented Feb 4, 2021

@keshav-nangare Can you please update the implementation regarding the proposed solutions?

@keshavnangare
Copy link

keshavnangare commented Feb 12, 2021

Added check to collect collection if the itemType is feature or it is absent but it must have "rel" : "items". Please find the changes in #138 PR.

@jerstlouis
Copy link
Member Author

jerstlouis commented Feb 12, 2021

About FeatureCollections without timeStamp, could this "test skipped" appear only once maybe, if none of the collections have a "timeStamp" property? (And not appear at all if at least one collection had a timeStamp and the test was executed for that one)

@dstenger dstenger assigned dstenger and lgoltz and unassigned keshavnangare Feb 18, 2021
@ghobona
Copy link
Contributor

ghobona commented Feb 18, 2021

2021-02-18 meeting

@ghobona discussed the "test skipped" suggestion with @dstenger and @keshav-nangare , and there was agreement that there is need to maintain the current approach of testing the timeStamp property on each collection.

@jerstlouis
Copy link
Member Author

@ghobona To clarify, my suggestion was to test the timeStamp property on all collections that do have it, but report only once that tests were skipped on the n collections that don't have it, so that you don't end up with 960 "test skipped" if you test 1000 collections and only 40 have a timeStamp.

@dstenger
Copy link
Contributor

dstenger commented Mar 2, 2021

Unfortunately, this issue was closed as the pull request connected to this issue was merged.

@jerstlouis Can you please open a new issue if the skip behavior of the timeStamp tests shall be improved?

@dstenger dstenger added this to the 1.2 milestone Mar 2, 2021
@jerstlouis
Copy link
Member Author

@dstenger done: #143
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
6 participants