This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 75d3e63 8414 private ip test fix
75d3e63 is described below
commit 75d3e63d914542e186a9445edb8d9bcab26728d3
Author: Guillermo Cruz <[email protected]>
AuthorDate: Tue Mar 1 09:48:04 2022 -0700
8414 private ip test fix
---
ForgeSVN/forgesvn/tests/functional/test_controllers.py | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/ForgeSVN/forgesvn/tests/functional/test_controllers.py
b/ForgeSVN/forgesvn/tests/functional/test_controllers.py
index 197f912..94ad5ce 100644
--- a/ForgeSVN/forgesvn/tests/functional/test_controllers.py
+++ b/ForgeSVN/forgesvn/tests/functional/test_controllers.py
@@ -318,13 +318,6 @@ class TestImportController(SVNTestController):
r = self.app.get('/p/test/admin/empty/importer').follow(status=200)
assert 'Enter the URL of the source repository below' in r
- @with_tool('test', 'SVN', 'empty', 'empty SVN')
- def test_url_import_validation_fail(self):
- params = dict(checkout_url='https://sf-1.xb.sf.net/trac/url')
- r = self.app.post('/p/test/admin/empty/importer/do_import', params,
- status=200)
- assert 'Invalid URL' in r.text
-
@patch('forgesvn.svn_main.allura.tasks.repo_tasks')
@with_tool('test', 'SVN', 'empty', 'empty SVN')
def test_do_import_empty_repo(self, tasks):
@@ -336,6 +329,10 @@ class TestImportController(SVNTestController):
@with_tool('test', 'SVN', 'empty', 'empty SVN')
def test_validator(self, tasks):
r = self.app.post('/p/test/admin/empty/importer/do_import',
+ {'checkout_url': 'http://10.0.0.0/trac/url'})
+ assert 'Invalid URL' in r
+
+ r = self.app.post('/p/test/admin/empty/importer/do_import',
{'checkout_url': 'http://fake.svn/'})
assert 'That is not a valid URL' not in r