conlink 2.5.2 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ on:
7
7
  workflow_dispatch: {}
8
8
 
9
9
  jobs:
10
- compose-tests:
10
+ tests:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout
@@ -22,3 +22,11 @@ jobs:
22
22
  - name: "dctest test/test*.yaml"
23
23
  timeout-minutes: 5
24
24
  run: time node_modules/.bin/dctest --verbose-commands conlink-test $(ls -v test/test*.yaml)
25
+
26
+ - name: Check --show-config and net2dot
27
+ run: |
28
+ cfg=$(./conlink --show-config --compose-file examples/test1-compose.yaml)
29
+ summary=$(echo "${cfg}" | jq -r '.|"\(.bridges|keys|sort|join(".")) \(.services|keys|sort|join("."))"')
30
+ [ "${summary}" = "s1.s2.s3 h1.h2.h3.r0" ]
31
+ dot=$(echo "${cfg}" | ./net2dot)
32
+ [ $(echo "${dot}" | grep "r0.*eth" | wc -l) -ge 10 ]