eclipse-tractusx / sldt-semantic-hub

Apache License 2.0
6 stars 10 forks source link

fix:Test setup #201

Closed shijinrajbosch closed 9 months ago

shijinrajbosch commented 9 months ago

Description

Fixed the jena-fuseki-docker version to 4.7.0 for the test case to fix https://github.com/eclipse-tractusx/sldt-semantic-hub/issues/196

SebastianBezold commented 9 months ago

HI @shijinrajbosch,

running mvn clean install on your branch still runs into test errors on my side. Unfortunately it doesn't provide a better output than the following, but at least the test names are visible:

[ERROR] Errors:
[ERROR]   ApplicationTest.contextLoads » ExceptionInInitializer
[ERROR]   SwaggerUITest.testGetRootExpectRedirectedToSwaggerUI » NoClassDefFound Could n...
[ERROR]   SwaggerUITest.testGetSwaggerUiExpect200 » NoClassDefFound Could not initialize...
[ERROR]   HealthCheckTest.testHealthEndpoint » NoClassDefFound Could not initialize clas...
[ERROR]   HealthCheckTest.testInfoEndpoint » NoClassDefFound Could not initialize class ...
[ERROR]   HealthCheckTest.testLivenessEndpoint » NoClassDefFound Could not initialize cl...
[ERROR]   HealthCheckTest.testReadinessEndpoint » NoClassDefFound Could not initialize c...
[ERROR]   ModelsApiFilterTest » NoClassDefFound Could not initialize class org.eclipse.t...
[ERROR]   ModelsApiPaginationTest » NoClassDefFound Could not initialize class org.eclip...
[ERROR]   ModelsApiSecurityTest » NoClassDefFound Could not initialize class org.eclipse...
[ERROR]   ModelsApiTest » NoClassDefFound Could not initialize class org.eclipse.tractus...
SebastianBezold commented 9 months ago

Thanks for clarifying @shijinrajbosch.

Summary: Pre-condition for building and running the tests is to have a locally available jena-fuseki-docker:4.7.0 docker image. I missed that, because i thought, it's only needed for running the app

From the README:

This docker image jena-fuseki-docker:4.7.0 will be used in the Helm deployment and test - values.yaml (graphdb.image).

sonarcloud[bot] commented 9 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication