feat: add JoeAppEngine OPC UA nodes, fix DCL auto-reconnect and quality push
- Add JoeAppEngine folder to OPC UA nodes.json (BTCS, AlarmCntsBySeverity, Scheduler/ScanTime) - Fix DataConnectionActor: capture Self in PreStart for use from non-actor threads, preventing Self.Tell failure in Disconnected event handler - Implement InstanceActor.HandleConnectionQualityChanged to mark attributes Bad on disconnect - Fix LmxFakeProxy TagMapper to serialize arrays as JSON instead of "System.Int32[]" - Allow DataType and DataSourceReference updates in TemplateService.UpdateAttributeAsync - Update test_infra_opcua.md with JoeAppEngine documentation
This commit is contained in:
@@ -185,12 +185,38 @@ curl -s http://localhost:9002/health/ready | python3 -m json.tool
|
||||
|
||||
### CLI Access
|
||||
|
||||
Connect the ScadaLink CLI to the central cluster via host-mapped Akka remoting ports:
|
||||
Connect the ScadaLink CLI to the central cluster. With OrbStack, the contact point hostname must match the container's Akka `NodeHostname` config, so use the container name directly (OrbStack resolves container names via DNS):
|
||||
|
||||
```bash
|
||||
dotnet run --project src/ScadaLink.CLI -- \
|
||||
--contact-points akka.tcp://scadalink@localhost:9011 \
|
||||
--username admin --password password \
|
||||
--contact-points akka.tcp://scadalink@scadalink-central-a:8081 \
|
||||
--username multi-role --password password \
|
||||
template list
|
||||
```
|
||||
|
||||
> **Note:** The `multi-role` test user has Admin, Design, and Deployment roles. The `admin` user only has the Admin role and cannot perform design or deployment operations. See `infra/glauth/config.toml` for all test users and their group memberships.
|
||||
|
||||
A recommended `~/.scadalink/config.json` for the Docker test environment:
|
||||
|
||||
```json
|
||||
{
|
||||
"contactPoints": ["akka.tcp://scadalink@scadalink-central-a:8081"],
|
||||
"ldap": {
|
||||
"server": "localhost",
|
||||
"port": 3893,
|
||||
"useTls": false,
|
||||
"searchBase": "dc=scadalink,dc=local",
|
||||
"serviceAccountDn": "cn=admin,dc=scadalink,dc=local",
|
||||
"serviceAccountPassword": "password"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
With this config file in place, the contact points and LDAP settings are automatic:
|
||||
|
||||
```bash
|
||||
dotnet run --project src/ScadaLink.CLI -- \
|
||||
--username multi-role --password password \
|
||||
template list
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user