Skip to content

Instantly share code, notes, and snippets.

@trentm

trentm/test.log Secret

Created April 26, 2018 18:55
Show Gist options
  • Save trentm/f7cacc1b275653cd548489e39ef7a9e2 to your computer and use it in GitHub Desktop.
Save trentm/f7cacc1b275653cd548489e39ef7a9e2 to your computer and use it in GitHub Desktop.
node-tap running node-triton integration tests in parallel
[11:35:19 trentm@bluesteel:~/joy/node-triton (master)]
$ time ./node_modules/.bin/tap --timeout=0 -j10 test/integration/*.test.js
TAP version 13
ok 1 - test/integration/api-images.test.js # time=4477.089ms {
# 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
1..16
# tests 16
# pass 16
# ok
}
ok 2 - test/integration/api-instances.test.js # time=3094.204ms {
# TritonApi packages
# setup
ok 1 null
# setup: inst
ok 2 null
ok 3 instances
# TritonApi getInstance
ok 4 no err
ok 5 id
ok 6 no err
ok 7 name
ok 8 no err
ok 9 shortId
# teardown: client
1..9
# tests 9
# pass 9
# ok
}
ok 3 - test/integration/api-ips.test.js # time=2817.68ms {
# TritonApi network ips
# setup
ok 1 null
# setup: net
ok 2 null
ok 3 networks
ok 4 fabric network required
# TritonApi listIps
ok 5 null
ok 6 ips
# TritonApi getIp
ok 7 no err
ok 8 ip
# teardown: client
1..8
# tests 8
# pass 8
# ok
}
ok 4 - test/integration/api-networks.test.js # time=3467.396ms {
# TritonApi networks
# setup
ok 1 null
# setup: net
ok 2 null
ok 3 networks
# TritonApi getNetwork
ok 4 no err
ok 5 id
ok 6 no err
ok 7 name
ok 8 no err
ok 9 shortId
# teardown: client
1..9
# tests 9
# pass 9
# ok
}
ok 5 - test/integration/api-nics.test.js # time=5813.686ms {
# TritonApi networks
# setup
ok 1 null
# setup: inst
ok 2 vms array
# TritonApi listNics
ok 3 no err id
ok 4 nics array
ok 5 no err name
ok 6 nics array
ok 7 no err shortId
ok 8 nics array
# TritonApi getNic
ok 9 no err for id
ok 10 id
ok 11 no err for name
ok 12 name
ok 13 no err for shortId
ok 14 shortId
# teardown: client
1..14
# tests 14
# pass 14
# ok
}
ok 6 - test/integration/api-packages.test.js # time=1971.724ms {
# TritonApi packages
# setup
ok 1 null
# setup: pkg
ok 2 null
ok 3 packages
# TritonApi getPackage
ok 4 no err
ok 5 id
ok 6 no err
ok 7 name
ok 8 no err
ok 9 shortId
# teardown: client
1..9
# tests 9
# pass 9
# ok
}
ok 7 - test/integration/cli-account.test.js # time=7193.366ms {
# triton account
# triton account -h
ok 1 null
ok 2 account usage
# triton help account
ok 3 null
ok 4 account usage
# triton account get
ok 5 null
ok 6 (unnamed assert)
# triton account get -j
ok 7 null
ok 8 account.login
# triton account update foo=bar
ok 9 (unnamed assert)
# triton account update companyName=foo
ok 10 null
# triton account update companyName=<oldvalue>
ok 11 null
1..11
# tests 11
# pass 11
# ok
}
** 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
/Users/trentm/joy/node-triton/test/integration/cli-nics.test.js:89
var cmd = 'instance nic get ' + INST + ' ' + NIC.mac;
^
TypeError: Cannot read property 'mac' of undefined
at Test.<anonymous> (/Users/trentm/joy/node-triton/test/integration/cli-nics.test.js:89:57)
at Test.bound [as _cb] (/Users/trentm/joy/node-triton/node_modules/tape/lib/test.js:63:32)
at Test.run (/Users/trentm/joy/node-triton/node_modules/tape/lib/test.js:76:10)
at Test.bound [as run] (/Users/trentm/joy/node-triton/node_modules/tape/lib/test.js:63:32)
at Test._end (/Users/trentm/joy/node-triton/node_modules/tape/lib/test.js:142:11)
at Test.bound [as _end] (/Users/trentm/joy/node-triton/node_modules/tape/lib/test.js:63:32)
at Test.<anonymous> (/Users/trentm/joy/node-triton/node_modules/tape/lib/test.js:141:40)
at emitNone (events.js:67:13)
at Test.emit (events.js:166:7)
at Test.bound [as emit] (/Users/trentm/joy/node-triton/node_modules/tape/lib/test.js:63:32)
not ok 8 - test/integration/cli-affinity.test.js # time=720229.995ms
---
file: test/integration/cli-affinity.test.js
command: /Users/trentm/opt/node-4.9.1/bin/node
args:
- test/integration/cli-affinity.test.js
stdio:
- 0
- pipe
- 2
cwd: /Users/trentm/joy/node-triton
exitCode: 1
...
{
# 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 1 ran "triton inst list -j name=nodetritontest-affinity-bluesteel.local", err=null
ok 2 empty stderr
ok 3 ran "triton inst rm -w 83903c4c-0bdb-6c10-dcaf-f6761552792b", err=null
ok 4 empty stderr
ok 5 inst rm -w 83903c4c-0bdb-6c10-dcaf-f6761552792b
# setup: find test image
ok 6 image from config: minimal-64
ok 7 getTestImg
# setup: find test package
ok 8 package from config: g4-highcpu-128M
ok 9 getTestPkg
# setup: triton create -n db0
ok 10 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db0 -t role=database minimal-64 g4-highcpu-128M", err=null
ok 11 empty stderr
# triton create -n db1 -a instance==db0
ok 12 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 13 empty stderr
ok 14 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 15 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db2 -a instance!=db* minimal-64 g4-highcpu-128M", err=null
ok 16 empty stderr
not ok 17 inst nodetritontest-affinity-bluesteel.local-db2 landed on different CN (00000000-0000-0000-0000-0025909437fc) as inst nodetritontest-affinity-bluesteel.local-db0 (00000000-0000-0000-0000-0025909437fc)
---
operator: notEqual
expected: |-
undefined
actual: |-
'00000000-0000-0000-0000-0025909437fc'
...
# triton create -n db3 -a 'instance!=db0'
ok 18 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 19 empty stderr
ok 20 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 21 test timed out after 600000ms
---
operator: fail
...
ok 22 ran "triton create -wj -n nodetritontest-affinity-bluesteel.local-db4 -a role!=database minimal-64 g4-highcpu-128M", err=null
ok 23 empty stderr
ok 24 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 25 ran "triton rm -w 1bd23031-ffa7-e118-a63c-814d49375cba 9bada1f9-7567-68b9-8c94-cd6b07a28eda f1e71615-cf84-6247-8966-f951d33da919 74ec11f5-beb9-e904-d841-a71656e08035 cedd4051-3322-cf36-9e6b-954d9b04f669", err=null
ok 26 empty stderr
not ok 27 .end() called twice
---
operator: fail
...
not ok 28 test exited without ending
---
operator: fail
...
1..28
# tests 28
# pass 24
# fail 4
# failed 4 of 28 tests
}
ok 9 - test/integration/cli-basics.test.js # time=2366.601ms {
# triton (basics)
# triton --version
ok 1 triton --version
ok 2 version on first line
ok 3 project link in version output
# triton -h
ok 4 null
ok 5 (unnamed assert)
ok 6 (unnamed assert)
ok 7 (unnamed assert)
# triton --help
ok 8 null
ok 9 (unnamed assert)
ok 10 (unnamed assert)
ok 11 (unnamed assert)
# triton help
ok 12 null
ok 13 (unnamed assert)
ok 14 (unnamed assert)
ok 15 (unnamed assert)
1..15
# tests 15
# pass 15
# ok
}
not ok 10 - test/integration/cli-deletion-protection.test.js # time=11833.827ms
---
file: test/integration/cli-deletion-protection.test.js
command: /Users/trentm/opt/node-4.9.1/bin/node
args:
- test/integration/cli-deletion-protection.test.js
stdio:
- 0
- pipe
- 2
cwd: /Users/trentm/joy/node-triton
exitCode: 1
...
{
# triton instance
# Test config:
# - profileName: "nodetritontest-east3b"
# - allowWriteActions: true
# - allowRbacDestructiveTesting: true
# - skipKvmTests: true
# - image: "minimal-64"
# - package: "g4-highcpu-128M"
# - resizePackage: "g4-highcpu-256M"
# - profile: {"url":"https://us-east-3b.api.joyent.com","account":"nodetritontest","keyId":"de:e7:73:9a:b0:91:31:3e:72:8d:9f:62:ca:58:a2:ec","name":"nodetritontest-east3b","insecure":false}
# cleanup existing inst with alias nodetritontest-deletion-protection-bluesteel.local
# triton create --deletion-protection
ok 1 package from config: g4-highcpu-128M
ok 2 null
ok 3 image from config: minimal-64
ok 4 null
not ok 5 create test instance
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection
alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name
at: maybeClose (internal/child_process.js:862:16)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection
exit status: 1
stdout:
stderr:
triton instance create: error: error creating instance
alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection
triton instance create: error: error creating instance
alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance create: error: error creating instance
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance create: error: error creating instance\n alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance create: error: error creating instance\n alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection\ntriton instance create: error: error creating instance\n alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name\n' }
not ok 6 triton instance create
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection
alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:71:7)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection
exit status: 1
stdout:
stderr:
triton instance create: error: error creating instance
alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection
triton instance create: error: error creating instance
alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance create: error: error creating instance
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance create: error: error creating instance\n alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance create: error: error creating instance\n alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-deletion-protection-bluesteel.local minimal-64 g4-highcpu-128M --deletion-protection\ntriton instance create: error: error creating instance\n alias: Duplicate: Already exists for this owner_uuid: Invalid VM parameters: Invalid machine name\n' }
not ok 7 triton instance create: error body
---
operator: deepEqual
expected: {}
actual: undefined
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:73:11)
...
# attempt to delete deletion-protected instance
ok 8 err expected
not ok 9 (unnamed assert)
---
operator: ok
expected: true
actual: null
at: maybeClose (internal/child_process.js:862:16)
...
# triton instance disable-deletion-protection
not ok 10 triton instance disable-deletion-protection
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:71:7)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w
exit status: 1
stdout:
stderr:
triton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w
triton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w\ntriton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found\n' }
not ok 11 triton instance disable-deletion-protection: error body
---
operator: deepEqual
expected: {}
actual: undefined
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:73:11)
...
# triton instance disable-deletion-protection (already enabled)
not ok 12 triton instance disable-deletion-protection
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:71:7)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w
exit status: 1
stdout:
stderr:
triton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w
triton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance disable-deletion-protection undefined -w\ntriton instance disable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found\n' }
not ok 13 triton instance disable-deletion-protection: error body
---
operator: deepEqual
expected: {}
actual: undefined
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:73:11)
...
# triton instance enable-deletion-protection
not ok 14 triton instance enable-deletion-protection
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:71:7)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w
exit status: 1
stdout:
stderr:
triton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w
triton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w\ntriton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found\n' }
not ok 15 triton instance enable-deletion-protection: error body
---
operator: deepEqual
expected: {}
actual: undefined
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:73:11)
...
# triton instance enable-deletion-protection (already enabled)
not ok 16 triton instance enable-deletion-protection
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:71:7)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w
exit status: 1
stdout:
stderr:
triton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w
triton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w\n\texit status: 1\n\tstdout:\n\n\tstderr:\ntriton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance enable-deletion-protection undefined -w\ntriton instance enable-deletion-protection: error: first of 1 error: no instance with name or short id "undefined" was found\n' }
not ok 17 triton instance enable-deletion-protection: error body
---
operator: deepEqual
expected: {}
actual: undefined
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:73:11)
...
# cleanup: triton rm INST
1..17
# tests 17
# pass 5
# fail 12
# failed 12 of 17 tests
}
ok 11 - test/integration/cli-fwrules.test.js # time=177448.75ms {
# triton fwrule
# Test config:
# - profileName: "nodetritontest-east3b"
# - allowWriteActions: true
# - allowRbacDestructiveTesting: true
# - skipKvmTests: true
# - image: "minimal-64"
# - package: "g4-highcpu-128M"
# - resizePackage: "g4-highcpu-256M"
# - profile: {"url":"https://us-east-3b.api.joyent.com","account":"nodetritontest","keyId":"de:e7:73:9a:b0:91:31:3e:72:8d:9f:62:ca:58:a2:ec","name":"nodetritontest-east3b","insecure":false}
# cleanup existing inst with alias nodetritontest-fwrules-bluesteel.local
ok 1 ran "triton inst rm -w b71a3fd8-c619-e15c-9701-bf7ef71becf9", err=null
ok 2 empty stderr
ok 3 deleted inst b71a3fd8-c619-e15c-9701-bf7ef71becf9
ok 4 undefined
# setup: triton create
ok 5 package from config: g4-highcpu-128M
ok 6 null
ok 7 image from config: minimal-64
ok 8 null
ok 9 create test instance
ok 10 triton instance create
# triton fwrule create --disabled
ok 11 triton fwrule create --disabled
ok 12 stdout matches /^Created firewall rule ([a-f0-9-]{36}) \(disabled\)$/m: "Created firewall rule 114744d6-2c0a-4bc4-b7ba-96c97ecdca87 (disabled)\n"
ok 13 (unnamed assert)
# triton fwrule get (disabled)
ok 14 triton fwrule get
ok 15 fwrule rule is correct
ok 16 fwrule is disabled
# triton fwrule create
ok 17 triton fwrule create
ok 18 stdout matches /^Created firewall rule ([a-f0-9-]{36})$/m: "Created firewall rule 26d7ca1c-8394-4eee-803b-d1d4fb931b15\n"
ok 19 (unnamed assert)
# triton fwrule get
ok 20 triton fwrule get
ok 21 fwrule rule is correct
ok 22 fwrule was properly created
ok 23 fwrule enabled defaults to true
# triton fwrule enable
ok 24 triton fwrule enable
ok 25 (unnamed assert)
# triton fwrule disable
ok 26 triton fwrule disable
ok 27 (unnamed assert)
# triton fwrule update
ok 28 triton fwrule update
ok 29 (unnamed assert)
# triton fwrule list
ok 30 triton fwrule list
ok 31 (unnamed assert)
ok 32 triton fwrule list expected fwrule num
ok 33 triton fwrule list test rule found
# triton fwrules
ok 34 triton fwrule list
ok 35 (unnamed assert)
ok 36 triton fwrule list expected fwrule num
ok 37 triton fwrule list test rule found
# triton fwrule instances
ok 38 triton fwrule instances
ok 39 (unnamed assert)
ok 40 triton fwrule instances expected num machines
ok 41 triton fwrule instances test machine found
# triton instance fwrules
ok 42 triton fwrule list
ok 43 (unnamed assert)
ok 44 triton fwrule list expected fwrule num
ok 45 triton fwrule list test rule found
# triton instance fwrule list
ok 46 triton fwrule list
ok 47 (unnamed assert)
ok 48 triton fwrule list expected fwrule num
ok 49 triton fwrule list test rule found
# triton fwrule delete
ok 50 triton fwrule delete
ok 51 rule deleted
# triton instance enable-firewall
ok 52 triton instance enable-firewall
ok 53 firewall enabled
ok 54 triton instance get
ok 55 should be equal
# triton instance disable-firewall
ok 56 triton instance disable-firewall
ok 57 firewall disabled
ok 58 triton instance get
ok 59 should be equal
# cleanup: triton rm INST
ok 60 ran "triton inst rm -w 98ebb5d2-8f5e-6eac-e842-f6dcbf86031a", err=null
ok 61 empty stderr
ok 62 deleted inst 98ebb5d2-8f5e-6eac-e842-f6dcbf86031a
1..62
# tests 62
# pass 62
# ok
}
ok 12 - test/integration/cli-image-create-kvm.test.js # SKIP {
1..0
# tests 0
# pass 0
# ok
}
ok 13 - test/integration/cli-image-create.test.js # time=430265.7ms {
# triton image ...
# Test config:
# - profileName: "nodetritontest-east3b"
# - allowWriteActions: true
# - allowRbacDestructiveTesting: true
# - skipKvmTests: true
# - image: "minimal-64"
# - package: "g4-highcpu-128M"
# - resizePackage: "g4-highcpu-256M"
# - profile: {"url":"https://us-east-3b.api.joyent.com","account":"nodetritontest","keyId":"de:e7:73:9a:b0:91:31:3e:72:8d:9f:62:ca:58:a2:ec","name":"nodetritontest-east3b","insecure":false}
# setup: rm existing origin inst nodetritontest-images-bluesteel.local-origin
ok 1 ran "triton inst rm -w 2c528d65-72a9-497d-ebad-eb56725c6a39", err=null
ok 2 empty stderr
ok 3 deleted inst 2c528d65-72a9-497d-ebad-eb56725c6a39
# setup: rm existing derived inst nodetritontest-images-bluesteel.local-derived
ok 4 no pre-existing inst nodetritontest-images-bluesteel.local-derived
# setup: rm existing img nodetritontest-images-bluesteel.local@1.0.0
ok 5 no pre-existing img nodetritontest-images-bluesteel.local@1.0.0
# setup: find origin image
ok 6 image from config: minimal-64
ok 7 getTestImg
# setup: find test package
ok 8 package from config: g4-highcpu-128M
ok 9 getTestPkg
# setup: triton create ... -n nodetritontest-images-bluesteel.local-origin
ok 10 ran "triton create -wj -n nodetritontest-images-bluesteel.local-origin -m user-script=touch /nodetritontest-was-here.txt minimal-64 g4-highcpu-128M", err=null
ok 11 empty stderr
ok 12 originInst.id: 69917f89-329d-4a59-8372-d8e56b840b2e
ok 13 originInst is running
# triton image create ...
ok 14 ran "triton image create -j -w -t foo=bar 69917f89-329d-4a59-8372-d8e56b840b2e nodetritontest-images-bluesteel.local 1.0.0", err=null
ok 15 empty stderr
ok 16 created image, id=1e134a5e-9f48-469e-a046-20130f5207ec
ok 17 img.name
ok 18 img.version
ok 19 img.public is false
ok 20 img.state is active
ok 21 img.origin
# triton create ... -n nodetritontest-images-bluesteel.local-derived
ok 22 have an img to test
ok 23 ran "triton create -wj -n nodetritontest-images-bluesteel.local-derived 1e134a5e-9f48-469e-a046-20130f5207ec g4-highcpu-128M", err=null
ok 24 empty stderr
ok 25 derivedInst.id: 28011661-b7c5-40d8-9c9f-fce09ec4a3ee
ok 26 derivedInst is running
# triton image share ...
ok 27 ran "triton image share 1e134a5e-9f48-469e-a046-20130f5207ec b54cbff9-e674-4b07-8a33-6e91708e2f9f", err=null
ok 28 empty stderr
ok 29 ran "triton image get -j 1e134a5e-9f48-469e-a046-20130f5207ec", err=null
ok 30 empty stderr
ok 31 image get response
ok 32 image share result
ok 33 image share result.acl
ok 34 image share result.acl contains uuid
ok 35 ran "triton image unshare 1e134a5e-9f48-469e-a046-20130f5207ec b54cbff9-e674-4b07-8a33-6e91708e2f9f", err=null
ok 36 empty stderr
ok 37 ran "triton image get -j 1e134a5e-9f48-469e-a046-20130f5207ec", err=null
ok 38 empty stderr
ok 39 image get response
ok 40 image unshare result
ok 41 image has no acl
# cleanup: triton rm
ok 42 ran "triton rm -w 69917f89-329d-4a59-8372-d8e56b840b2e 28011661-b7c5-40d8-9c9f-fce09ec4a3ee", err=null
ok 43 empty stderr
# cleanup: triton image rm
ok 44 ran "triton image rm -f 1e134a5e-9f48-469e-a046-20130f5207ec", err=null
ok 45 empty stderr
1..45
# tests 45
# pass 45
# ok
}
ok 14 - test/integration/cli-instance-tag.test.js # time=214814.416ms {
# triton inst tag ...
# Test config:
# - profileName: "nodetritontest-east3b"
# - allowWriteActions: true
# - allowRbacDestructiveTesting: true
# - skipKvmTests: true
# - image: "minimal-64"
# - package: "g4-highcpu-128M"
# - resizePackage: "g4-highcpu-256M"
# - profile: {"url":"https://us-east-3b.api.joyent.com","account":"nodetritontest","keyId":"de:e7:73:9a:b0:91:31:3e:72:8d:9f:62:ca:58:a2:ec","name":"nodetritontest-east3b","insecure":false}
# cleanup: rm inst nodetritontest-insttag-bluesteel.local if exists
ok 1 ran "triton inst rm -w c7ae2734-e47b-61f8-a6f6-a43850aeaa09", err=null
ok 2 empty stderr
ok 3 deleted inst c7ae2734-e47b-61f8-a6f6-a43850aeaa09
ok 4 undefined
# setup: find test image
ok 5 image from config: minimal-64
ok 6 getTestImg
# setup: find test package
ok 7 package from config: g4-highcpu-128M
ok 8 getTestPkg
# setup: triton create nodetritontest-insttag-bluesteel.local
ok 9 ran "triton create -wj --tag blah=bling -n nodetritontest-insttag-bluesteel.local minimal-64 g4-highcpu-128M", err=null
ok 10 empty stderr
ok 11 created test inst (131s)
ok 12 "blah" tag set
ok 13 inst is running
# triton inst tag ls INST
ok 14 ran "triton inst tag ls nodetritontest-insttag-bluesteel.local", err=null
ok 15 empty stderr
ok 16 should be equivalent
# triton inst tags INST
ok 17 ran "triton inst tags nodetritontest-insttag-bluesteel.local", err=null
ok 18 empty stderr
ok 19 should be equivalent
# triton inst tag set -w INST name=value
ok 20 ran "triton inst tag set -w f5339c44-2318-41b9-ea43-85b732a8c46a foo=bar pi=3.14 really=true", err=null
ok 21 empty stderr
ok 22 should be equivalent
# triton inst get INST foo
ok 23 ran "triton inst tag get f5339c44 foo", err=null
ok 24 empty stderr
ok 25 should be equal
# triton inst get INST foo -j
ok 26 ran "triton inst tag get f5339c44-2318-41b9-ea43-85b732a8c46a foo -j", err=null
ok 27 empty stderr
ok 28 should be equal
# triton inst get INST really -j
ok 29 ran "triton inst tag get nodetritontest-insttag-bluesteel.local really -j", err=null
ok 30 empty stderr
ok 31 should be equal
# triton inst tag set -w INST -f tags.json
ok 32 ran "triton inst tag set -w nodetritontest-insttag-bluesteel.local -f /Users/trentm/joy/node-triton/test/integration/data/tags.json", err=null
ok 33 empty stderr
ok 34 should be equivalent
# triton inst tag set -w INST -f tags.kv
ok 35 ran "triton inst tag set -w nodetritontest-insttag-bluesteel.local -f /Users/trentm/joy/node-triton/test/integration/data/tags.kv", err=null
ok 36 empty stderr
ok 37 should be equivalent
# triton inst tag rm -w INST key really
ok 38 ran "triton inst tag rm -w nodetritontest-insttag-bluesteel.local key really", err=null
ok 39 empty stderr
ok 40 Deleted tag key ...:Deleted tag key on instance nodetritontest-insttag-bluesteel.local
ok 41 Deleted tag really ...:Deleted tag really on instance nodetritontest-insttag-bluesteel.local
# triton inst tag list INST
ok 42 ran "triton inst tag list nodetritontest-insttag-bluesteel.local", err=null
ok 43 empty stderr
ok 44 should be equivalent
# triton inst tag replace-all -w INST ...
ok 45 ran "triton inst tag replace-all -w nodetritontest-insttag-bluesteel.local whoa=there", err=null
ok 46 empty stderr
ok 47 should be equivalent
# triton inst tag delete -w -a INST
ok 48 ran "triton inst tag delete -w -a nodetritontest-insttag-bluesteel.local", err=null
ok 49 empty stderr
ok 50 should be equal
# triton inst tags INST
ok 51 ran "triton inst tags nodetritontest-insttag-bluesteel.local", err=null
ok 52 empty stderr
ok 53 should be equal
# cleanup: triton rm INST
ok 54 ran "triton rm -w f5339c44-2318-41b9-ea43-85b732a8c46a", err=null
ok 55 empty stderr
1..55
# tests 55
# pass 55
# ok
}
ok 15 - test/integration/cli-ips.test.js # time=13562.551ms {
# triton network ip list
# triton network ip list -h
ok 1 null
ok 2 (unnamed assert)
# triton networks -j
ok 3 null
ok 4 have at least one fabric network
ok 5 (unnamed assert)
# triton network ip list
ok 6 (unnamed assert)
ok 7 (unnamed assert)
# triton network ip list ID
ok 8 null
ok 9 (unnamed assert)
ok 10 (unnamed assert)
# triton network ip list SHORTID
ok 11 null
ok 12 (unnamed assert)
ok 13 (unnamed assert)
# triton network ip list -j
ok 14 null
ok 15 have at least one ip
ok 16 ip obj has an ip
# triton network ip get
# triton network ip get -h
ok 17 null
ok 18 (unnamed assert)
# triton network ip help get
ok 19 null
ok 20 (unnamed assert)
# triton network ip get
ok 21 (unnamed assert)
ok 22 (unnamed assert)
# triton network ip get ID IP
ok 23 null
ok 24 should be equal
# triton network ip get SHORTID IP
ok 25 null
ok 26 should be equal
# triton network ip get NAME IP
ok 27 null
ok 28 should be equal
1..28
# tests 28
# pass 28
# ok
}
ok 16 - test/integration/cli-keys.test.js # time=6246.357ms {
# triton key
# triton key add
ok 1 triton key add
ok 2 should be equal
# triton key get
ok 3 triton key get
ok 4 test key email present
# triton key list
ok 5 triton key list
ok 6 (unnamed assert)
ok 7 triton key list expected key num
ok 8 triton key list test key found
# triton key delete
ok 9 triton key delete
ok 10 key deleted
ok 11 triton key delete did not remove key
1..11
# tests 11
# pass 11
# ok
}
ok 17 - test/integration/cli-manage-workflow.test.js # time=433944.315ms {
# triton manage workflow
# Test config:
# - profileName: "nodetritontest-east3b"
# - allowWriteActions: true
# - allowRbacDestructiveTesting: true
# - skipKvmTests: true
# - image: "minimal-64"
# - package: "g4-highcpu-128M"
# - resizePackage: "g4-highcpu-256M"
# - profile: {"url":"https://us-east-3b.api.joyent.com","account":"nodetritontest","keyId":"de:e7:73:9a:b0:91:31:3e:72:8d:9f:62:ca:58:a2:ec","name":"nodetritontest-east3b","insecure":false}
# cleanup existing inst with alias nodetritontest-managewf-bluesteel.local
ok 1 ran "triton inst rm -w ff42cc4f-486d-c499-f106-8ac8329a04c2", err=null
ok 2 empty stderr
ok 3 deleted inst ff42cc4f-486d-c499-f106-8ac8329a04c2
ok 4 undefined
# setup: find test image
ok 5 image from config: minimal-64
ok 6 getTestImg
# setup: find test package
ok 7 package from config: g4-highcpu-128M
ok 8 getTestPkg
# setup: find resize test package
ok 9 resizePackage from config: g4-highcpu-256M
ok 10 getResizeTestPkg
# setup: triton create
ok 11 ran "triton create -wj -m foo=bar --script /Users/trentm/joy/node-triton/test/integration/script-log-boot.sh --tag blah=bling -n nodetritontest-managewf-bluesteel.local minimal-64 g4-highcpu-128M", err=null
ok 12 empty stderr
ok 13 correct UUID given
ok 14 foo metadata set
ok 15 user-script set
ok 16 blah tag set
ok 17 correct machine state
# triton instance get
ok 18 ran "triton instance get -j 6daec5d0-bef3-4bff-aacb-c6665978267a", err=null
ok 19 empty stderr
ok 20 ran "triton instance get -j nodetritontest-managewf-bluesteel.local", err=null
ok 21 empty stderr
ok 22 ran "triton instance get -j 6daec5d0", err=null
ok 23 empty stderr
ok 24 no error
ok 25 foo metadata set
ok 26 same data
ok 27 same data
ok 28 same data
# triton delete
ok 29 ran "triton delete -w 6daec5d0-bef3-4bff-aacb-c6665978267a", err=null
ok 30 empty stderr
# triton inst get (deleted)
ok 31 got err: VError: exec error: command: /Users/trentm/opt/node-4.9.1/bin/node,/Users/trentm/joy/node-triton/bin/triton,inst,get,6daec5d0-bef3-4bff-aacb-c6665978267a exit status: 3 stdout: { "id": "6daec5d0-bef3-4bff-aacb-c6665978267a", "name": "nodetritontest-managewf-bluesteel.local", "type": "smartmachine", "brand": "joyent", "state": "deleted", "image": "03fba0ca-acff-11e7-9ec6-07009fb6ab46", "ips": [ "165.225.169.90" ], "memory": 128, "disk": 0, "deletion_protection": false, "metadata": {}, "tags": {}, "created": "2018-04-26T18:36:44.064Z", "updated": "2018-04-26T18:38:57.000Z", "networks": [ "feb7b2c5-0063-42f0-a4e6-b812917397f7" ], "primaryIp": "165.225.169.90", "firewall_enabled": false, "compute_node": "00000000-0000-0000-0000-0025909437fc", "package": "g4-highcpu-128M", "dns_names": [] } stderr: triton instance get: error (InstanceDeleted): instance 6daec5d0-bef3-4bff-aacb-c6665978267a was deleted: Command failed: /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton inst get 6daec5d0-bef3-4bff-aacb-c6665978267a triton instance get: error (InstanceDeleted): instance 6daec5d0-bef3-4bff-aacb-c6665978267a was deleted
ok 32 exit status of 3
ok 33 stderr matched /InstanceDeleted/: "triton instance get: error (InstanceDeleted): instance 6daec5d0-bef3-4bff-aacb-c6665978267a was deleted\n"
ok 34 still got stdout
ok 35 instance state is "deleted"
# triton create
ok 36 ran "triton create -jn nodetritontest-managewf-bluesteel.local minimal-64 g4-highcpu-128M", err=null
ok 37 empty stderr
ok 38 correct number of JSON lines
ok 39 correct machine state
# triton inst wait
ok 40 ran "triton inst wait 3764c357-2c21-4f68-e5e5-ce16085be879", err=null
ok 41 empty stderr
ok 42 correct number of stdout lines
ok 43 first line correct
ok 44 second line correct
# triton stop
ok 45 ran "triton stop -w nodetritontest-managewf-bluesteel.local", err=null
ok 46 empty stderr
ok 47 (unnamed assert)
# triton confirm stopped
ok 48 ran "triton inst get -j nodetritontest-managewf-bluesteel.local", err=null
ok 49 empty stderr
ok 50 machine stopped
# triton start
ok 51 ran "triton start -w nodetritontest-managewf-bluesteel.local", err=null
ok 52 empty stderr
ok 53 (unnamed assert)
# confirm running
ok 54 ran "triton inst get -j nodetritontest-managewf-bluesteel.local", err=null
ok 55 empty stderr
ok 56 machine running
# triton reboot
ok 57 ran "triton reboot -w nodetritontest-managewf-bluesteel.local", err=null
ok 58 empty stderr
ok 59 "Rebooting ..." in stdout
ok 60 "Rebooted ..." in stdout
# confirm running
ok 61 ran "triton inst get -j nodetritontest-managewf-bluesteel.local", err=null
ok 62 empty stderr
ok 63 machine running
# triton inst resize
ok 64 ran "triton inst resize -w 3764c357-2c21-4f68-e5e5-ce16085be879 g4-highcpu-256M", err=null
ok 65 empty stderr
ok 66 "Resizing instance" in stdout
ok 67 "Resized instance" in stdout
# confirm resized
ok 68 ran "triton inst get -j nodetritontest-managewf-bluesteel.local", err=null
ok 69 empty stderr
ok 70 instance was resized
# triton inst rename
ok 71 ran "triton inst rename -w 3764c357-2c21-4f68-e5e5-ce16085be879 nodetritontest-managewf-bluesteel.local-renamed", err=null
ok 72 empty stderr
ok 73 "Renaming instance" in stdout
ok 74 "Renamed instance" in stdout
# confirm renamed
ok 75 ran "triton inst get -j nodetritontest-managewf-bluesteel.local-renamed", err=null
ok 76 empty stderr
ok 77 instance was renamed
# cleanup (triton delete)
ok 78 ran "triton delete -w 3764c357-2c21-4f68-e5e5-ce16085be879", err=null
ok 79 empty stderr
1..79
# tests 79
# pass 79
# ok
}
ok 18 - test/integration/cli-networks.test.js # time=15333.969ms {
# triton networks
# triton network list -h
ok 1 null
ok 2 (unnamed assert)
# triton help networks
ok 3 null
ok 4 (unnamed assert)
# triton networks
ok 5 null
ok 6 (unnamed assert)
ok 7 (unnamed assert)
# triton network list
ok 8 null
ok 9 (unnamed assert)
ok 10 (unnamed assert)
# triton networks public=false
ok 11 null
ok 12 should be equal
# triton network list public=false
ok 13 null
ok 14 should be equal
# triton network list public=true
ok 15 null
ok 16 should be equal
# triton network list public=bogus
ok 17 VError: exec error: command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton network list public=bogus exit status: 1 stdout: stderr: triton network: error: invalid boolean value for public: "bogus": Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton network list public=bogus triton network: error: invalid boolean value for public: "bogus"
# triton networks -l
ok 18 null
ok 19 (unnamed assert)
# triton networks -j
ok 20 null
ok 21 have at least one network
ok 22 (unnamed assert)
# triton network get
# triton network get -h
ok 23 null
ok 24 (unnamed assert)
# triton network help get
ok 25 null
ok 26 (unnamed assert)
# triton network get
ok 27 (unnamed assert)
ok 28 (unnamed assert)
# triton network get ID
ok 29 null
ok 30 should be equal
# triton network get SHORTID
ok 31 null
ok 32 should be equal
# triton network get NAME
ok 33 null
ok 34 should be equal
1..34
# tests 34
# pass 34
# ok
}
not ok 19 - test/integration/cli-nics.test.js # time=170563.916ms
---
file: test/integration/cli-nics.test.js
command: /Users/trentm/opt/node-4.9.1/bin/node
args:
- test/integration/cli-nics.test.js
stdio:
- 0
- pipe
- 2
cwd: /Users/trentm/joy/node-triton
failures:
- tapError: no plan
exitCode: 1
...
{
# triton instance nics
# Test config:
# - profileName: "nodetritontest-east3b"
# - allowWriteActions: true
# - allowRbacDestructiveTesting: true
# - skipKvmTests: true
# - image: "minimal-64"
# - package: "g4-highcpu-128M"
# - resizePackage: "g4-highcpu-256M"
# - profile: {"url":"https://us-east-3b.api.joyent.com","account":"nodetritontest","keyId":"de:e7:73:9a:b0:91:31:3e:72:8d:9f:62:ca:58:a2:ec","name":"nodetritontest-east3b","insecure":false}
# cleanup existing inst with alias nodetritontest-nics-bluesteel.local
ok 1 ran "triton inst rm -w e0d07d30-9048-e132-fe23-f0bd8e43c89f", err=null
ok 2 empty stderr
ok 3 deleted inst e0d07d30-9048-e132-fe23-f0bd8e43c89f
ok 4 undefined
# setup: triton instance create
ok 5 package from config: g4-highcpu-128M
ok 6 null
ok 7 image from config: minimal-64
ok 8 null
not ok 9 create test instance
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M
at: maybeClose (internal/child_process.js:862:16)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M
exit status: 1
stdout:
Creating instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577, minimal-64@17.3.0)
stderr:
triton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577): Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M
triton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M\n\texit status: 1\n\tstdout:\nCreating instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577, minimal-64@17.3.0)\n\tstderr:\ntriton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M\n\texit status: 1\n\tstdout:\nCreating instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577, minimal-64@17.3.0)\n\tstderr:\ntriton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577): Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M\ntriton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)\n' }
not ok 10 triton instance create
---
operator: error
expected: |-
undefined
actual: |-
{ code: 1, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:71:7)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M
exit status: 1
stdout:
Creating instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577, minimal-64@17.3.0)
stderr:
triton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577): Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M
triton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)
] killed: false, code: 1, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M\n\texit status: 1\n\tstdout:\nCreating instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577, minimal-64@17.3.0)\n\tstderr:\ntriton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M\n\texit status: 1\n\tstdout:\nCreating instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577, minimal-64@17.3.0)\n\tstderr:\ntriton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577): Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance create -w -n nodetritontest-nics-bluesteel.local minimal-64 g4-highcpu-128M\ntriton instance create: error: failed to create instance nodetritontest-nics-bluesteel.local (16762292-5906-43de-fa79-ce03d8e65577)\n' }
not ok 11 triton instance create: error body
---
operator: deepEqual
expected: {}
actual: undefined
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:73:11)
...
# setup: find network for tests
ok 12 triton network list
ok 13 NETWORK
# triton instance nic create
not ok 14 triton instance nic create
---
operator: error
expected: |-
undefined
actual: |-
{ code: 3, jse_cause: { [Error: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance nic create -j -w undefined 2d035b65-af02-4ca3-a077-d42598745f2b
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:71:7)
stack: |-
VError: exec error:
command: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance nic create -j -w undefined 2d035b65-af02-4ca3-a077-d42598745f2b
exit status: 3
stdout:
stderr:
triton instance nic create: error (ResourceNotFound): no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance nic create -j -w undefined 2d035b65-af02-4ca3-a077-d42598745f2b
triton instance nic create: error (ResourceNotFound): no instance with name or short id "undefined" was found
at /Users/trentm/joy/node-triton/test/lib/testcommon.js:48:27
at ChildProcess.exithandler (child_process.js:207:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
...
triton instance nic create: error (ResourceNotFound): no instance with name or short id "undefined" was found
] killed: false, code: 3, signal: null, cmd: '/bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance nic create -j -w undefined 2d035b65-af02-4ca3-a077-d42598745f2b' }, jse_info: {}, jse_shortmsg: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance nic create -j -w undefined 2d035b65-af02-4ca3-a077-d42598745f2b\n\texit status: 3\n\tstdout:\n\n\tstderr:\ntriton instance nic create: error (ResourceNotFound): no instance with name or short id "undefined" was found', message: 'exec error:\n\tcommand: /bin/sh,-c,/Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance nic create -j -w undefined 2d035b65-af02-4ca3-a077-d42598745f2b\n\texit status: 3\n\tstdout:\n\n\tstderr:\ntriton instance nic create: error (ResourceNotFound): no instance with name or short id "undefined" was found: Command failed: /bin/sh -c /Users/trentm/opt/node-4.9.1/bin/node /Users/trentm/joy/node-triton/bin/triton instance nic create -j -w undefined 2d035b65-af02-4ca3-a077-d42598745f2b\ntriton instance nic create: error (ResourceNotFound): no instance with name or short id "undefined" was found\n' }
not ok 15 triton instance nic create: error body
---
operator: deepEqual
expected: {}
actual: undefined
at: Object.ifErr (/Users/trentm/joy/node-triton/test/lib/testcommon.js:73:11)
...
# triton instance nic get
# test count(15) != plan(null)
# failed 6 of 15 tests
}
ok 20 - test/integration/cli-profiles.test.js # time=1924.414ms {
# triton profiles (read only)
# triton profile get env
ok 1 ran "triton profile get -j env", err=null
ok 2 empty stderr
ok 3 env account correct
ok 4 env keyId correct
ok 5 env url correct
# triton profiles (read/write)
# triton profile create
ok 6 ran "triton profile create --no-docker -f /Users/trentm/joy/node-triton/test/integration/test-profile.json", err=null
ok 7 empty stderr
ok 8 stdout correct
# triton profile get
ok 9 ran "triton profile get -j node-triton-test-profile-1", err=null
ok 10 empty stderr
ok 11 profile matched
# triton profile delete
ok 12 ran "triton profile delete -f node-triton-test-profile-1", err=null
ok 13 empty stderr
ok 14 stdout correct
1..14
# tests 14
# pass 14
# ok
}
ok 21 - test/integration/cli-snapshots.test.js # time=220728.553ms {
# triton instance snapshot
# Test config:
# - profileName: "nodetritontest-east3b"
# - allowWriteActions: true
# - allowRbacDestructiveTesting: true
# - skipKvmTests: true
# - image: "minimal-64"
# - package: "g4-highcpu-128M"
# - resizePackage: "g4-highcpu-256M"
# - profile: {"url":"https://us-east-3b.api.joyent.com","account":"nodetritontest","keyId":"de:e7:73:9a:b0:91:31:3e:72:8d:9f:62:ca:58:a2:ec","name":"nodetritontest-east3b","insecure":false}
# cleanup existing inst with alias nodetritontest-snapshots-bluesteel.local
ok 1 ran "triton inst rm -w 0aac6f09-70c6-657f-ad0a-9677a3c46e88", err=null
ok 2 empty stderr
ok 3 deleted inst 0aac6f09-70c6-657f-ad0a-9677a3c46e88
ok 4 undefined
# setup: triton instance create
ok 5 package from config: g4-highcpu-128M
ok 6 null
ok 7 image from config: minimal-64
ok 8 null
ok 9 create test instance
ok 10 triton instance create
# triton instance snapshot create
ok 11 triton instance snapshot create
ok 12 snapshot made
# triton instance snapshot get
ok 13 triton instance snapshot get
ok 14 snapshot name is correct
ok 15 snapshot was properly created
# triton instance snapshot list
ok 16 triton instance snapshot list
ok 17 (unnamed assert)
ok 18 triton snap list expected snap num
ok 19 triton snap list test snap found
# triton instance start --snapshot
ok 20 triton instance start --snapshot
ok 21 (unnamed assert)
# triton instance snapshot delete
ok 22 triton instance snapshot delete
ok 23 (unnamed assert)
ok 24 (unnamed assert)
# cleanup: triton instance rm INST
ok 25 ran "triton inst rm -w d900e796-8735-6c46-8c66-9cd3d16b0ed2", err=null
ok 26 empty stderr
ok 27 deleted inst d900e796-8735-6c46-8c66-9cd3d16b0ed2
1..27
# tests 27
# pass 27
# ok
}
ok 22 - test/integration/cli-subcommands.test.js # time=95437.823ms {
# triton subcommands
# [info]
# triton help info
ok 1 no error
ok 2 stderr produced
ok 3 stdout empty
# triton info -h
ok 4 no error
ok 5 stderr produced
ok 6 stdout empty
# [profile]
# triton help profile
ok 7 no error
ok 8 stderr produced
ok 9 stdout empty
# triton profile -h
ok 10 no error
ok 11 stderr produced
ok 12 stdout empty
# [profile list,profile ls,profiles]
# triton profile help list
ok 13 no error
ok 14 stderr produced
ok 15 stdout empty
# triton profile list -h
ok 16 no error
ok 17 stderr produced
ok 18 stdout empty
# triton profile help ls
ok 19 no error
ok 20 stderr produced
ok 21 stdout empty
# triton profile ls -h
ok 22 no error
ok 23 stderr produced
ok 24 stdout empty
# triton help profiles
ok 25 no error
ok 26 stderr produced
ok 27 stdout empty
# triton profiles -h
ok 28 no error
ok 29 stderr produced
ok 30 stdout empty
# [profile get]
# triton profile help get
ok 31 no error
ok 32 stderr produced
ok 33 stdout empty
# triton profile get -h
ok 34 no error
ok 35 stderr produced
ok 36 stdout empty
# [profile set-current]
# triton profile help set-current
ok 37 no error
ok 38 stderr produced
ok 39 stdout empty
# triton profile set-current -h
ok 40 no error
ok 41 stderr produced
ok 42 stdout empty
# [profile create]
# triton profile help create
ok 43 no error
ok 44 stderr produced
ok 45 stdout empty
# triton profile create -h
ok 46 no error
ok 47 stderr produced
ok 48 stdout empty
# [profile edit]
# triton profile help edit
ok 49 no error
ok 50 stderr produced
ok 51 stdout empty
# triton profile edit -h
ok 52 no error
ok 53 stderr produced
ok 54 stdout empty
# [profile delete,profile rm]
# triton profile help delete
ok 55 no error
ok 56 stderr produced
ok 57 stdout empty
# triton profile delete -h
ok 58 no error
ok 59 stderr produced
ok 60 stdout empty
# triton profile help rm
ok 61 no error
ok 62 stderr produced
ok 63 stdout empty
# triton profile rm -h
ok 64 no error
ok 65 stderr produced
ok 66 stdout empty
# [env]
# triton help env
ok 67 no error
ok 68 stderr produced
ok 69 stdout empty
# triton env -h
ok 70 no error
ok 71 stderr produced
ok 72 stdout empty
# [completion]
# triton help completion
ok 73 no error
ok 74 stderr produced
ok 75 stdout empty
# triton completion -h
ok 76 no error
ok 77 stderr produced
ok 78 stdout empty
# [account]
# triton help account
ok 79 no error
ok 80 stderr produced
ok 81 stdout empty
# triton account -h
ok 82 no error
ok 83 stderr produced
ok 84 stdout empty
# [account get]
# triton account help get
ok 85 no error
ok 86 stderr produced
ok 87 stdout empty
# triton account get -h
ok 88 no error
ok 89 stderr produced
ok 90 stdout empty
# [account update]
# triton account help update
ok 91 no error
ok 92 stderr produced
ok 93 stdout empty
# triton account update -h
ok 94 no error
ok 95 stderr produced
ok 96 stdout empty
# [services]
# triton help services
ok 97 no error
ok 98 stderr produced
ok 99 stdout empty
# triton services -h
ok 100 no error
ok 101 stderr produced
ok 102 stdout empty
# [datacenters]
# triton help datacenters
ok 103 no error
ok 104 stderr produced
ok 105 stdout empty
# triton datacenters -h
ok 106 no error
ok 107 stderr produced
ok 108 stdout empty
# [instance,inst]
# triton help instance
ok 109 no error
ok 110 stderr produced
ok 111 stdout empty
# triton instance -h
ok 112 no error
ok 113 stderr produced
ok 114 stdout empty
# triton help inst
ok 115 no error
ok 116 stderr produced
ok 117 stdout empty
# triton inst -h
ok 118 no error
ok 119 stderr produced
ok 120 stdout empty
# [instance list,instance ls,instances,insts,ls]
# triton instance help list
ok 121 no error
ok 122 stderr produced
ok 123 stdout empty
# triton instance list -h
ok 124 no error
ok 125 stderr produced
ok 126 stdout empty
# triton instance help ls
ok 127 no error
ok 128 stderr produced
ok 129 stdout empty
# triton instance ls -h
ok 130 no error
ok 131 stderr produced
ok 132 stdout empty
# triton help instances
ok 133 no error
ok 134 stderr produced
ok 135 stdout empty
# triton instances -h
ok 136 no error
ok 137 stderr produced
ok 138 stdout empty
# triton help insts
ok 139 no error
ok 140 stderr produced
ok 141 stdout empty
# triton insts -h
ok 142 no error
ok 143 stderr produced
ok 144 stdout empty
# triton help ls
ok 145 no error
ok 146 stderr produced
ok 147 stdout empty
# triton ls -h
ok 148 no error
ok 149 stderr produced
ok 150 stdout empty
# [instance get]
# triton instance help get
ok 151 no error
ok 152 stderr produced
ok 153 stdout empty
# triton instance get -h
ok 154 no error
ok 155 stderr produced
ok 156 stdout empty
# [instance create,create]
# triton instance help create
ok 157 no error
ok 158 stderr produced
ok 159 stdout empty
# triton instance create -h
ok 160 no error
ok 161 stderr produced
ok 162 stdout empty
# triton help create
ok 163 no error
ok 164 stderr produced
ok 165 stdout empty
# triton create -h
ok 166 no error
ok 167 stderr produced
ok 168 stdout empty
# [instance start,start]
# triton instance help start
ok 169 no error
ok 170 stderr produced
ok 171 stdout empty
# triton instance start -h
ok 172 no error
ok 173 stderr produced
ok 174 stdout empty
# triton help start
ok 175 no error
ok 176 stderr produced
ok 177 stdout empty
# triton start -h
ok 178 no error
ok 179 stderr produced
ok 180 stdout empty
# [instance stop,stop]
# triton instance help stop
ok 181 no error
ok 182 stderr produced
ok 183 stdout empty
# triton instance stop -h
ok 184 no error
ok 185 stderr produced
ok 186 stdout empty
# triton help stop
ok 187 no error
ok 188 stderr produced
ok 189 stdout empty
# triton stop -h
ok 190 no error
ok 191 stderr produced
ok 192 stdout empty
# [instance reboot,reboot]
# triton instance help reboot
ok 193 no error
ok 194 stderr produced
ok 195 stdout empty
# triton instance reboot -h
ok 196 no error
ok 197 stderr produced
ok 198 stdout empty
# triton help reboot
ok 199 no error
ok 200 stderr produced
ok 201 stdout empty
# triton reboot -h
ok 202 no error
ok 203 stderr produced
ok 204 stdout empty
# [instance delete,instance rm,delete,rm]
# triton instance help delete
ok 205 no error
ok 206 stderr produced
ok 207 stdout empty
# triton instance delete -h
ok 208 no error
ok 209 stderr produced
ok 210 stdout empty
# triton instance help rm
ok 211 no error
ok 212 stderr produced
ok 213 stdout empty
# triton instance rm -h
ok 214 no error
ok 215 stderr produced
ok 216 stdout empty
# triton help delete
ok 217 no error
ok 218 stderr produced
ok 219 stdout empty
# triton delete -h
ok 220 no error
ok 221 stderr produced
ok 222 stdout empty
# triton help rm
ok 223 no error
ok 224 stderr produced
ok 225 stdout empty
# triton rm -h
ok 226 no error
ok 227 stderr produced
ok 228 stdout empty
# [instance enable-firewall]
# triton instance help enable-firewall
ok 229 no error
ok 230 stderr produced
ok 231 stdout empty
# triton instance enable-firewall -h
ok 232 no error
ok 233 stderr produced
ok 234 stdout empty
# [instance disable-firewall]
# triton instance help disable-firewall
ok 235 no error
ok 236 stderr produced
ok 237 stdout empty
# triton instance disable-firewall -h
ok 238 no error
ok 239 stderr produced
ok 240 stdout empty
# [instance enable-deletion-protection]
# triton instance help enable-deletion-protection
ok 241 no error
ok 242 stderr produced
ok 243 stdout empty
# triton instance enable-deletion-protection -h
ok 244 no error
ok 245 stderr produced
ok 246 stdout empty
# [instance disable-deletion-protection]
# triton instance help disable-deletion-protection
ok 247 no error
ok 248 stderr produced
ok 249 stdout empty
# triton instance disable-deletion-protection -h
ok 250 no error
ok 251 stderr produced
ok 252 stdout empty
# [instance rename]
# triton instance help rename
ok 253 no error
ok 254 stderr produced
ok 255 stdout empty
# triton instance rename -h
ok 256 no error
ok 257 stderr produced
ok 258 stdout empty
# [instance ssh]
# triton instance help ssh
ok 259 no error
ok 260 stderr produced
ok 261 stdout empty
# triton instance ssh -h
ok 262 no error
ok 263 stderr produced
ok 264 stdout empty
# [instance ip]
# triton instance help ip
ok 265 no error
ok 266 stderr produced
ok 267 stdout empty
# triton instance ip -h
ok 268 no error
ok 269 stderr produced
ok 270 stdout empty
# [instance wait]
# triton instance help wait
ok 271 no error
ok 272 stderr produced
ok 273 stdout empty
# triton instance wait -h
ok 274 no error
ok 275 stderr produced
ok 276 stdout empty
# [instance audit]
# triton instance help audit
ok 277 no error
ok 278 stderr produced
ok 279 stdout empty
# triton instance audit -h
ok 280 no error
ok 281 stderr produced
ok 282 stdout empty
# [instance fwrules]
# triton instance help fwrules
ok 283 no error
ok 284 stderr produced
ok 285 stdout empty
# triton instance fwrules -h
ok 286 no error
ok 287 stderr produced
ok 288 stdout empty
# [instance snapshot]
# triton instance help snapshot
ok 289 no error
ok 290 stderr produced
ok 291 stdout empty
# triton instance snapshot -h
ok 292 no error
ok 293 stderr produced
ok 294 stdout empty
# [instance snapshot create]
# triton instance snapshot help create
ok 295 no error
ok 296 stderr produced
ok 297 stdout empty
# triton instance snapshot create -h
ok 298 no error
ok 299 stderr produced
ok 300 stdout empty
# [instance snapshot list,instance snapshot ls,instance snapshots]
# triton instance snapshot help list
ok 301 no error
ok 302 stderr produced
ok 303 stdout empty
# triton instance snapshot list -h
ok 304 no error
ok 305 stderr produced
ok 306 stdout empty
# triton instance snapshot help ls
ok 307 no error
ok 308 stderr produced
ok 309 stdout empty
# triton instance snapshot ls -h
ok 310 no error
ok 311 stderr produced
ok 312 stdout empty
# triton instance help snapshots
ok 313 no error
ok 314 stderr produced
ok 315 stdout empty
# triton instance snapshots -h
ok 316 no error
ok 317 stderr produced
ok 318 stdout empty
# [instance snapshot get]
# triton instance snapshot help get
ok 319 no error
ok 320 stderr produced
ok 321 stdout empty
# triton instance snapshot get -h
ok 322 no error
ok 323 stderr produced
ok 324 stdout empty
# [instance snapshot delete,instance snapshot rm]
# triton instance snapshot help delete
ok 325 no error
ok 326 stderr produced
ok 327 stdout empty
# triton instance snapshot delete -h
ok 328 no error
ok 329 stderr produced
ok 330 stdout empty
# triton instance snapshot help rm
ok 331 no error
ok 332 stderr produced
ok 333 stdout empty
# triton instance snapshot rm -h
ok 334 no error
ok 335 stderr produced
ok 336 stdout empty
# [instance nic create]
# triton instance nic help create
ok 337 no error
ok 338 stderr produced
ok 339 stdout empty
# triton instance nic create -h
ok 340 no error
ok 341 stderr produced
ok 342 stdout empty
# [instance nic list,instance nic ls]
# triton instance nic help list
ok 343 no error
ok 344 stderr produced
ok 345 stdout empty
# triton instance nic list -h
ok 346 no error
ok 347 stderr produced
ok 348 stdout empty
# triton instance nic help ls
ok 349 no error
ok 350 stderr produced
ok 351 stdout empty
# triton instance nic ls -h
ok 352 no error
ok 353 stderr produced
ok 354 stdout empty
# [instance nic get]
# triton instance nic help get
ok 355 no error
ok 356 stderr produced
ok 357 stdout empty
# triton instance nic get -h
ok 358 no error
ok 359 stderr produced
ok 360 stdout empty
# [instance nic delete,instance nic rm]
# triton instance nic help delete
ok 361 no error
ok 362 stderr produced
ok 363 stdout empty
# triton instance nic delete -h
ok 364 no error
ok 365 stderr produced
ok 366 stdout empty
# triton instance nic help rm
ok 367 no error
ok 368 stderr produced
ok 369 stdout empty
# triton instance nic rm -h
ok 370 no error
ok 371 stderr produced
ok 372 stdout empty
# [ip]
# triton help ip
ok 373 no error
ok 374 stderr produced
ok 375 stdout empty
# triton ip -h
ok 376 no error
ok 377 stderr produced
ok 378 stdout empty
# [ssh]
# triton help ssh
ok 379 no error
ok 380 stderr produced
ok 381 stdout empty
# triton ssh -h
ok 382 no error
ok 383 stderr produced
ok 384 stdout empty
# [network]
# triton help network
ok 385 no error
ok 386 stderr produced
ok 387 stdout empty
# triton network -h
ok 388 no error
ok 389 stderr produced
ok 390 stdout empty
# [network list,networks]
# triton network help list
ok 391 no error
ok 392 stderr produced
ok 393 stdout empty
# triton network list -h
ok 394 no error
ok 395 stderr produced
ok 396 stdout empty
# triton help networks
ok 397 no error
ok 398 stderr produced
ok 399 stdout empty
# triton networks -h
ok 400 no error
ok 401 stderr produced
ok 402 stdout empty
# [network get]
# triton network help get
ok 403 no error
ok 404 stderr produced
ok 405 stdout empty
# triton network get -h
ok 406 no error
ok 407 stderr produced
ok 408 stdout empty
# [key]
# triton help key
ok 409 no error
ok 410 stderr produced
ok 411 stdout empty
# triton key -h
ok 412 no error
ok 413 stderr produced
ok 414 stdout empty
# [key add]
# triton key help add
ok 415 no error
ok 416 stderr produced
ok 417 stdout empty
# triton key add -h
ok 418 no error
ok 419 stderr produced
ok 420 stdout empty
# [key list,key ls,keys]
# triton key help list
ok 421 no error
ok 422 stderr produced
ok 423 stdout empty
# triton key list -h
ok 424 no error
ok 425 stderr produced
ok 426 stdout empty
# triton key help ls
ok 427 no error
ok 428 stderr produced
ok 429 stdout empty
# triton key ls -h
ok 430 no error
ok 431 stderr produced
ok 432 stdout empty
# triton help keys
ok 433 no error
ok 434 stderr produced
ok 435 stdout empty
# triton keys -h
ok 436 no error
ok 437 stderr produced
ok 438 stdout empty
# [key get]
# triton key help get
ok 439 no error
ok 440 stderr produced
ok 441 stdout empty
# triton key get -h
ok 442 no error
ok 443 stderr produced
ok 444 stdout empty
# [key delete,key rm]
# triton key help delete
ok 445 no error
ok 446 stderr produced
ok 447 stdout empty
# triton key delete -h
ok 448 no error
ok 449 stderr produced
ok 450 stdout empty
# triton key help rm
ok 451 no error
ok 452 stderr produced
ok 453 stdout empty
# triton key rm -h
ok 454 no error
ok 455 stderr produced
ok 456 stdout empty
# [image,img]
# triton help image
ok 457 no error
ok 458 stderr produced
ok 459 stdout empty
# triton image -h
ok 460 no error
ok 461 stderr produced
ok 462 stdout empty
# triton help img
ok 463 no error
ok 464 stderr produced
ok 465 stdout empty
# triton img -h
ok 466 no error
ok 467 stderr produced
ok 468 stdout empty
# [image get]
# triton image help get
ok 469 no error
ok 470 stderr produced
ok 471 stdout empty
# triton image get -h
ok 472 no error
ok 473 stderr produced
ok 474 stdout empty
# [image list,images,imgs]
# triton image help list
ok 475 no error
ok 476 stderr produced
ok 477 stdout empty
# triton image list -h
ok 478 no error
ok 479 stderr produced
ok 480 stdout empty
# triton help images
ok 481 no error
ok 482 stderr produced
ok 483 stdout empty
# triton images -h
ok 484 no error
ok 485 stderr produced
ok 486 stdout empty
# triton help imgs
ok 487 no error
ok 488 stderr produced
ok 489 stdout empty
# triton imgs -h
ok 490 no error
ok 491 stderr produced
ok 492 stdout empty
# [package,pkg]
# triton help package
ok 493 no error
ok 494 stderr produced
ok 495 stdout empty
# triton package -h
ok 496 no error
ok 497 stderr produced
ok 498 stdout empty
# triton help pkg
ok 499 no error
ok 500 stderr produced
ok 501 stdout empty
# triton pkg -h
ok 502 no error
ok 503 stderr produced
ok 504 stdout empty
# [package get]
# triton package help get
ok 505 no error
ok 506 stderr produced
ok 507 stdout empty
# triton package get -h
ok 508 no error
ok 509 stderr produced
ok 510 stdout empty
# [package list,packages,pkgs]
# triton package help list
ok 511 no error
ok 512 stderr produced
ok 513 stdout empty
# triton package list -h
ok 514 no error
ok 515 stderr produced
ok 516 stdout empty
# triton help packages
ok 517 no error
ok 518 stderr produced
ok 519 stdout empty
# triton packages -h
ok 520 no error
ok 521 stderr produced
ok 522 stdout empty
# triton help pkgs
ok 523 no error
ok 524 stderr produced
ok 525 stdout empty
# triton pkgs -h
ok 526 no error
ok 527 stderr produced
ok 528 stdout empty
# [fwrules]
# triton help fwrules
ok 529 no error
ok 530 stderr produced
ok 531 stdout empty
# triton fwrules -h
ok 532 no error
ok 533 stderr produced
ok 534 stdout empty
# [fwrule]
# triton help fwrule
ok 535 no error
ok 536 stderr produced
ok 537 stdout empty
# triton fwrule -h
ok 538 no error
ok 539 stderr produced
ok 540 stdout empty
# [fwrule create]
# triton fwrule help create
ok 541 no error
ok 542 stderr produced
ok 543 stdout empty
# triton fwrule create -h
ok 544 no error
ok 545 stderr produced
ok 546 stdout empty
# [fwrule list,fwrule ls]
# triton fwrule help list
ok 547 no error
ok 548 stderr produced
ok 549 stdout empty
# triton fwrule list -h
ok 550 no error
ok 551 stderr produced
ok 552 stdout empty
# triton fwrule help ls
ok 553 no error
ok 554 stderr produced
ok 555 stdout empty
# triton fwrule ls -h
ok 556 no error
ok 557 stderr produced
ok 558 stdout empty
# [fwrule get]
# triton fwrule help get
ok 559 no error
ok 560 stderr produced
ok 561 stdout empty
# triton fwrule get -h
ok 562 no error
ok 563 stderr produced
ok 564 stdout empty
# [fwrule update]
# triton fwrule help update
ok 565 no error
ok 566 stderr produced
ok 567 stdout empty
# triton fwrule update -h
ok 568 no error
ok 569 stderr produced
ok 570 stdout empty
# [fwrule delete,fwrule rm]
# triton fwrule help delete
ok 571 no error
ok 572 stderr produced
ok 573 stdout empty
# triton fwrule delete -h
ok 574 no error
ok 575 stderr produced
ok 576 stdout empty
# triton fwrule help rm
ok 577 no error
ok 578 stderr produced
ok 579 stdout empty
# triton fwrule rm -h
ok 580 no error
ok 581 stderr produced
ok 582 stdout empty
# [fwrule enable]
# triton fwrule help enable
ok 583 no error
ok 584 stderr produced
ok 585 stdout empty
# triton fwrule enable -h
ok 586 no error
ok 587 stderr produced
ok 588 stdout empty
# [fwrule disable]
# triton fwrule help disable
ok 589 no error
ok 590 stderr produced
ok 591 stdout empty
# triton fwrule disable -h
ok 592 no error
ok 593 stderr produced
ok 594 stdout empty
# [fwrule instances,fwrule insts]
# triton fwrule help instances
ok 595 no error
ok 596 stderr produced
ok 597 stdout empty
# triton fwrule instances -h
ok 598 no error
ok 599 stderr produced
ok 600 stdout empty
# triton fwrule help insts
ok 601 no error
ok 602 stderr produced
ok 603 stdout empty
# triton fwrule insts -h
ok 604 no error
ok 605 stderr produced
ok 606 stdout empty
# [rbac]
# triton help rbac
ok 607 no error
ok 608 stderr produced
ok 609 stdout empty
# triton rbac -h
ok 610 no error
ok 611 stderr produced
ok 612 stdout empty
# [rbac info]
# triton rbac help info
ok 613 no error
ok 614 stderr produced
ok 615 stdout empty
# triton rbac info -h
ok 616 no error
ok 617 stderr produced
ok 618 stdout empty
# [rbac apply]
# triton rbac help apply
ok 619 no error
ok 620 stderr produced
ok 621 stdout empty
# triton rbac apply -h
ok 622 no error
ok 623 stderr produced
ok 624 stdout empty
# [rbac users]
# triton rbac help users
ok 625 no error
ok 626 stderr produced
ok 627 stdout empty
# triton rbac users -h
ok 628 no error
ok 629 stderr produced
ok 630 stdout empty
# [rbac user]
# triton rbac help user
ok 631 no error
ok 632 stderr produced
ok 633 stdout empty
# triton rbac user -h
ok 634 no error
ok 635 stderr produced
ok 636 stdout empty
# [rbac keys]
# triton rbac help keys
ok 637 no error
ok 638 stderr produced
ok 639 stdout empty
# triton rbac keys -h
ok 640 no error
ok 641 stderr produced
ok 642 stdout empty
# [rbac key]
# triton rbac help key
ok 643 no error
ok 644 stderr produced
ok 645 stdout empty
# triton rbac key -h
ok 646 no error
ok 647 stderr produced
ok 648 stdout empty
# [rbac policies]
# triton rbac help policies
ok 649 no error
ok 650 stderr produced
ok 651 stdout empty
# triton rbac policies -h
ok 652 no error
ok 653 stderr produced
ok 654 stdout empty
# [rbac policy]
# triton rbac help policy
ok 655 no error
ok 656 stderr produced
ok 657 stdout empty
# triton rbac policy -h
ok 658 no error
ok 659 stderr produced
ok 660 stdout empty
# [rbac roles]
# triton rbac help roles
ok 661 no error
ok 662 stderr produced
ok 663 stdout empty
# triton rbac roles -h
ok 664 no error
ok 665 stderr produced
ok 666 stdout empty
# [rbac role]
# triton rbac help role
ok 667 no error
ok 668 stderr produced
ok 669 stdout empty
# triton rbac role -h
ok 670 no error
ok 671 stderr produced
ok 672 stdout empty
# [rbac instance-role-tags]
# triton rbac help instance-role-tags
ok 673 no error
ok 674 stderr produced
ok 675 stdout empty
# triton rbac instance-role-tags -h
ok 676 no error
ok 677 stderr produced
ok 678 stdout empty
# [rbac image-role-tags]
# triton rbac help image-role-tags
ok 679 no error
ok 680 stderr produced
ok 681 stdout empty
# triton rbac image-role-tags -h
ok 682 no error
ok 683 stderr produced
ok 684 stdout empty
# [rbac network-role-tags]
# triton rbac help network-role-tags
ok 685 no error
ok 686 stderr produced
ok 687 stdout empty
# triton rbac network-role-tags -h
ok 688 no error
ok 689 stderr produced
ok 690 stdout empty
# [rbac package-role-tags]
# triton rbac help package-role-tags
ok 691 no error
ok 692 stderr produced
ok 693 stdout empty
# triton rbac package-role-tags -h
ok 694 no error
ok 695 stderr produced
ok 696 stdout empty
# [rbac role-tags]
# triton rbac help role-tags
ok 697 no error
ok 698 stderr produced
ok 699 stdout empty
# triton rbac role-tags -h
ok 700 no error
ok 701 stderr produced
ok 702 stdout empty
# [volume,vol]
# triton help volume
ok 703 no error
ok 704 stderr produced
ok 705 stdout empty
# triton volume -h
ok 706 no error
ok 707 stderr produced
ok 708 stdout empty
# triton help vol
ok 709 no error
ok 710 stderr produced
ok 711 stdout empty
# triton vol -h
ok 712 no error
ok 713 stderr produced
ok 714 stdout empty
# [volume list,volume ls,volumes,vols]
# triton volume help list
ok 715 no error
ok 716 stderr produced
ok 717 stdout empty
# triton volume list -h
ok 718 no error
ok 719 stderr produced
ok 720 stdout empty
# triton volume help ls
ok 721 no error
ok 722 stderr produced
ok 723 stdout empty
# triton volume ls -h
ok 724 no error
ok 725 stderr produced
ok 726 stdout empty
# triton help volumes
ok 727 no error
ok 728 stderr produced
ok 729 stdout empty
# triton volumes -h
ok 730 no error
ok 731 stderr produced
ok 732 stdout empty
# triton help vols
ok 733 no error
ok 734 stderr produced
ok 735 stdout empty
# triton vols -h
ok 736 no error
ok 737 stderr produced
ok 738 stdout empty
# [volume delete,volume rm]
# triton volume help delete
ok 739 no error
ok 740 stderr produced
ok 741 stdout empty
# triton volume delete -h
ok 742 no error
ok 743 stderr produced
ok 744 stdout empty
# triton volume help rm
ok 745 no error
ok 746 stderr produced
ok 747 stdout empty
# triton volume rm -h
ok 748 no error
ok 749 stderr produced
ok 750 stdout empty
# [volume create]
# triton volume help create
ok 751 no error
ok 752 stderr produced
ok 753 stdout empty
# triton volume create -h
ok 754 no error
ok 755 stderr produced
ok 756 stdout empty
# [volume get]
# triton volume help get
ok 757 no error
ok 758 stderr produced
ok 759 stdout empty
# triton volume get -h
ok 760 no error
ok 761 stderr produced
ok 762 stdout empty
1..762
# tests 762
# pass 762
# ok
}
ok 23 - test/integration/cli-volumes-size.test.js # SKIP {
1..0
# tests 0
# pass 0
# ok
}
ok 24 - test/integration/cli-volumes.test.js # SKIP {
1..0
# tests 0
# pass 0
# ok
}
1..24
# failed 3 of 24 tests
# skip: 3
# time=720381.776ms
real 12m0.647s
user 2m51.603s
sys 0m19.708s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment