This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
node-spearhead/test
Trent Mick 053d7354f2 PUBAPI-1233 Add firewalls to node-triton
PUBAPI-1234 Add snapshots to node-triton

CR updates.
- add 'triton fwrule update ID <TAB>' completion on updatable fields
- make ID arg first in ^^
- make 'triton fwrule create ...' have the rule enabled by default
- cosmetic help output tweaks
- allow 'triton fwrule update ...' to not *require* that the rule is
  updated. i.e you can update just the description
2016-03-01 16:46:06 -08:00
..
integration PUBAPI-1233 Add firewalls to node-triton 2016-03-01 16:46:06 -08:00
lib Integration test config handling improvements. Add 'ResourceNotFound' error and fine tune exit status handling. 2015-10-06 23:24:42 -07:00
unit joyent/node-triton#88: `triton inst ...` support for updating tags 2016-02-11 09:46:43 -08:00
README.md a start at a test framework 2015-09-01 00:31:00 -07:00
config.json.sample joyent/node-triton#39 change the test config 'destructiveAllowed' var to 'writeActionsAllowed' 2015-10-07 12:19:26 -07:00
runtests a start at a test framework 2015-09-01 00:31:00 -07:00

README.md

The node-triton test suite.

There are two sets of tests here: unit tests which can be run in your local clone (see "test/unit/") and integration tests which are run against a cloudapi.

WARNING: While this test suite should strive to not be destructive to existing data in the used account, one should take pause before blindly running it with one's cloudapi creds.

Usage

Unit tests should be run before commits:

make test

Or you can run a specific test file via:

cd test
./runtest unit/foo.test.js

Integration tests: XXX how to run?

Development Guidelines

  • We are using tape.

  • Use "test/lib/*.js" and "test/{unit,integration}/helpers.js" to help make ".test.js" code more expressive:

  • Unit tests (i.e. not requiring the cloudapi endpoint) in "unit/*.test.js". Integration tests "integration/*.test.js".