-
-
Save trentm/af857dcc19c5544d9b451b135afe21a5 to your computer and use it in GitHub Desktop.
node-triton integration test suite with node-tape
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ time make test-integration | |
#NODE_NDEBUG= ./node_modules/.bin/tap -T -j10 --o ./test-integration.tap test/integration/*.test.js | |
NODE_NDEBUG= ./node_modules/.bin/tape test/integration/*.test.js | |
** skipping /Users/trentm/joy/node-triton/test/integration/cli-volumes-size.test.js tests | |
** set "allowWriteActions" and "allowVolumesTests" in test config to enable | |
** skipping /Users/trentm/joy/node-triton/test/integration/cli-volumes.test.js tests | |
** set "allowWriteActions" and "allowVolumesTests" in test config to enable | |
TAP version 13 | |
# TritonApi images | |
# setup: client | |
ok 1 null | |
# TritonApi listImages | |
ok 2 null | |
ok 3 images | |
ok 4 images | |
ok 5 img | |
ok 6 img.id is a UUID | |
ok 7 img.name | |
ok 8 img.version | |
# TritonApi getImage by uuid | |
ok 9 null | |
ok 10 should be equal | |
# TritonApi getImage by name | |
ok 11 null | |
ok 12 should be equal | |
# TritonApi getImage by name (opts) | |
ok 13 null | |
ok 14 should be equal | |
# TritonApi getImage by shortId | |
ok 15 null | |
ok 16 should be equal | |
# teardown: client | |
# TritonApi packages | |
# setup | |
ok 17 null | |
# setup: inst | |
ok 18 null | |
ok 19 instances | |
# TritonApi getInstance | |
ok 20 no err | |
ok 21 id | |
ok 22 no err | |
ok 23 name | |
ok 24 no err | |
ok 25 shortId | |
# teardown: client | |
# TritonApi network ips | |
# setup | |
ok 26 null | |
# setup: net | |
ok 27 null | |
ok 28 networks | |
ok 29 fabric network required | |
# TritonApi listIps | |
ok 30 null | |
ok 31 ips | |
# TritonApi getIp | |
ok 32 no err | |
ok 33 ip | |
# teardown: client | |
# TritonApi networks | |
# setup | |
ok 34 null | |
# setup: net | |
ok 35 null | |
ok 36 networks | |
# TritonApi getNetwork | |
ok 37 no err | |
ok 38 id | |
ok 39 no err | |
ok 40 name | |
ok 41 no err | |
ok 42 shortId | |
# teardown: client | |
# TritonApi networks | |
# setup | |
ok 43 null | |
# setup: inst | |
ok 44 vms array | |
# TritonApi listNics | |
ok 45 no err id | |
ok 46 nics array | |
ok 47 no err name | |
ok 48 nics array | |
ok 49 no err shortId | |
ok 50 nics array | |
# TritonApi getNic | |
ok 51 no err for id | |
ok 52 id | |
ok 53 no err for name | |
ok 54 name | |
ok 55 no err for shortId | |
ok 56 shortId | |
# teardown: client | |
# TritonApi packages | |
# setup | |
ok 57 null | |
# setup: pkg | |
ok 58 null | |
ok 59 packages | |
# TritonApi getPackage | |
ok 60 no err | |
ok 61 id | |
ok 62 no err | |
ok 63 name | |
ok 64 no err | |
ok 65 shortId | |
# teardown: client | |
# triton account | |
# triton account -h | |
ok 66 null | |
ok 67 account usage | |
# triton help account | |
ok 68 null | |
ok 69 account usage | |
# triton account get | |
ok 70 null | |
ok 71 (unnamed assert) | |
# triton account get -j | |
ok 72 null | |
ok 73 account.login | |
# triton account update foo=bar | |
ok 74 (unnamed assert) | |
# triton account update companyName=foo | |
ok 75 null | |
# triton account update companyName=<oldvalue> | |
ok 76 null | |
# affinity (triton create -a RULE ...) | |
# Add '"skipAffinityTests":true' to test/config.json if this target DC does not have multiple provisionable CNs (e.g. COAL). | |
# setup: rm existing insts nodetritontest-affinity-bluesteel.local* | |
ok 77 ran "triton inst list -j name=nodetritontest-affinity-bluesteel.local", err=null | |
ok 78 empty stderr | |
# setup: find test image | |
ok 79 image from config: minimal-64 | |
ok 80 getTestImg | |
# setup: find test package | |
ok 81 package from config: g4-highcpu-128M | |
ok 82 getTestPkg | |
# setup: triton create -n db0 | |
ok 83 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db0 -t role=database minimal-64 g4-highcpu-128M", err=null | |
ok 84 empty stderr | |
# triton create -n db1 -a instance==db0 | |
ok 85 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db1 -a instance==nodetritontest-affinity-bluesteel.local-db0 minimal-64 g4-highcpu-128M", err=null | |
ok 86 empty stderr | |
ok 87 inst nodetritontest-affinity-bluesteel.local-db1 landed on same CN as inst nodetritontest-affinity-bluesteel.local-db0: 00000000-0000-0000-0000-0025909437fc | |
# triton create -n db2 -a 'instance!=db*' | |
ok 88 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db2 -a instance!=db* minimal-64 g4-highcpu-128M", err=null | |
ok 89 empty stderr | |
ok 90 inst nodetritontest-affinity-bluesteel.local-db2 landed on different CN (00000000-0000-0000-0000-0025909437cc) as inst nodetritontest-affinity-bluesteel.local-db0 (00000000-0000-0000-0000-0025909437fc) | |
# triton create -n db3 -a 'instance!=db0' | |
ok 91 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db3 -a instance!=nodetritontest-affinity-bluesteel.local-db0 minimal-64 g4-highcpu-128M", err=null | |
ok 92 empty stderr | |
ok 93 inst nodetritontest-affinity-bluesteel.local-db3 landed on different CN (00000000-0000-0000-0000-0025909437d8) as inst nodetritontest-affinity-bluesteel.local-db0 (00000000-0000-0000-0000-0025909437fc) | |
# triton create -n db4 -a 'role!=database' | |
not ok 94 test timed out after 600000ms | |
--- | |
operator: fail | |
... | |
ok 95 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db4 -a role!=database minimal-64 g4-highcpu-128M", err=null | |
ok 96 empty stderr | |
ok 97 inst nodetritontest-affinity-bluesteel.local-db4 landed on different CN (00000000-0000-0000-0000-0025909437d8) as inst nodetritontest-affinity-bluesteel.local-db0 (00000000-0000-0000-0000-0025909437fc) | |
# cleanup: triton rm | |
ok 98 ran "triton rm -w c567c6ca-e3d4-e5bb-9815-be4270e7a7ef 0a035a7b-40bc-4902-a0b3-ca1ab34a4974 d9a5b402-2e61-c584-fb6b-e539fdd4c30a 73085a93-97e5-6f1a-fe4c-c3eb4c2bf3d4 f395e6b3-0084-616c-bbc9-f533102fb06d", err=null | |
ok 99 empty stderr | |
not ok 100 .end() called twice | |
--- | |
operator: fail | |
... | |
not ok 101 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 102 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 103 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 104 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 105 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 106 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 107 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 108 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 109 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 110 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 111 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 112 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 113 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 114 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 115 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 116 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 117 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 118 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 119 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 120 test exited without ending | |
--- | |
operator: fail | |
... | |
not ok 121 test exited without ending | |
--- | |
operator: fail | |
... | |
1..121 | |
# tests 121 | |
# pass 98 | |
# fail 23 | |
make: *** [test-integration] Error 1 | |
real 12m10.873s | |
user 0m9.702s | |
sys 0m0.982s | |
[12:17:31 trentm@bluesteel:~/joy/node-triton (master)] | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment