test(core): WLAN measured with Java FILIUS — a wireless cable is a cable, an SSID connects nothing
WlanRun pings on the new network wlan-lan: over wireless cables, over a plain cable, and to and from a notebook on the switch's SSID without a cable. The engine matches Java without a change: it runs the links only. Swift's wirelessAssociations, which join a host to its SSID's switch at run time, are not taken. ScenarioNetwork sets wireless cables, wireless cards and SSIDs; a corpus test pings over the wireless cables of multicast_server.fls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -490,6 +490,16 @@ describe('an imported file runs in the simulation core', () => {
|
||||
expect(engine.sendIcmpEcho(byName('Notebook 1.11'), '141.99.1.10').type).toBe('delivered');
|
||||
});
|
||||
|
||||
it('pings over wireless cables, a cable like any other at run time (Java Kabel.wireless)', () => {
|
||||
const project = importFile(join(corpusRoot, 'java-examples/multicast_server.fls'));
|
||||
const byIp = (ip: string) => project.graph.nodes.find((node) => project.deviceConfigurations.get(node.id)?.ipAddress === ip)!.id;
|
||||
const notebook = byIp('192.168.0.10');
|
||||
|
||||
expect(project.hostWirelessConfigurations.get(notebook)?.isEnabled).toBe(true);
|
||||
expect(project.graph.links).toHaveLength(3);
|
||||
expect(startedEngine(project).sendIcmpEcho(notebook, '192.168.0.20').type).toBe('delivered');
|
||||
});
|
||||
|
||||
it('pings across three routers on manual routes and the routers\' default gateways', () => {
|
||||
// Router 1 (141.99.1/2) sends everything else to 2.2; router 2 has manual
|
||||
// routes to 1.0 and 5.0; router 3 (141.99.4/5) sends everything else to
|
||||
|
||||
Reference in New Issue
Block a user