Changeset - 5f9321340e44
[Not reviewed]
default
0 2 0
Mads Kiilerich - 10 years ago 2015-08-11 12:39:07
madski@unity3d.com
tests: avoid collision with dev servers - use port 4999 for testing
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/manual_test_vcs_operations.py
Show inline comments
 
@@ -46,7 +46,7 @@ from kallithea.model.repo import RepoMod
 
from kallithea.model.user import UserModel
 

	
 
DEBUG = True
 
HOST = '127.0.0.1:5000'  # test host
 
HOST = '127.0.0.1:4999'  # test host
 

	
 

	
 
class Command(object):
 
@@ -324,7 +324,7 @@ class TestVCSOperations(BaseTestCase):
 
        stdout, stderr = Command('/tmp').execute('hg clone', clone_url)
 

	
 
        stdout, stderr = _add_files_and_push('hg', DEST,
 
                                    clone_url='http://127.0.0.1:5000/tmp',)
 
                                    clone_url='http://%s/tmp' % HOST)
 

	
 
        assert 'HTTP Error 404: Not Found' in stderr
 

	
 
@@ -334,7 +334,7 @@ class TestVCSOperations(BaseTestCase):
 
        stdout, stderr = Command('/tmp').execute('git clone', clone_url)
 

	
 
        stdout, stderr = _add_files_and_push('git', DEST,
 
                                    clone_url='http://127.0.0.1:5000/tmp',)
 
                                    clone_url='http://%s/tmp' % HOST)
 

	
 
        assert 'not found' in stderr
 

	
test.ini
Show inline comments
 
@@ -163,7 +163,7 @@ max_request_body_size = 107374182400
 

	
 
## COMMON ##
 
host = 127.0.0.1
 
port = 5000
 
port = 4999
 

	
 
## middleware for hosting the WSGI application under a URL prefix
 
#[filter:proxy-prefix]
0 comments (0 inline, 0 general)