Paul Beckingham
99b546c7e0
Template: Updated to use newer form of task call
2015-07-16 16:20:13 -04:00
Renato Alves
c3423243d8
Tests: Rename self.diag to self.tap and use self.t.diag where applicable
...
Having self.diag and self.t.diag was confusing as one referred to TAP
output (self.diag) while the other referred to "task diagnostics"
self.t.diag.
self.diag is now gone and was replaced by self.tap with the same
behavior.
2015-06-10 23:33:56 +01:00
Renato Alves
2962c0d99a
Tests: Remove unnecessary imports and simplify template.t
2015-06-06 02:52:33 +01:00
Renato Alves
a989a63f62
Tests: Remove decode call on template.t
2015-06-05 21:05:34 +01:00
Renato Alves
09bfc27260
Test template now includes an example of expected failure
2015-05-25 18:28:46 +01:00
Renato Alves
fd17a68930
Tests: expose 'args' passed to hook scripts
...
- Useful to validate that all the expected arguments were passed with
correct escaping.
- Update test/template.t with one use-case for 'args'
2015-04-06 13:43:41 +01:00
Renato Alves
d052b8752d
Tests - remove unused imports
2015-02-16 14:09:04 +00:00
Renato Alves
ef583dedea
Tests - Update template.t to include assertValidJSONOutput
2015-02-15 18:13:49 +00:00
Renato Alves
066143d939
Unittest - template.t use docstring for proper test description on execution
2015-02-01 20:39:38 +00:00
Renato Alves
75a2b11638
Unittest - Update template.t to use Hook.assert* functions
2015-02-01 19:33:08 +00:00
Renato Alves
d68fa7ea8a
Unittest - Template updated to include hook test examples
2015-01-19 14:58:06 +00:00
Paul Beckingham
3c07510a43
Unit Tests
...
- Added copyright to template.
2015-01-03 20:20:30 -05:00
Renato Alves
65b6875846
Unittest - Remove execute bit from template.t and unnecessary comments
2014-10-17 16:42:44 +01:00
Renato Alves
fdbb8e02f0
Unittest - Add test example using libfaketime
2014-07-18 17:12:28 +01:00
Renato Alves
2a198d59fe
Unittest - Add mechanism to skip task and taskd tests
...
* When testing multiple clients vs server versions, repeating client
tests is unnecessary. By setting the env variables TASKW_SKIP and
TASKD_SKIP it will now be possible to skip all task (client only) and
taskd (client + server) tests, respectively.
2014-07-18 13:33:51 +01:00
Renato Alves
9bd7b336f9
Unittest - Don't use unittest.TestCase use basetest.TestCase instead
2014-07-15 03:04:17 +01:00
Renato Alves
ea5186716e
Unittest - Example of TAP diag use in template.t
...
* Also prettify its output with the amazing whitespace
2014-07-15 03:02:47 +01:00
Renato Alves
5f50c44041
Unittest - Add example of skipping taskd test on template.t
2014-07-15 00:51:29 +01:00
Renato Alves
d354d13263
Unittest - Bring back diag() for generating TAP output
...
* Still needs work to make sure output is displayed after the test
status (not ok ...) and not before.
2014-07-14 11:38:04 +01:00
Renato Alves
47c113bf8a
Unittest - Don't run template.t as a regular test
2014-07-13 23:14:46 +01:00
Renato Alves
42cfda704f
Unittest - Replacing old basetest framework
...
* Adapt bugs to work with the newer testing framework
2014-07-13 23:09:53 +01:00
Paul Beckingham
ca9683d912
Unit Tests
...
- After renaming 'template.py' to 'template.t', the failing and skipped tests
within as examples are now affecting the totals because all *.t files are
run. Commented out tests.
2014-07-04 11:00:44 -04:00
Paul Beckingham
f9ab71685d
Unit Tests
...
- Eliminated the Perl template, overwriting it with the Python template.
2014-07-04 10:25:41 -04:00
Paul Beckingham
a799b54ad4
Unit Tests
...
- Modified test to use a command that exceeded the rc.abbreviation.minuіmum
length.
2014-05-31 17:24:29 -04:00
Paul Beckingham
744f0f55ac
Unit Tests
...
- Removed obsolete references to 'synch.key'.
2014-05-31 11:53:17 -04:00
Paul Beckingham
523dce8f32
Code Cleanup
...
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
8ed92ca498
Copyright
...
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Paul Beckingham
ada6e49dab
Bug #1251
...
- #1251 tests should sanitize TASKDATA and TASKRC env vars (thanks to Jakub
Wilk).
2013-09-07 13:52:16 -04:00
Paul Beckingham
1dccd29643
Copyright 2013
...
- Updated copyright notices.
2013-03-04 17:47:12 -05:00
Paul Beckingham
c6c99c2e38
Unit Tests
...
- Added template.t as an example for all new unit tests.
2013-01-19 15:47:41 -05:00