Commit Graph

18 Commits

Author SHA1 Message Date
Martin Regen b2dd71bded Fix ci builds (#1020)
* fix build and align test namespace
2020-06-17 20:13:19 +02:00
Martin Regen 4cd7100d55 Azure pipeline improvements (#965)
- stages now run parallel, cut runtime by a few minutes if we get enough hosted agents...
- supposedly fix the intermittent build errors for solutions, always restore before build or test
- simplify pipeline scripts by changing a few project names
- seperate script for code coverage
- add upload to codecov and codacy, for the latter only if the token is set
- move nohttps build to dotnet build stage
- fix a VS2019 warning in .editorconfig
- give lgtm more coverage by using sample projects

For code coverage, check:
https://codecov.io/gh/OPCFoundation/UA-.NETStandard

For lgtm results, check:
https://lgtm.com/projects/g/OPCFoundation/UA-.NETStandard/?mode=list
2020-05-05 12:06:20 +02:00
Erich Barnstedt c7fa0f1b5d Added debuggable Docker container definition. (#934)
Visual Studio 2017 and 2019 support debugging Docker containers. You need to install Docker for Windows for this to work, though, find it here: https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe.

This change adds a Docker container definition and the settings for Visual Studio to expose the containerized Aggregation server running on Linux through the default OPC UA port (62530).
2020-04-01 15:05:36 +02:00
Martin Regen e908555216 Add schema tests for well known dictionaries (#909)
* add schema validation tests for well known type dictionaries
* comment duplicate test runs
2020-03-04 09:31:41 -06:00
Martin Regen c39b1e3623 Tests and fixes for encoders and decoders (#897)
- Unit test project for Core, so far only types and cert validator
- CertValidator test moved to Core.Tests
- ComplexTypes client tests for encode / decode
- bug fixes for issues found in encoders/decoders and complex types tests

** breaking change for JSON encoding of NodeId **

encoding was not according to spec. see #874.

#874, #892 fixed
2020-02-06 17:38:00 +01:00
Martin Regen 39dca2c103 Complex Types client library (#849)
Adds a complex type system client library extension for custom enumerations and structure types based on a server dictionary or DataTypeDefinition using emitted classes at runtime. 

- Custom types are added to the session factory, not to the global factory. Types are loaded when the session connects by adding 
`                var complexTypeSystem = new ComplexTypeSystem(session);
                await complexTypeSystem.Load();
`
- Custom type properties can be accessed with an accessor [propertyname] or [index]. Direct access through the properties is possible, but some cases do not update the optional or union flags correctly.
- Support includes V1.03 dictionaries and V1.04 DataTypeDefinitions (--> known issues).
- NetCoreComplexClient can be used for quick testing servers. It prints out all custom types with content and subscribes to all. Also includes sample how to write back complex type variables and how to output JSON.
- The UA Sample Client and the Quickstart Data Type client can be used for testing with UI. Many issues were adressed to be able to read and write complex types, however some support is limited, e.g. only editing simple fields is currently working (help wanted).
- Caveat: The complex type libaries for .Net Core must be built for .netcoreapp, so it needs a seperate nuget package for the complex type client extension.
- Support for a factory type builder class to allow to plugin other type builder methods (e.g. Codedom etc...)
- Added JSON test case and include the complex types client in the testing shell script, so the complex types lib is tested on mac/linux too.
- Few fixes in the JSON encoder.

Finding enough servers with custom types is an issue, so if you find servers with unsupported custom types please provide feedback.

Known limitations:
- Only V1.03 OPC binary dictionaries are supported (no XML Schema dictionaries).
- V1.03 dictionary structure definitions are only supported if they can be mapped to a V1.04 DataTypeDefinition. Nested types and cross dictionary refs should work.
- OptionSet is only partially implemented. Only shows the byte arrays, not the flags.
- Opaque Types in dictionaries are ignored.
2019-11-20 16:05:24 +01:00
Martin Regen e2a4020984 Fix V103 nohttps build (#401)
- Fix the NO_HTTPS build to reduce publish size if HTTPS is not needed
e.g. `dotnet build /p:NoHttps=true`
- Limit language Version to C#6 for VS 2015 compat
- add travis & appveyor cases for nohttps build
- enable GDS Https transport
- update nuspec
2018-03-16 10:21:32 +01:00
Martin Regen 2acfcc0a30 add mono client test 2018-01-12 15:09:00 +01:00
Martin Regen 13b9f00dd3 Add Quickstart Applications from .NET repo
building..
unify the way .Net apps are started
2018-01-05 16:24:56 +01:00
Martin Regen 4345640c03 Fix CR feedback & travis macOS build fix (#36)
* improve gds creation test, verifiy integrity of returned certs

* split test runs to avoid file handle problem on macOS

* cr feedback
2017-12-08 22:55:27 +01:00
Martin Regen 09fbb05752 Gds work travis (#32)
fix appveyor and travis builds
2017-11-15 09:45:28 +01:00
Martin Regen d2566c60bd X509store mac fix and travis improvements (#264)
* X509store mac os (#31)

* Fix problem when X509Store CurrentUser\\UA_MachineDefault cannot be created on macOS with .NetStandard2.0
Fix: Use CurrentUser\My instead for all machine certs to make console apps portable.

* prep console sample apps for smoke test
* update travis image
* run sample server and client as smoke test


* ignore travis osx build failure until travis is fixed
2017-10-12 11:16:09 +02:00
Martin Regen 868973d789 Merge from master 2017-10-02 16:31:21 +02:00
Martin Regen 84a6768a1c Split Solution into Universal Windows and .Net/.NetCore 2017-09-26 23:14:05 +02:00
Martin Regen 0dce164b6c Improvements to GDS server (#224)
* project fix

* resolve a circular dependency with opc.ua.sample

* fix dependency on HeaderBranding

* Stack updates for GDS server, to handle app cert signing and crl creation for CA

* GDS server / client fixes.
Supports signing of certs, app registration/unregistration, cert revocation
Build fails until sql db files are manually created
2017-08-10 10:45:31 +02:00
Martin Regen d4e38a84ae fix AppVeyor build (#18)
* update UWP APP certs

* fix UWP release build

* fix solution path

* unify the nuget package location for all projects

* fix some package refs

* new restore test

* remove comiop project from appveyor build
2017-07-03 20:31:30 +02:00
Martin Regen bbb57911c4 update travis / appveyor builds 2017-07-03 10:12:37 +02:00
Martin Regen d64111455c appveyor windows build 2017-01-27 22:52:35 +01:00