Skip to content

Commit

Permalink
feat: added diagrams to DMZ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmacasolin authored and tegefaulkes committed Jun 24, 2022
1 parent 1e35180 commit 856388b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/nat/DMZ.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ describeIf(
agent2ProxyPort,
tearDownNAT,
} = await testNatUtils.setupNAT('dmz', 'dmz', logger);
// Namespace1 Namespace2
// ┌────────────────────────────────────┐ ┌────────────────────────────────────┐
// │ │ │ │
// │ ┌────────┐ ┌─────────┐ │ │ ┌─────────┐ ┌────────┐ │
// │ │ Agent1 ├────────┤ Router1 │ │ │ │ Router2 ├────────┤ Agent2 │ │
// │ └────────┘ └─────────┘ │ │ └─────────┘ └────────┘ │
// │ 10.0.0.2:55551 192.168.0.1:55555 │ │ 192.168.0.2:55555 10.0.0.2:55552 │
// │ │ │ │
// └────────────────────────────────────┘ └────────────────────────────────────┘
// Since neither node is behind a NAT can directly add eachother's
// details using pk nodes add
await testNatUtils.pkExecNs(
Expand Down Expand Up @@ -221,6 +230,15 @@ describeIf(
agent2NodeId,
tearDownNAT,
} = await testNatUtils.setupNATWithSeedNode('dmz', 'dmz', logger);
// Namespace1 Namespace3 Namespace2
// ┌────────────────────────────────────┐ ┌──────────────────┐ ┌────────────────────────────────────┐
// │ │ │ │ │ │
// │ ┌────────┐ ┌─────────┐ │ │ ┌──────────┐ │ │ ┌─────────┐ ┌────────┐ │
// │ │ Agent1 ├────────┤ Router1 │ │ │ │ SeedNode │ │ │ │ Router2 ├────────┤ Agent2 │ │
// │ └────────┘ └─────────┘ │ │ └──────────┘ │ │ └─────────┘ └────────┘ │
// │ 10.0.0.2:55551 192.168.0.1:55555 │ │ 192.168.0.3:PORT │ │ 192.168.0.2:55555 10.0.0.2:55552 │
// │ │ │ │ │ │
// └────────────────────────────────────┘ └──────────────────┘ └────────────────────────────────────┘
// Should be able to ping straight away using the details from the
// seed node
let exitCode, stdout;
Expand Down

0 comments on commit 856388b

Please sign in to comment.