aboutsummaryrefslogtreecommitdiff
path: root/docker/netiquette/test/runner.mjs
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-02-09 20:09:20 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-02-09 20:09:20 +0100
commit96c6da392fc3236754c273a299728ad0360b3d51 (patch)
treedb6732c726c731396b482debe329cd5894613d02 /docker/netiquette/test/runner.mjs
parentba5590ce97953f66702b149fd7840bcb58d4b463 (diff)
downloadinfrastructure-96c6da392fc3236754c273a299728ad0360b3d51.tar.gz
infrastructure-96c6da392fc3236754c273a299728ad0360b3d51.zip
[diplomate] Skeleton for our UPNP configurator
Diffstat (limited to 'docker/netiquette/test/runner.mjs')
-rw-r--r--docker/netiquette/test/runner.mjs28
1 files changed, 0 insertions, 28 deletions
diff --git a/docker/netiquette/test/runner.mjs b/docker/netiquette/test/runner.mjs
deleted file mode 100644
index b4da1de..0000000
--- a/docker/netiquette/test/runner.mjs
+++ /dev/null
@@ -1,28 +0,0 @@
-'use strict'
-
-import io from './io.mjs'
-import iptables from './iptables.mjs'
-
-(async () => {
- const res = await [
- ...io,
- ...iptables
- ].map(async f => {
- try {
- await f()
- return 'passed'
- }
- catch(e) {
- console.error(e)
- return 'failed'
- }
- }).reduce(async (acc, r) => {
- const accumulator = await acc
- const result = await r
- accumulator.total++
- accumulator[result]++
- return accumulator
- }, {total: 0, passed: 0, failed: 0})
-
- console.log(`Done. passed: ${res.passed}, failed: ${res.failed}, total: ${res.total}`)
-})()