Paul Beckingham
1abd5460d7
Merge pull request #8 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
...
* commit '1f279ffde8
':
Unittest - Try to avoid racing conditions failures when capturing stdout/stderr
2014-07-15 11:17:21 +00:00
Paul Beckingham
b02fc28466
Unit Tests
...
- Added tw-268.t
2014-07-14 22:39:06 -04:00
Paul Beckingham
34df9633ff
Unit Tests
...
- Added tw-1377.t from Jira (thanks to Renato Alves).
2014-07-14 22:35:31 -04:00
Paul Beckingham
cd89800e56
Unit Tests
...
- Improved test by checking error codes.
2014-07-14 22:33:51 -04:00
Renato Alves
1f279ffde8
Unittest - Try to avoid racing conditions failures when capturing stdout/stderr
...
* The new unblocking strategy for subprocesses involves timeouts and
waiting periods. If the timeout is too short (or absent) tests may show
intermittent failure.
* Increasing the timeout may make tests a bit slower but more reliable.
2014-07-15 03:29:49 +01:00
Paul Beckingham
76998987c5
Unit Tests
...
- Added tw-1359.t
2014-07-14 22:18:04 -04: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
e3d0d2ff34
Unittest - Stream blocking tests can now be safely performed
...
* Processes that blocked waiting for stdin data will now be aborted
after a 1 second timeout.
* As a side-effect any process that takes longer than 1 second to
finish will also be aborted.
2014-07-15 02:43:57 +01:00
Renato Alves
7f9148efb4
Unittest - CommandError exception treats SIGABRT specially
...
* SIGABRT will be used to signal processes that failed to finish after
the process assigned time (default 1 second).
2014-07-15 02:40:56 +01:00
Renato Alves
04f5f7e2a8
Unittest - exit code may be None if process failed to finish
2014-07-15 01:37:17 +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
45c73fc473
Unittest - Add code to check if taskd is available
2014-07-15 00:50:58 +01:00
Renato Alves
b77dfc6312
Unittest - Add which() backported from py3.3
2014-07-15 00:49:50 +01:00
Renato Alves
617183612c
Unittest - Don't display "task diag" by default on error
2014-07-14 16:10:44 +01:00
Renato Alves
d419fb9560
Unittest - Don't escape new-line characters in TAP output
2014-07-14 11:44:28 +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
4ae56838e4
Unittest - Include "task diag" output on error
...
* If any command passed to runSuccess or runError returns an unexpected
exit code, the output of 'task diag' will be added to stdout/stderr.
2014-07-14 00:25:43 +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
906ca1a4aa
Unittest - docstring clarification
...
* Clarify how the alias is supposed to work in case readers are not
familiar with what __call__ does.
2014-07-13 23:10:16 +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
Renato Alves
6a28c2d175
UnitTest - Alias for runSuccess
...
* Use t() (given t = Task()) as an alias to t.runSuccess()
2014-07-13 23:09:23 +01:00
Renato Alves
ceaf9d3462
Unittest - Add a line break on last line of initial config
2014-07-13 23:09:00 +01:00
Renato Alves
715a414abd
UnitTests
...
* Taskd and Taskw classes for testing are now available
* Testing of server and client can now be performed.
* The newer test wrappers will eventually replace the BaseTest class
2014-07-06 02:03:04 +01:00
Renato Alves
733561863e
PKI
...
* Working certificates with taskd-1.0.0 and taskw-2.3.0
2014-07-06 01:35:09 +01:00
Renato Alves
b60682a1e4
Make wait time configurable. Could be needed in slower machines.
2014-07-06 01:03:32 +01:00
Renato Alves
c1dbe4fc3c
Prevent reuse of Taskd after being destroyed
2014-07-06 01:03:32 +01:00
Paul Beckingham
e615d449ac
Revert "PKI"
...
This reverts commit 6399460559
.
2014-07-05 20:01:31 -04:00
Paul Beckingham
6399460559
PKI
...
- Regenerated set of certs/keys.
- Added README.
2014-07-05 19:47:30 -04:00
Scott Kostyshak
6eee9e0544
Bash Completion
...
- Improved bash completion when TASKRC is exported.
- Added a unit test.
Description of previous behavior:
$ export TASKRC=/tmp/.taskrc
$ task ad<TAB><TAB>
lead to the following output:
$ task adTASKRC override: /tmp/.taskrc
dTASKRC override: /tmp/.taskrc
TASKRC override: /tmp/.taskrc
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-07-04 16:35:15 -04: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
1ac7dc0d5d
TW-1360
...
- TW-1360 color.until directive missing.
2014-07-04 10:00:26 -04:00
Paul Beckingham
5a6f81a1fd
Unit Tests
...
- Removed unnecessary code. Thanks Renato.
2014-07-04 09:45:32 -04:00
Paul Beckingham
5e1f596200
Unit Tests
...
- Added a 'diag' method to the Python test class.
2014-07-03 17:38:41 -04:00
Paul Beckingham
7a37317526
Unit Tests
...
- Corrected mistake made earlier when assuming the first test was a 'control'.
It was not.
2014-07-03 17:37:30 -04:00
Paul Beckingham
c8f2b5a858
Unit Tests
...
- Fixed flapping in bug.932.t. The problem was a regex that assumeѕ the age of
the task was < 1second, but sometimes, when the creation of a task and the
reporting of a task crossed a 1-second boundary, the age shows up as '1s'.
With the regex now more permissive, the problem is gone.
2014-07-03 17:19:36 -04:00
Paul Beckingham
a969d34d21
Unit Tests
...
- Corrected unit test, which had the wrong expected output.
2014-07-03 16:53:07 -04:00
Paul Beckingham
a46b778101
Unit Tests
...
- Old unit test was escaping quotes, which is no longer necessary.
2014-07-03 16:36:54 -04:00
Paul Beckingham
b6fee35213
Unit Tests
...
- Corrected bug.calc.t to match current calc debug output.
2014-07-03 15:51:02 -04:00
Paul Beckingham
843f7ce704
Unit Tests
...
- Corrected Lexer test to use a supported duration.
2014-07-03 15:39:50 -04:00
Paul Beckingham
43daabdb9a
Unit Tests
...
- Modfiied bug.485.t to use supported recurrence period values.
2014-07-03 13:43:14 -04:00
Paul Beckingham
140757cfe1
Unit Tests
...
- Modified test to account for non-standalone status of certain duration
values.
2014-07-03 11:44:50 -04:00
Paul Beckingham
fe31d4ee71
Unit Tests
...
- Added tests for TW-1306.
2014-07-03 11:04:34 -04:00
Paul Beckingham
5413d3172b
TW-230, TW-1329
...
- TW-230 Filter tasks on partial UUIDs (thanks to Paul Kishimoto).
- TW-1329 Short UUIDs (thanks to Benjamin Weber).
2014-07-01 23:56:53 -04:00
Paul Beckingham
e9e93bd92b
Unit Tests
...
- Corrected tests to differentiate between standalone durations and numeric
leader durations.
2014-07-01 17:23:07 -04:00
Paul Beckingham
c5bde168c4
Unit Tests
...
- Fixed typo in test.
2014-06-29 22:18:23 -04:00
Paul Beckingham
e17dd13afd
Unit Tests
...
- Added tests for date parsing with and without depletion.
2014-06-29 22:17:52 -04:00
Paul Beckingham
3639226233
Unit Tests
...
- Added tests for date parsing without the depletion requirement.
2014-06-29 11:12:35 -04:00
Paul Beckingham
92b91a3141
Unit Tests
...
- Corrected calc output expectations.
2014-06-29 09:37:19 -04:00