diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-17 11:07:37 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-17 11:07:37 +0100 |
| commit | a54421dd976fd8081e96c11c2621076876c9986b (patch) | |
| tree | a7614934364bc692dd94ee13a3ec6d242521194b /tests/basic256sha256_anon | |
| parent | d1e229c80a6e51ccc5b21d001271c41d6cda30bf (diff) | |
| download | BobinkCOpcUa-a54421dd976fd8081e96c11c2621076876c9986b.tar.gz BobinkCOpcUa-a54421dd976fd8081e96c11c2621076876c9986b.zip | |
Replace CLI arguments with config-file parser and add integration tests
Introduce a reusable key=value config parser (config.h/c) and convert
all three programs to read their settings from config files instead of
positional command-line arguments. Add example config files in config/
and 6 CTest integration tests covering None/Basic256Sha256/Aes128 with
anonymous and user authentication. Remove the now-obsolete launch.sh.
Diffstat (limited to 'tests/basic256sha256_anon')
| -rw-r--r-- | tests/basic256sha256_anon/client_find_servers.conf | 14 | ||||
| -rw-r--r-- | tests/basic256sha256_anon/server_lds.conf | 12 | ||||
| -rw-r--r-- | tests/basic256sha256_anon/server_register.conf | 21 |
3 files changed, 47 insertions, 0 deletions
diff --git a/tests/basic256sha256_anon/client_find_servers.conf b/tests/basic256sha256_anon/client_find_servers.conf new file mode 100644 index 0000000..fb3d9d4 --- /dev/null +++ b/tests/basic256sha256_anon/client_find_servers.conf @@ -0,0 +1,14 @@ +# ClientFindServers — test: basic256sha256_anon + +discoveryEndpoint = opc.tcp://localhost:14840 +applicationUri = urn:bobink.ClientFindServers +certificate = certs/ClientFindServers_cert.der +privateKey = certs/ClientFindServers_key.der + +securityMode = SignAndEncrypt +securityPolicy = Basic256Sha256 + +authMode = anonymous + +trustList = certs/ServerLDS_cert.der +trustList = certs/ServerRegister_cert.der diff --git a/tests/basic256sha256_anon/server_lds.conf b/tests/basic256sha256_anon/server_lds.conf new file mode 100644 index 0000000..7da2fd6 --- /dev/null +++ b/tests/basic256sha256_anon/server_lds.conf @@ -0,0 +1,12 @@ +# ServerLDS — test: basic256sha256_anon + +port = 14840 +applicationUri = urn:bobink.ServerLDS +certificate = certs/ServerLDS_cert.der +privateKey = certs/ServerLDS_key.der +cleanupTimeout = 60 + +authMode = anonymous + +trustList = certs/ServerRegisterClient_cert.der +trustList = certs/ClientFindServers_cert.der diff --git a/tests/basic256sha256_anon/server_register.conf b/tests/basic256sha256_anon/server_register.conf new file mode 100644 index 0000000..798bf31 --- /dev/null +++ b/tests/basic256sha256_anon/server_register.conf @@ -0,0 +1,21 @@ +# ServerRegister — test: basic256sha256_anon + +port = 14841 +applicationUri = urn:bobink.ServerRegister +serverCertificate = certs/ServerRegister_cert.der +serverPrivateKey = certs/ServerRegister_key.der +clientCertificate = certs/ServerRegisterClient_cert.der +clientPrivateKey = certs/ServerRegisterClient_key.der + +discoveryEndpoint = opc.tcp://localhost:14840 +registerInterval = 10 + +securityMode = SignAndEncrypt +securityPolicy = Basic256Sha256 + +serverAuthMode = anonymous + +clientAuthMode = anonymous + +trustList = certs/ServerLDS_cert.der +trustList = certs/ClientFindServers_cert.der |
