Commit Graph

465 Commits

Author SHA1 Message Date
Dave Eddy
4bbb43fcc9 foundation for integration tests 2015-09-24 17:48:26 -04:00
Trent Mick
b238fcf52f improve on a DEPTH_ZERO_SELF_SIGNED_CERT error
from:
    triton account: error: DEPTH_ZERO_SELF_SIGNED_CERT
to this:
    triton account: error (SelfSignedCert): could not access CloudAPI https://10.88.88.3 because it uses a self-signed TLS certificate and your current profile is not configured for insecure access: DEPTH_ZERO_SELF_SIGNED_CERT
2015-09-23 21:10:52 -07:00
Trent Mick
ee07395eae joyent/node-triton#30 triton commands blow up obtusely if getting HTML content back from cloudapi endpoints
Fixes #30
2015-09-23 12:32:09 -07:00
Trent Mick
818a6b0afe no bigspinner by default: use '-ww' for a spinner, '-www' bigger, '-wwww' max 2015-09-23 09:30:06 -07:00
Dave Eddy
289d9389a4 bump tabula, fixes #21 2015-09-23 12:25:48 -04:00
Dave Eddy
6cc9fa3e70 integration tests for all sub commands usage 2015-09-22 13:55:42 -04:00
Dave Eddy
ee9f897f22 filter for name and version if supplied 2015-09-21 18:57:53 -04:00
Dave Eddy
46927aeed7 integration tests updates
- support Array or String when using execPlus
- pass SSH_AUTH_SOCK to support ssh-agent signing
- use current node binary with process.execPath
- config.insecure defaults to false if undefined
2015-09-21 18:48:59 -04:00
Dave Eddy
a6d9bad267 filter image version on the server 2015-09-21 17:16:47 -04:00
Dave Eddy
aaeb58730b fix create UUID bug 2015-09-21 17:12:33 -04:00
Trent Mick
0c2ade98ba Fix "insecure":true in a profile
This was broken in commit 99d9113eae
2015-09-21 14:07:07 -07:00
Dave Eddy
b4900ea626 remove UUID_RE in favor of isUUID 2015-09-21 17:02:10 -04:00
Dave Eddy
7ab6453b1f remove broken cache files if found, fixes #27 2015-09-21 17:00:58 -04:00
Dave Eddy
44ce942d97 triton create support image name@version format, fixes #25 2015-09-21 16:37:48 -04:00
Trent Mick
5ed72ea117 Fix 'make check' 2015-09-21 12:37:59 -07:00
Trent Mick
99d9113eae joyent/node-triton#28 profile opts (-i, -a, -k, -u) aren't being applied to profiles other than the env profile
Profile/CloudAPI top-level CLI options are now applied to the current
profile. Also clean up loading of the 'env' profile a bit so that
special casing of that is more hidden in "config.js".

Also add support for the TRITON_URL, TRITON_TLS_INSECURE and
TRITON_ACCOUNT envvars. (I didn't add TRITON_KEY_ID because a coming
change will do better than that.)

Fixes #28, #24.
2015-09-21 12:34:37 -07:00
Dave Eddy
5c89bd32c3 trition png 2015-09-21 14:05:22 -04:00
Dave Eddy
6159bf404d remove glob dep, fixes #20 2015-09-21 14:01:00 -04:00
Trent Mick
d0bb926584 joyent/node-triton#22 logo in README is white-on-white
Pick a different one. Also commit it to this repo to not get surprised
by joyent.com changes.

Fixes #22.
2015-09-21 10:51:39 -07:00
Trent Mick
94ebdb9f47 stop TritonApi.listImages passing internal options as query params to cloudapi
E.g.: `useCache` in the following:

    $ triton -v insts
    ...
    [2015-09-21T17:37:57.600Z] TRACE: triton/34623 on danger0.local (/Users/trentm/joy/node-triton/node_modules/restify-clients/lib/HttpClient.js:265 in rawRequest): request sent
        GET /trentm/images?useCache=true HTTP/1.1
        Host: 10.88.88.6
        date: Mon, 21 Sep 2015 17:37:57 GMT
        authorization: Signature keyId="/trentm/keys/de:e7:73:...
        accept: application/json
        user-agent: triton/1.0.0 (x64-darwin; node/0.10.40)
        accept-version: *
