Hi Dominik and Philipp,

thanks for your tips and ideas.

I just ran the Docker image and played around with it a bit.
It looks promising so far and seems to provide all the necessary functionality for our e2e tests. Since connecting to the server with UAExpert was quite easy, I assume this will also be the case for connecting with StreamPipes (this has also been the case so far for the other OPC UA servers I have used.... but you never know, right Dominik? ;)) I will try this in the next few days and hopefully can start implementing the E2E test.

Tim

Am 08.11.2021 22:42 schrieb Dominik Riemer:
Hi Tim,

having an E2E-Test for OPC-UA would be awesome - I just had a
discussion with someone from the OPC Foundation a few days ago where I
took the chance to whine a little bit about the fact that I've never
seen a single OPC-UA configuration that also worked in a second
environment 😉

I think Philipp has done some great work with the configuration of E2E
tests. The docker container you described looks good to me and we
could add this to the CLI or to the test compose file.

Do we need anything else? I think once we've merged the different
repos we can also add all e2e scripts to a nightly Github actions
build.

Dominik


-----Original Message-----
From: Philipp Zehnder <[email protected]>
Sent: Thursday, October 28, 2021 11:10 AM
To: [email protected]
Subject: Re: Preparaing E2E Test for OPC-UA

Hi Tim,

I really like the idea. It looks like the docker image you sent is a
good solution for this.
I guess it makes sense to test one event schema with as many different
data types as possible.

Did you run this docker image before or do you have any experience
with connecting the data to StreamPipes?
Once the docker container is running, we need the configuration of the
adapter to create the test, see [1].
I think it makes also sense to include the docker-compose description
to the CLI [2]

Example of a test description:
 SpecificAdapterBuilder
.create('Machine_Data_Simulator')
.setName('Machine Data Simulator Test')
.addInput('input', 'wait-time-ms', '1000') .build();

Philipp

[1]
https://github.com/apache/incubator-streampipes/tree/dev/ui/cypress/tests/adapter
<https://github.com/apache/incubator-streampipes/tree/dev/ui/cypress/tests/adapter>
[2]
https://github.com/apache/incubator-streampipes-installer/tree/dev/cli/deploy/standalone
<https://github.com/apache/incubator-streampipes-installer/tree/dev/cli/deploy/standalone>

On 26. Oct 2021, at 19:49, Tim <[email protected]> wrote:

Hi all,

similar to the E2E test for the MQTT adapter, which is currently under development, it might be worthwhile to implement an E2E test for our OPC-UA adapter. What do you guys think about this idea?

During the development/refactoring of the OPC-UA adapter we used some publicly available OPC-UA servers (e.g., https://github.com/digitalpetri/opc-ua-demo-server). However, to avoid complexity and reduce error-proneness in the test scenario, one option would be to set up an OPC-UA server in a Docker container. I found the following docker image, which looks quite good at first sight: https://hub.docker.com/_/microsoft-iotedge-opc-plc.

How do you like this approach? Do you have other ideas orsuggestions?


Best
Tim

Reply via email to