Closed dstenger closed 2 years ago
Following API was used to test the OGC API Features test suite: https://oaf.lat-lon.de/deegree-services-oaf/datasets/kitaeinrichtung If both test suites are deployed, all Core tests are skipped. When Processes test suite is removed again, all Core tests are passing.
In my tentative to solve the issue, I have removed unused dependencies. Meaninig that the swagger-*
should not be present anymore.
For the json-schema-validator-*
, I wonder where the json-schema-validator-2.2.14.jar
comes from.
For the openapi-parser-*
, I suppose that one comes from org.openapi4j
and the other one from com.reprezen.kaizen
.
After building the TEAM Engine from bc309dc , I get the following content in the lib folder:
root@6876a451403e:/usr/local/tomcat/webapps/teamengine/WEB-INF/lib# ls
activation-1.1.jar groovy-xml-2.4.12.jar javax.servlet.jsp.jstl-1.2.3.jar jsr305-3.0.2.jar snakeyaml-1.24.jar
checker-qual-2.11.1.jar guava-29.0-jre.jar jaxb-api-2.2.12.jar jstl-api-1.2.jar tagsoup-1.2.1.jar
collection-0.6.jar hamcrest-core-1.3.jar jcommander-1.48.jar listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar teamengine-core-5.5-SNAPSHOT.jar
commons-cli-1.3.jar hamcrest-library-1.3.jar jena-base-3.1.0.jar mail-1.4.7.jar teamengine-spi-5.5-SNAPSHOT.jar
commons-codec-1.10.jar httpclient-4.5.3.jar jena-core-3.1.0.jar mimepull-1.9.3.jar teamengine-spi-ctl-5.5-SNAPSHOT.jar
commons-fileupload-1.3.3.jar httpcore-4.4.6.jar jena-iri-3.1.0.jar openapi-core-1.0.7.jar testng-6.9.10.jar
commons-io-2.5.jar httpmime-4.5.1.jar jena-shaded-guava-3.1.0.jar openapi-operation-validator-1.0.7.jar tomcat-servlet-api-7.0.69.jar
commons-io-2.7.jar isorelax-20030108.jar jersey-client-1.19.jar openapi-parser-1.0.7.jar xercesImpl-2.12.0.jar
commons-lang3-3.7.jar j2objc-annotations-1.3.jar jersey-multipart-1.19.jar openapi-parser-4.0.4.jar xml-apis-1.4.01.jar
commons-logging-1.2.jar jackson-annotations-2.12.1.jar jing-20091111.jar openapi-schema-validator-1.0.7.jar xml-path-3.1.0.jar
error_prone_annotations-2.3.4.jar jackson-core-2.12.1.jar joda-time-2.9.4.jar rest-assured-3.1.0.jar xml-resolver-1.2.jar
ets-ogcapi-processes10-0.2-SNAPSHOT.jar jackson-databind-2.12.1.jar json-path-3.1.0.jar rest-assured-common-3.1.0.jar
failureaccess-1.0.1.jar jackson-dataformat-yaml-2.10.1.jar json-schema-validator-1.0.66.jar saxon9-9.0.0.8.jar
groovy-2.4.12.jar javax.mail-1.6.1.jar json-simple-1.1.1.jar schema-utils-1.8.jar
groovy-json-2.4.12.jar javax.mail-api-1.6.1.jar jsonoverlay-4.0.4.jar slf4j-api-1.7.20.jar
Thank you for your work!
Also, we should update dependencies which also exist in https://github.com/opengeospatial/ets-ogcapi-features10/blob/master/pom.xml to the version used in the Features test suite.
@dstenger, I have made the modifications you requested in the PR #7.
I hope it is correct.
Please also consider: https://github.com/opengeospatial/cite/wiki/Dependencies-of-test-suites
I can confirm that OGC API Features test suite works again after merging #7.
In addition, I did some clean up of the dependencies (removing obsolete dependencies and including dependencies documented on wiki site): #22
Now, there is still a conflict regarding jackson as openapi-operation-validator brings a newer version (2.12.1) than used by other dependencies.
Following branch can be used to start TEAM Engine with both test suites being deployed: https://github.com/opengeospatial/teamengine-docker/tree/etsOgcApiProcessesAndFeatures
A dependency conflict probably leads to this problem.
The lib folder with both test suites deployed looks the following:
After removing the OGC API Processes 1.0 test suite again (current master branch of teamengine-docker project), the lib folder contains the following:
Please note that dependencies removed in this commit (list-of-duplicate-dependencies.txt) had to be added because of the Processes test suite bringing duplicate dependencies: https://github.com/opengeospatial/teamengine-docker/commit/af8b14798f9f9410147ad7f685282812df8343c1
This list should be kept as short as possible by using dependencies which are already used by other test suites (in this case, especially by the Features test suite).
When comparing both lists of dependencies, I observed the following
swagger-*
dependencies in the lib folder.openapi-parser-*
dependency in the lib folder additionally.json-schema-validator-*
dependencies in the lib folder.Aim of this task is to update the OGC API Processes 1.0 test suite so that it can run in the same TEAM Engine instance as the OGC API Features 1.0 test suite. Also, the list of duplicate dependencies should be shortened as much as possible.