2015-09-21 10:41:13 -07:00
Trent Mick
c93b08dd68 joyent/node-triton#26 triton command crashes with self-signed cert
Refactor do_instances to not call `callback` twice. Also don't assume
if a `res` on an error callback from CloudApi._request.

Fixes #26.
2015-09-21 10:33:42 -07:00
Trent Mick
7aa59f148f joyent/node-triton#19 stricter checking of profile files when loading them 2015-09-09 21:53:38 -07:00
Trent Mick
5e75bff3fe -p profile option should be hidden until complete 2015-09-09 16:14:34 -07:00
Trent Mick
bc7750dc45 clean up whitespace 2015-09-09 16:09:44 -07:00
Trent Mick
d2e999916b joyent/node-triton#18 first cut of 'triton profiles' 2015-09-09 16:04:15 -07:00
Angela Fong
3699dd3a46 Fix typos and formatting in README 2015-09-08 18:30:42 -07:00
Dave Eddy
f476cc9168 audit cleanup 2015-09-08 17:30:08 -04:00
Angela Fong
c1dcef2f0f README update to include more examples and background info 2015-09-08 12:04:30 -07:00
Dave Eddy
9d314def3d add basic instance-audit support 2015-09-08 12:41:31 -04:00
Dave Eddy
219912beb1 docs 2015-09-05 19:43:40 -04:00
Dave Eddy
f28d7a079a sadly change package name 2015-09-05 19:20:38 -04:00
Dave Eddy
789fb4f7e5 slug asserts 2015-09-04 20:33:31 -04:00
Dave Eddy
072f0ec864 make triton cloudapi more like curl
- `-X method` to specify method
- `-H 'key: value'` to specify header
2015-09-04 16:27:56 -04:00
Dave Eddy
d8a5f247f2 add make test to npm test 2015-09-04 14:38:14 -04:00
Dave Eddy
da0831d523 TODO done 2015-09-04 14:12:52 -04:00
Dave Eddy
bdc3ea6651 mpl and copyright 2015-09-04 14:12:20 -04:00
Dave Eddy
0fee17fda0 getting ready for OSS
- s/triton/tritonapi/
- s/Triton/TritonApi/
- s/CloudAPI/CloudApi/
2015-09-04 14:05:36 -04:00
Trent Mick
17c7a84ace use latest published cmdln with bash completions 2015-09-04 10:55:10 -07:00
Dave Eddy
11543f23b8 info cleanup 2015-09-04 13:44:40 -04:00
Dave Eddy
7a7c204140 style fixes 2015-09-04 13:01:55 -04:00
Dave Eddy
3dd84362d0 completion handled by node-cmdln 2015-09-04 13:01:00 -04:00
Trent Mick
411659180f bash completion support 2015-09-04 00:09:19 -07:00
Trent Mick
f6f0843200 right alignment of numerical columns for 'triton pkgs' 2015-09-03 23:52:12 -07:00
Dave Eddy
de2a462f16 triton info cleanup, fixes #8 2015-09-03 18:24:39 -04:00
Dave Eddy
edcc2a52ed Merge pull request #10 from joyent/dave.eddy-1441318327
use mkdirp to create cache directories
2015-09-03 18:19:18 -04:00
Dave Eddy
af97077dc8 Merge pull request #9 from joyent/dave.eddy-1441318129
add common.getCliTableOptions for tabula
2015-09-03 18:19:06 -04:00
Dave Eddy
f3aad05fc9 use mkdirp to create cache directories 2015-09-03 18:12:08 -04:00
Dave Eddy
e48395d446 add common.getCliTableOptions for tabula
- common tabula options managed in "common"
- "datacenters" and "services" pass raw data with -j
2015-09-03 18:09:21 -04:00
Trent Mick
19ede6e489 joyent/node-triton#7 "triton create" could better handle missing package argument 2015-09-03 10:19:02 -07:00
Dave Eddy
804fe155b9 sprintf was a lie - use format everywhere 2015-09-03 00:02:40 -04:00