Fix opcua integration test (#9107)
This commit is contained in:
parent
9853bf6c54
commit
114e4c2f68
|
|
@ -78,6 +78,10 @@ services:
|
||||||
image: ncarlier/mqtt
|
image: ncarlier/mqtt
|
||||||
ports:
|
ports:
|
||||||
- "1883:1883"
|
- "1883:1883"
|
||||||
|
opcua:
|
||||||
|
image: open62541/open62541
|
||||||
|
ports:
|
||||||
|
- "4840:4840"
|
||||||
riemann:
|
riemann:
|
||||||
image: stealthly/docker-riemann
|
image: stealthly/docker-riemann
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,9 @@ type OPCTags struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestClient1Integration(t *testing.T) {
|
func TestClient1Integration(t *testing.T) {
|
||||||
t.Skip("Skipping due to dial tcp 195.254.227.245:4840: connect: connection refused")
|
if testing.Short() {
|
||||||
|
t.Skip("Skipping integration test in short mode")
|
||||||
|
}
|
||||||
|
|
||||||
var testopctags = []OPCTags{
|
var testopctags = []OPCTags{
|
||||||
{"ProductName", "0", "i", "2261", "open62541 OPC UA Server"},
|
{"ProductName", "0", "i", "2261", "open62541 OPC UA Server"},
|
||||||
|
|
@ -32,7 +34,7 @@ func TestClient1Integration(t *testing.T) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
o.MetricName = "testing"
|
o.MetricName = "testing"
|
||||||
o.Endpoint = "opc.tcp://opcua.rocks:4840"
|
o.Endpoint = "opc.tcp://localhost:4840"
|
||||||
o.AuthMethod = "Anonymous"
|
o.AuthMethod = "Anonymous"
|
||||||
o.ConnectTimeout = config.Duration(10 * time.Second)
|
o.ConnectTimeout = config.Duration(10 * time.Second)
|
||||||
o.RequestTimeout = config.Duration(1 * time.Second)
|
o.RequestTimeout = config.Duration(1 * time.Second)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue