Conversation
c398cfa to
bdbb2d0
Compare
DeviceSDK/src/main/java/org/astarteplatform/devicesdk/AstartePairingService.java
Show resolved
Hide resolved
...icTest/src/main/java/org/astarteplatform/devicesdk/tests/e2etest/GenericAggregateDevice.java
Outdated
Show resolved
Hide resolved
...icTest/src/main/java/org/astarteplatform/devicesdk/tests/e2etest/GenericAggregateDevice.java
Outdated
Show resolved
Hide resolved
...icTest/src/main/java/org/astarteplatform/devicesdk/tests/e2etest/GenericAggregateDevice.java
Outdated
Show resolved
Hide resolved
...t/src/main/java/org/astarteplatform/devicesdk/tests/e2etest/utilities/GenericMockDevice.java
Outdated
Show resolved
Hide resolved
...t/src/main/java/org/astarteplatform/devicesdk/tests/e2etest/utilities/GenericMockDevice.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/astarteplatform/devicesdk/tests/e2etest/utilities/GenericDeviceMockData.java
Outdated
Show resolved
Hide resolved
bdbb2d0 to
d90cd84
Compare
lucaato
left a comment
There was a problem hiding this comment.
I reviewed some files, let me know what you think about the comments.
...t/src/main/java/org/astarteplatform/devicesdk/tests/e2etest/utilities/GenericMockDevice.java
Outdated
Show resolved
Hide resolved
...ain/java/org/astarteplatform/devicesdk/tests/e2etest/utilities/GenericInterfaceProvider.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/astarteplatform/devicesdk/tests/e2etest/utilities/AstarteHttpRequest.java
Outdated
Show resolved
Hide resolved
...java/org/astarteplatform/devicesdk/tests/e2etest/utilities/GenericDeviceMockDataFactory.java
Outdated
Show resolved
Hide resolved
d90cd84 to
e613800
Compare
Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
e613800 to
4f847fb
Compare
| sudo openssl s_client -connect api.autotest.astarte-platform.org:443 -showcerts </dev/null 2>/dev/null|openssl x509 -outform PEM > ${GITHUB_WORKSPACE}/astarte-certificates.pem | ||
| openssl x509 -outform der -in ${GITHUB_WORKSPACE}/astarte-certificates.pem -out ${GITHUB_WORKSPACE}/astarte-certificates.der | ||
| echo $JAVA_HOME | ||
| KEYSTORE_PATH=$JAVA_HOME/lib/security/cacerts | ||
| sudo keytool -import -noprompt -trustcacerts -alias "astarteroot-cert" -file ${GITHUB_WORKSPACE}/astarte-certificates.der -keystore $KEYSTORE_PATH -storepass changeit | ||
| sudo keytool -keystore $KEYSTORE_PATH -storepass changeit -list | grep astarteroot-cert |
There was a problem hiding this comment.
This could probably be simplified, I don't think you need to generate a new certificate. A valid certificate is already generated at the /usr/local/share/ca-certificates/astarte-autotest.crt path by the astarte-cluster-action. You should be able to import this one directly in the jvm key store.
There was a problem hiding this comment.
I had a lot of problems when I tried to create an end-to-end test for Java. The problem was related to SSL certification because our master branch does not have a flag to avoid SSL errors. I found a solution to fix the error. The solution was to add the SSL key to the JVM.
|
There are also a number of exception thrown and logged in the e2e test build and run step, you should probably take a look at those. |
Add end-to-end test for:
Send property from device to server and from server to device
Send Datastream from device to server and from server to device
Send Aggregate data from device to server and from server to device
Closes: #54