mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
commit
0db19f0cda
3 changed files with 9 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ language: python
|
|||
|
||||
services:
|
||||
- rabbitmq
|
||||
- mysql
|
||||
|
||||
# http://docs.travis-ci.com/user/ci-environment/#CI-environment-OS
|
||||
before_install:
|
||||
|
|
@ -25,6 +26,7 @@ env:
|
|||
addons:
|
||||
hosts:
|
||||
- le.wtf
|
||||
mariadb: "10.0"
|
||||
|
||||
install: "travis_retry pip install tox coveralls"
|
||||
before_script: '[ "xxx$BOULDER_INTEGRATION" = "xxx" ] || ./tests/boulder-start.sh'
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class ManualAuthenticatorTest(unittest.TestCase):
|
|||
@mock.patch("__builtin__.raw_input")
|
||||
def test_perform(self, mock_raw_input, mock_verify, mock_urandom,
|
||||
mock_stdout):
|
||||
mock_urandom.return_value = "foo"
|
||||
mock_urandom.side_effect = nonrandom_urandom
|
||||
mock_verify.return_value = True
|
||||
|
||||
resp = challenges.SimpleHTTPResponse(tls=False)
|
||||
|
|
@ -106,5 +106,10 @@ class ManualAuthenticatorTest(unittest.TestCase):
|
|||
mock_killpg.assert_called_once_with(1234, signal.SIGTERM)
|
||||
|
||||
|
||||
def nonrandom_urandom(num_bytes):
|
||||
"""Returns a string of length num_bytes"""
|
||||
return "x" * num_bytes
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
|
|
@ -5,5 +5,6 @@ export GOPATH="${GOPATH:-/tmp/go}"
|
|||
|
||||
go get -d github.com/letsencrypt/boulder
|
||||
cd $GOPATH/src/github.com/letsencrypt/boulder
|
||||
./test/create_db.sh
|
||||
./start.py &
|
||||
# Hopefully start.py bootstraps before integration test is started...
|
||||
|
|
|
|||
Loading…
Reference in a new issue