You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2021/04/24 21:30:47 UTC

[plc4x] 04/08: plc4x: added protocolName and output flavor to driver-testsuite.xsd

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 479fe2d521ee0c845c723423c3c73c42b0cfd578
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Sat Apr 24 13:45:03 2021 +0200

    plc4x: added protocolName and output flavor to driver-testsuite.xsd
---
 plc4go/assets/testing/protocols/ads/DriverTestsuite.xml               | 3 +++
 plc4go/assets/testing/protocols/modbus/DriverTestsuite.xml            | 3 +++
 plc4go/assets/testing/protocols/s7/DriverTestsuite.xml                | 3 +++
 .../utils/test-utils/src/main/resources/schemas/driver-testsuite.xsd  | 4 ++++
 protocols/ads/src/test/resources/protocols/ads/DriverTestsuite.xml    | 3 +++
 .../src/test/resources/protocols/canopen/CANOpenDriverSDOIT.xml       | 4 ++++
 protocols/eip/src/test/resources/protocols/eip/DriverTestsuite.xml    | 3 +++
 .../modbus/src/test/resources/protocols/modbus/DriverTestsuite.xml    | 3 +++
 protocols/s7/src/test/resources/protocols/s7/DriverTestsuite.xml      | 3 +++
 9 files changed, 29 insertions(+)

diff --git a/plc4go/assets/testing/protocols/ads/DriverTestsuite.xml b/plc4go/assets/testing/protocols/ads/DriverTestsuite.xml
index 39c2fa0..e6d8427 100644
--- a/plc4go/assets/testing/protocols/ads/DriverTestsuite.xml
+++ b/plc4go/assets/testing/protocols/ads/DriverTestsuite.xml
@@ -22,6 +22,9 @@
 
   <name>Beckhoff ADS/AMS</name>
 
+  <protocolName>ads</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>ads</driver-name>
   <driver-parameters>
     <parameter>
diff --git a/plc4go/assets/testing/protocols/modbus/DriverTestsuite.xml b/plc4go/assets/testing/protocols/modbus/DriverTestsuite.xml
index abbea7a..54d0731 100644
--- a/plc4go/assets/testing/protocols/modbus/DriverTestsuite.xml
+++ b/plc4go/assets/testing/protocols/modbus/DriverTestsuite.xml
@@ -24,6 +24,9 @@
 
   <name>Modbus</name>
 
+  <protocolName>modbus</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>modbus</driver-name>
 
   <testcase>
diff --git a/plc4go/assets/testing/protocols/s7/DriverTestsuite.xml b/plc4go/assets/testing/protocols/s7/DriverTestsuite.xml
index 47b2052..7414246 100644
--- a/plc4go/assets/testing/protocols/s7/DriverTestsuite.xml
+++ b/plc4go/assets/testing/protocols/s7/DriverTestsuite.xml
@@ -22,6 +22,9 @@
 
   <name>S7</name>
 
+  <protocolName>s7</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>s7</driver-name>
 
   <setup>
diff --git a/plc4j/utils/test-utils/src/main/resources/schemas/driver-testsuite.xsd b/plc4j/utils/test-utils/src/main/resources/schemas/driver-testsuite.xsd
index a9576ae..1406cc7 100644
--- a/plc4j/utils/test-utils/src/main/resources/schemas/driver-testsuite.xsd
+++ b/plc4j/utils/test-utils/src/main/resources/schemas/driver-testsuite.xsd
@@ -25,6 +25,10 @@
             <xs:sequence>
                 <!-- Name of the tessuite -->
                 <xs:element name="name" type="xs:string"/>
+                <!-- The protocolName(id) of the protocol -->
+                <xs:element name="protocolName" type="xs:string"/>
+                <!-- The outputFlavor of the protocol-->
+                <xs:element name="outputFlavor" type="xs:string"/>
 
                 <!-- The name of the driver we want to test (as it's used in the connection-string) -->
                 <xs:element name="driver-name" type="xs:string"/>
diff --git a/protocols/ads/src/test/resources/protocols/ads/DriverTestsuite.xml b/protocols/ads/src/test/resources/protocols/ads/DriverTestsuite.xml
index 39c2fa0..e6d8427 100644
--- a/protocols/ads/src/test/resources/protocols/ads/DriverTestsuite.xml
+++ b/protocols/ads/src/test/resources/protocols/ads/DriverTestsuite.xml
@@ -22,6 +22,9 @@
 
   <name>Beckhoff ADS/AMS</name>
 
+  <protocolName>ads</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>ads</driver-name>
   <driver-parameters>
     <parameter>
diff --git a/protocols/canopen/src/test/resources/protocols/canopen/CANOpenDriverSDOIT.xml b/protocols/canopen/src/test/resources/protocols/canopen/CANOpenDriverSDOIT.xml
index 9e7a213..ab5b280 100644
--- a/protocols/canopen/src/test/resources/protocols/canopen/CANOpenDriverSDOIT.xml
+++ b/protocols/canopen/src/test/resources/protocols/canopen/CANOpenDriverSDOIT.xml
@@ -22,7 +22,11 @@
 
   <name>CANOpen SDO Segmentation</name>
 
+  <protocolName>canopen</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>canopen</driver-name>
+
   <driver-parameters>
     <parameter>
       <name>nodeId</name>
diff --git a/protocols/eip/src/test/resources/protocols/eip/DriverTestsuite.xml b/protocols/eip/src/test/resources/protocols/eip/DriverTestsuite.xml
index 7c391f0..425b02d 100644
--- a/protocols/eip/src/test/resources/protocols/eip/DriverTestsuite.xml
+++ b/protocols/eip/src/test/resources/protocols/eip/DriverTestsuite.xml
@@ -22,6 +22,9 @@
 
   <name>EIP</name>
 
+  <protocolName>eip</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>eip</driver-name>
 
   <setup>
diff --git a/protocols/modbus/src/test/resources/protocols/modbus/DriverTestsuite.xml b/protocols/modbus/src/test/resources/protocols/modbus/DriverTestsuite.xml
index abbea7a..54d0731 100644
--- a/protocols/modbus/src/test/resources/protocols/modbus/DriverTestsuite.xml
+++ b/protocols/modbus/src/test/resources/protocols/modbus/DriverTestsuite.xml
@@ -24,6 +24,9 @@
 
   <name>Modbus</name>
 
+  <protocolName>modbus</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>modbus</driver-name>
 
   <testcase>
diff --git a/protocols/s7/src/test/resources/protocols/s7/DriverTestsuite.xml b/protocols/s7/src/test/resources/protocols/s7/DriverTestsuite.xml
index 47b2052..7414246 100644
--- a/protocols/s7/src/test/resources/protocols/s7/DriverTestsuite.xml
+++ b/protocols/s7/src/test/resources/protocols/s7/DriverTestsuite.xml
@@ -22,6 +22,9 @@
 
   <name>S7</name>
 
+  <protocolName>s7</protocolName>
+  <outputFlavor>read-write</outputFlavor>
+
   <driver-name>s7</driver-name>
 
   <setup>