Skip to content

Commit

Permalink
fix(opcua): fix endpoint element mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 10, 2023
1 parent 39ff22f commit c1232bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void setConfiguration(OpcuaConfiguration configuration) {
transportEndpoint = matcher.group("transportEndpoint");

String portAddition = port != null ? ":" + port : "";
endpoint = "opc." + code + "://" + code + portAddition + transportEndpoint;
endpoint = "opc." + code + "://" + host + portAddition + transportEndpoint;


if (configuration.getSecurityPolicy() != null && !(configuration.getSecurityPolicy().equals("None"))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class OpcuaDriverIT extends DriverTestsuiteRunner {

public OpcuaDriverIT() {
super("/protocols/opcua/DriverTestsuite.xml", true);
super("/protocols/opcua/DriverTestsuite.xml", false);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ Stream<DynamicNode> connectionWithDiscoveryParam() throws Exception {
}
}

// TODO: ignored due to strange behaviour when run together
//@Nested
@Nested
class readWrite {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<endpoint>
<PascalString>
<sLength dataType="int" bitLength="32">15</sLength>
<stringValue dataType="string" bitLength="120" encoding="UTF-8">opc.test://test</stringValue>
<stringValue dataType="string" bitLength="120" encoding="UTF-8">opc.test://hurz</stringValue>
</PascalString>
</endpoint>
</OpcuaHelloRequest>
Expand Down

0 comments on commit c1232bc

Please sign in to comment.