Dustin J. Mitchell
31105c2ba3
Sync against taskchampion-sync-server ( #3118 )
...
This removes use of gnutls and the TLS implementation, which is no
longer needed (task synchronization is handled via Taskchampion, which
uses `reqwest`, which handles TLS via other Rust dependencies). This
incidentally removes the following config options:
* `debug.tls`
* `taskd.ca`
* `taskd.certificate`
* `taskd.ciphers`
* `taskd.credentials`
* `taskd.key`
* `taskd.server`
* `taskd.trust`
2023-07-08 10:27:33 -04:00
Tomas Babej
4d85031b90
tests: Ensure tests are run with news.version set to 2.6.0
...
No tests were failing due to the footnote but its better to be safe than
sorry.
2021-10-02 18:06:12 -04:00
Jakub Wilk
e36145b4fa
Tests: Don't hardcode errno constants
...
The values of ENOENT and ESRCH are architecture-dependent, so don't
assume they're always 2 and 3.
2018-02-17 13:59:29 +01:00
Paul Beckingham
60220546c1
Tests: Removed taskd group features from test framework
2017-03-20 22:23:08 -04:00
Paul Beckingham
d8bf209f29
Tests: Updated to non-deprecated Boolean values
2016-09-04 16:13:23 -04:00
Paul Beckingham
18c19ab9ed
Framework: Added 'del_config' method to delete a config entry
2015-10-28 14:09:44 -04:00
Tomas Babej
9fe7993d96
tests: Add export_one and latest helpers to the Task test interface
...
- The 'export_one' method will export one task matching a filter,
raising error if not exactly one task was matched.
- The 'latest' property will return the task matching the "+LATEST"
filter.
2015-09-05 14:33:02 -04:00
Renato Alves
fe23510c51
Test: Drop default confirmation:off and correct tests accordingly
2015-07-28 19:57:18 +01:00
Renato Alves
3c7187d801
Tests: Create compat.py for Python 3 compatibility
...
Individual tests are not yet fully compatible with Python 3.
Some still have issues with I/O encoding/decoding. The painful part...
2015-07-24 15:29:41 +01:00
Renato Alves
27b8cabac1
Test: Change most tests to use "add test" instead of split arguments
2015-07-17 19:14:33 +01:00
Renato Alves
6100933a28
BaseTest: Reorganize imports and make shlex global
2015-07-17 07:55:37 +01:00
Renato Alves
a3ea5cb412
Tests: \n on input= matters. Always include it
2015-07-10 18:08:46 +01:00
Renato Alves
a6312198e5
Test: t.runError can now also be called by passing a single string to be split
2015-07-03 22:31:47 +01:00
Wilhelm Schuermann
9e20f83f24
Tests: Implement export() for task access
2015-05-28 10:09:02 +02:00
Wilhelm Schuermann
65b6a35ef5
Tests: Make self.t('add proj:"with space" foo') work
2015-05-08 18:19:37 +02:00
Wilhelm Schuermann
f6e04585ae
Tests: Add simpler self.t("add foo +bar") syntax
2015-05-05 20:28:10 +02:00
Renato Alves
7fcb26f363
Tests: Increase timeout to 5 seconds
2015-04-26 15:28:51 +01:00
Renato Alves
180c382de2
Tests - Finer control on which binaries to look for on PATH
...
* It is now possible to control whether taskw and/or taskd are looked up
on the PATH by setting TASK_USE_PATH/TASKD_USE_PATH to "1"
2015-03-03 01:46:53 +00:00
Tomas Babej
75cf742a55
tests: Add taskrc_content property
2015-02-23 19:19:55 -05:00
Renato Alves
d1698eab2d
Fix usage of taskd.trust=strict on the test suite
...
* This reverts commit 67cb30fdce
.
* Code also now tests if taskd is listening on IPv4 or IPv6 interfaces.
2015-01-20 11:56:53 +00:00
Renato Alves
67cb30fdce
Unittest - default to taskd.trust="ignore hostname"
...
* The currently available taskd testing certificates fail if
taskd.trust is set to strict. See also: TW-1519
2015-01-19 15:07:06 +00:00
Renato Alves
d261a38d17
Unittest - Enhanced support for testing hooks (wip)
...
* It is now possible to test:
* Hook Input/Output on STDIN/STDOUT channels
* Exit code of hook script
* Execution count (how many times the hook was executed)
* Timestamp execution (when was the hook executed - milisec resolution)
2014-11-02 00:01:06 +00:00
Renato Alves
efdb31fb90
Unittest - default to not merging stdout/stderr during tests
...
* Tests will now check that stderr is used for errors
* Tests were adjusted to reflect the API change
2014-10-20 14:01:21 +01:00
Renato Alves
bb060d5ff8
Unittest - Allow specifying custom timeout for slow commands.
...
* Useful when testing with big tasks (1000+ annotations) or sync
operations that take longer than 1 second (default)
2014-10-16 20:52:17 +01:00
Renato Alves
27f21d375b
Unittest - Clarify documentation of runSuccess/runError
2014-10-09 13:16:47 +01:00
Renato Alves
72823a453f
Unittest - Helpers to manage hook scripts during tests
2014-10-08 20:29:56 +01:00
Paul Beckingham
071cf55c00
Unit Tests
...
- Added a default 'hooks=off' to the basetest class, after it was discovered
that the scan for runnable hooks takes non-trivial time.
2014-09-27 16:49:06 -04:00
Renato Alves
d9d3b47c31
Unittest - default to ../src/ as location for task/taskd binaries
2014-07-31 17:03:49 +01:00
Renato Alves
b58c6566af
Unittest - Make client credentials available as a dictionary
2014-07-19 02:06:21 +01:00
Renato Alves
4c88726dab
Unittest - Make taskd the first argument of Task()
...
* The most common case is to bind a client to a server and not
customizing the location of the task binary
2014-07-19 00:45:17 +01:00
Renato Alves
00ee5b2289
Unittest - Skip tests that use faketime if not available
2014-07-18 17:20:27 +01:00
Renato Alves
15795e514d
Unittest - Implement faketime for use in taskw
2014-07-18 17:12:28 +01:00
Renato Alves
02683aecd7
Unittest - Make is easier to reset env vars of task and taskd
2014-07-18 14:01:04 +01:00
Renato Alves
72e8a73ae0
Unittest - Add prefixes to task and taskd temporary folders
2014-07-18 13:20:06 +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
617183612c
Unittest - Don't display "task diag" by default on error
2014-07-14 16:10:44 +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
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
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