Fix dashboard static assets and add client e2e scripts
This commit is contained in:
@@ -74,6 +74,53 @@ The test output includes session id, worker process id, command status,
|
||||
HRESULT/status diagnostics, event sequence and handles, close status, and worker
|
||||
stdout/stderr lines emitted during the run.
|
||||
|
||||
## Client E2E Scripts
|
||||
|
||||
`scripts/discover-testmachine-tags.ps1` queries the ZB Galaxy Repository for the
|
||||
deployed runtime references used by the live client e2e scripts. It reads
|
||||
`TestMachine_001` through `TestMachine_020` and the expected attributes:
|
||||
|
||||
- `ProtectedValue`
|
||||
- `TestChangingInt`
|
||||
- `TestBoolArray`
|
||||
- `TestIntArray`
|
||||
- `TestDateTimeArray`
|
||||
- `TestStringArray`
|
||||
|
||||
The discovery output includes the exact `fullTagReference`, data type, array
|
||||
dimension, and security classification. The array attributes are expected to be
|
||||
dimension 50. `ProtectedValue` has security classification 2 and requires
|
||||
secured write semantics; the current client CLI e2e runner subscribes to it but
|
||||
does not attempt a normal `Write`.
|
||||
|
||||
Run discovery directly when validating the Galaxy Repository inputs:
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File scripts/discover-testmachine-tags.ps1 -Json
|
||||
```
|
||||
|
||||
`scripts/run-client-e2e-tests.ps1` drives the .NET, Go, Rust, Python, and Java
|
||||
client CLIs through a live gateway session. For each client it opens one
|
||||
session, registers, adds and advises every discovered test tag, reads a bounded
|
||||
event stream, then closes the session in a `finally` path. The script writes a
|
||||
JSON report under `artifacts/e2e/`.
|
||||
|
||||
Build the gateway and worker, start the gateway, and provide a valid API key
|
||||
before running the client e2e script:
|
||||
|
||||
```powershell
|
||||
$env:MXGATEWAY_API_KEY = "<api-key>"
|
||||
powershell -ExecutionPolicy Bypass -File scripts/run-client-e2e-tests.ps1
|
||||
```
|
||||
|
||||
Useful runner options:
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File scripts/run-client-e2e-tests.ps1 -Clients dotnet,python -MachineStart 1 -MachineEnd 2
|
||||
powershell -ExecutionPolicy Bypass -File scripts/run-client-e2e-tests.ps1 -SkipStream
|
||||
powershell -ExecutionPolicy Bypass -File scripts/run-client-e2e-tests.ps1 -Endpoint localhost:5000 -ApiKeyEnv MXGATEWAY_API_KEY
|
||||
```
|
||||
|
||||
## Focused Commands
|
||||
|
||||
Run the cross-language smoke matrix tests after changing the documented client
|
||||
|
||||
Reference in New Issue
Block a user