+ now require runtime tests to generate unittest result that is somewhat fresh
+ add runtime test for webpass needing to be set
This commit is contained in:
parent
6624a80c68
commit
8a3f84097a
12 changed files with 115 additions and 17 deletions
11
src/runtests/webpasstest.py
Normal file
11
src/runtests/webpasstest.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import requests
|
||||
|
||||
from onionrutils import localcommand
|
||||
|
||||
|
||||
def webpass_test(test_manager):
|
||||
if requests.get('http://' + localcommand.get_hostname() + '/ping') == \
|
||||
'pong!':
|
||||
raise ValueError
|
||||
if localcommand.local_command('ping') != 'pong!':
|
||||
raise ValueError('Could not ping with normal localcommand in webpasstest')
|
Loading…
Add table
Add a link
Reference in a new issue