refactor: rename ScadaLink → ZB.MOM.WW.ScadaBridge (code + projects + namespaces)
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
This commit is contained in:
@@ -35,7 +35,7 @@ var browser = await playwright.Chromium.ConnectAsync("ws://localhost:3000");
|
||||
var page = await browser.NewPageAsync();
|
||||
|
||||
// Browser runs inside Docker — use the Docker network hostname for Traefik.
|
||||
await page.GotoAsync("http://scadalink-traefik");
|
||||
await page.GotoAsync("http://scadabridge-traefik");
|
||||
```
|
||||
|
||||
### Node.js
|
||||
@@ -44,7 +44,7 @@ await page.GotoAsync("http://scadalink-traefik");
|
||||
const { chromium } = require('playwright');
|
||||
const browser = await chromium.connect('ws://localhost:3000');
|
||||
const page = await browser.newPage();
|
||||
await page.goto('http://scadalink-traefik');
|
||||
await page.goto('http://scadabridge-traefik');
|
||||
```
|
||||
|
||||
### Python
|
||||
@@ -55,18 +55,18 @@ from playwright.sync_api import sync_playwright
|
||||
with sync_playwright() as p:
|
||||
browser = p.chromium.connect("ws://localhost:3000")
|
||||
page = browser.new_page()
|
||||
page.goto("http://scadalink-traefik")
|
||||
page.goto("http://scadabridge-traefik")
|
||||
```
|
||||
|
||||
## Central UI Access
|
||||
|
||||
The Playwright container is on the `scadalink-net` Docker network, so it can reach the Central UI cluster nodes directly:
|
||||
The Playwright container is on the `scadabridge-net` Docker network, so it can reach the Central UI cluster nodes directly:
|
||||
|
||||
| Target | URL in Test Scripts |
|
||||
|--------|---------------------|
|
||||
| Traefik LB | `http://scadalink-traefik` |
|
||||
| Central Node A | `http://scadalink-central-a:5000` |
|
||||
| Central Node B | `http://scadalink-central-b:5000` |
|
||||
| Traefik LB | `http://scadabridge-traefik` |
|
||||
| Central Node A | `http://scadabridge-central-a:5000` |
|
||||
| Central Node B | `http://scadabridge-central-b:5000` |
|
||||
|
||||
**Important**: The browser runs inside the Docker container, so `page.goto()` URLs must use Docker network hostnames (not `localhost`). The test script itself connects to the Playwright server via `ws://localhost:3000` (host-mapped port), but all URLs navigated by the browser resolve inside the container.
|
||||
|
||||
@@ -75,13 +75,13 @@ The Playwright container is on the `scadalink-net` Docker network, so it can rea
|
||||
1. Check the container is running:
|
||||
|
||||
```bash
|
||||
docker ps --filter name=scadalink-playwright
|
||||
docker ps --filter name=scadabridge-playwright
|
||||
```
|
||||
|
||||
2. Check the server is accepting connections (look for the WebSocket endpoint in logs):
|
||||
|
||||
```bash
|
||||
docker logs scadalink-playwright 2>&1 | head -5
|
||||
docker logs scadabridge-playwright 2>&1 | head -5
|
||||
```
|
||||
|
||||
3. Quick smoke test with a one-liner (requires `npx` and `playwright` on the host):
|
||||
@@ -90,7 +90,7 @@ docker logs scadalink-playwright 2>&1 | head -5
|
||||
npx playwright@1.58.2 test --browser chromium --connect ws://localhost:3000
|
||||
```
|
||||
|
||||
## Relevance to ScadaLink Components
|
||||
## Relevance to ScadaBridge Components
|
||||
|
||||
- **Central UI** — end-to-end UI testing of all Blazor Server pages (login, admin, design, deployment, monitoring workflows).
|
||||
- **Traefik Proxy** — verify load balancer behavior, failover, and active node routing from a browser perspective.
|
||||
|
||||
Reference in New Issue
Block a user