This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch gc/8454
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/gc/8454 by this push:
new 85d203ee4 fixup! [#8454] prevent anonymous github project imports
85d203ee4 is described below
commit 85d203ee443cdb17437c14d76b1ee1ec0d140e33
Author: Guillermo Cruz <[email protected]>
AuthorDate: Mon Aug 22 13:52:11 2022 -0600
fixup! [#8454] prevent anonymous github project imports
---
.../forgeimporters/tests/github/functional/test_github.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/ForgeImporters/forgeimporters/tests/github/functional/test_github.py
b/ForgeImporters/forgeimporters/tests/github/functional/test_github.py
index 0068e6e29..d8ef5e143 100644
--- a/ForgeImporters/forgeimporters/tests/github/functional/test_github.py
+++ b/ForgeImporters/forgeimporters/tests/github/functional/test_github.py
@@ -92,3 +92,9 @@ class TestGitHubOAuth(TestController):
auth=requests.auth.HTTPBasicAuth('client_id', 'secret'),
json={'access_token':
'abc'},
timeout=10)
+
+
+ def test_project_import(self):
+ r = self.app.get('/p/import_project/github/',
extra_environ=dict(username='*anonymous'))
+ assert_equal(None, r.location)
+ r.mustcontain('Login Required')