Skip to content

Commit

Permalink
Merge pull request #168 from FraunhoferIOSB/feature/dependencyUpdate
Browse files Browse the repository at this point in the history
bump dependency version
  • Loading branch information
fvolz authored Jan 24, 2025
2 parents bfd0fda + b65cecb commit 9051ef7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import de.fraunhofer.iosb.ilt.faaast.service.exception.ConfigurationException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.EndpointException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException;
import de.fraunhofer.iosb.ilt.faaast.service.model.exception.PersistenceException;
import de.fraunhofer.iosb.model.aas.service.Service;
import de.fraunhofer.iosb.ssl.impl.DefaultSelfSignedCertificateRetriever;
import de.fraunhofer.iosb.testutils.TestUtils;
Expand Down Expand Up @@ -55,7 +56,8 @@ void testSendForeign() throws IOException {
// This means the HTTP request went through --> no certificate problems etc.
assertNotEquals(500, response.code());
}
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException e) {
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException |
PersistenceException e) {
fail("Failed starting FA³ST service");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import de.fraunhofer.iosb.ilt.faaast.service.exception.ConfigurationException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.EndpointException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException;
import de.fraunhofer.iosb.ilt.faaast.service.model.exception.PersistenceException;
import de.fraunhofer.iosb.model.aas.net.AasAccessUrl;
import de.fraunhofer.iosb.model.aas.service.Service;
import de.fraunhofer.iosb.ssl.impl.DefaultSelfSignedCertificateRetriever;
Expand Down Expand Up @@ -60,7 +61,8 @@ void testSendRegistered() throws IOException {
// This means the HTTP request went through --> no certificate problems etc.
assertNotEquals(500, response.code());
}
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException e) {
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException |
PersistenceException e) {
fail("Failed starting FA³ST service");
}
}
Expand All @@ -85,7 +87,8 @@ void testSendForeign() throws IOException {
"certificates.");
} catch (SSLException sslException) {
// self-signed
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException e) {
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException |
PersistenceException e) {
fail("Failed starting FA³ST service");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import de.fraunhofer.iosb.ilt.faaast.service.exception.ConfigurationException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.EndpointException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException;
import de.fraunhofer.iosb.ilt.faaast.service.model.exception.PersistenceException;
import de.fraunhofer.iosb.testutils.TestUtils;
import org.eclipse.edc.spi.result.Result;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -51,7 +52,8 @@ void getSelfSignedCertificate() throws MalformedURLException {
Result<Certificate[]> certResult;
try (var ignored = new TestUtils().startFaaastService(port)) {
certResult = new DefaultSelfSignedCertificateRetriever().getSelfSignedCertificate(url);
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException e) {
} catch (MessageBusException | EndpointException | ConfigurationException | AssetConnectionException |
PersistenceException e) {
fail("Failed starting FA³ST service");
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import de.fraunhofer.iosb.ilt.faaast.service.exception.ConfigurationException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.EndpointException;
import de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException;
import de.fraunhofer.iosb.ilt.faaast.service.model.exception.PersistenceException;
import de.fraunhofer.iosb.ilt.faaast.service.persistence.memory.PersistenceInMemoryConfig;
import de.fraunhofer.iosb.ilt.faaast.service.starter.util.ServiceConfigHelper;
import de.fraunhofer.iosb.ssl.impl.DefaultSelfSignedCertificateRetriever;
Expand Down Expand Up @@ -53,7 +54,7 @@ public Certificate[] getSelfSignedCertificate() {
* @return AutoCloseable handle on FA³ST service
*/
public ServiceHandle startFaaastService(int port) throws ConfigurationException, AssetConnectionException,
MessageBusException, EndpointException {
MessageBusException, EndpointException, PersistenceException {
var serviceConfig = new ServiceConfig.Builder()
.endpoint(new HttpEndpointConfig.Builder().port(port).build())
.persistence(PersistenceInMemoryConfig.builder()
Expand All @@ -74,7 +75,7 @@ public static class ServiceHandle implements AutoCloseable {

private final Service service;

ServiceHandle(Service service) throws MessageBusException, EndpointException {
ServiceHandle(Service service) throws MessageBusException, EndpointException, PersistenceException {
this.service = service;
this.service.start();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void stopService(URL aasServiceUrl) {

try {
service.start();
} catch (MessageBusException | EndpointException faaastServiceException) {
} catch (Exception faaastServiceException) {
throw new EdcException(GENERIC_EXCEPTION_MESSAGE, faaastServiceException);
}
return service;
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
javaVersion=17
group=org.eclipse.edc
edcVersion=0.10.0
faaastVersion=1.1.0
edcVersion=0.10.1
faaastVersion=1.2.0
aas4jVersion=1.0.2
mockitoVersion=5.2.0
jupiterVersion=5.10.2
Expand Down

0 comments on commit 9051ef7

Please sign in to comment.