Commit Graph
8 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 31cad0bf40 tor: Better validation for upstream bridges
- Convert line terminators in the form field so that it matches the
  current status information resulting in proper detection of change in
  value.

- Allow IPv6 addresses properly.  Allow "[ipv6]:port" format.

- Make specifying port optional.

- Allow spaces at the beginning and ending of the line to compensate for
  copy/paste errors.

- Allow empty lines between bridge specifications.

- Allow multiple spaces between the components.

- Raise error if upstream bridges are not provided when 'use upstream
  bridges' option is enabled.

- Write tests for upstream bridges validator.
2017-01-29 11:20:34 +05:30
James Valleroy 1c98d1272f tor: Use single command to get status
Merge get_ports and get_hs into get_status.
2016-07-08 23:19:09 +05:30
fonfon 398e6d7b14 Services: fix unittests 2016-05-11 18:19:39 -04:00
James Valleroy 376b5c6feb tor: Refactor into separate files for forms/views 2016-01-30 18:06:33 +05:30
Sunil Mohan Adapa 7100429342 tor: Minor fixes
- Be a little bit more strict about Tor tests by requiring the module to
  be importable even when not running as root.
2015-12-04 10:14:47 +05:30
James Valleroy 90a1c334fe Skip tor tests unless root. 2015-12-04 09:16:06 +05:30
James Valleroy 66625c35a3 Handle error where /etc/tor/torrc does not exist when checking hidden service config.
Handle error where tor state file does not exist when getting list of ports.

Add test for checking if apt-transport-tor is enabled.
2015-12-04 09:16:06 +05:30
Bob Girard d64ce6cc01 Bundle tests with applications
- For each application, add ./tests directory and __init__.py file
  within it.

- Modify test controllers (coverage.py, runtests.py) to find the new
  test directories for testing and coverage analysis.

- Move existing application-specific test modules (test_pagekite.py) to
  the newly created directories.
2015-06-26 12:05:48 +05:30