3f97f6 Integrate repoSpanner

Authored and Committed by Patrick Uiterwijk 6 years ago
68 files changed. 1772 lines added. 1741 lines removed.
.gitignore
file modified
+3 -0
alembic/versions/19b67f4b9fe4_add_repospanner_region_column.py
file added
+22
files/pagure.cfg.sample
file modified
+29 -0
pagure/api/__init__.py
file modified
+1 -2
pagure/api/ci/jenkins.py
file modified
+1 -6
pagure/api/fork.py
file modified
+8 -17
pagure/api/issue.py
file modified
+0 -10
pagure/api/project.py
file modified
+6 -11
pagure/decorators.py
file modified
+3 -2
pagure/default_config.py
file modified
+27 -0
pagure/docs_server.py
file modified
+1 -1
pagure/flask_app.py
file modified
+5 -2
pagure/forms.py
file modified
+19 -1
pagure/internal/__init__.py
file modified
+5 -10
pagure/lib/__init__.py
file modified
+91 -168
pagure/lib/git.py
file modified
+730 -597
pagure/lib/git_auth.py
file modified
+9 -1
pagure/lib/lib_ci.py
file modified
+2 -9
pagure/lib/model.py
file modified
+106 -0
pagure/lib/tasks.py
file modified
+158 -205
pagure/lib/tasks_services.py
file modified
+1 -3
pagure/templates/new_project.html
file modified
+3 -0
pagure/templates/settings.html
file modified
+7 -0
pagure/templates/settings_repospanner.html
file added
+37
pagure/ui/app.py
file modified
+5 -4
pagure/ui/fork.py
file modified
+8 -48
pagure/ui/issues.py
file modified
+5 -29
pagure/ui/repo.py
file modified
+69 -13
pagure/utils.py
file modified
+4 -8
tests/__init__.py
file modified
+36 -0
tests/test_pagure_flask_api_fork.py
file modified
+2 -24
tests/test_pagure_flask_api_issue.py
file modified
+0 -20
tests/test_pagure_flask_api_issue_change_status.py
file modified
+0 -2
tests/test_pagure_flask_api_issue_comment.py
file modified
+0 -2
tests/test_pagure_flask_api_issue_custom_fields.py
file modified
+0 -1
tests/test_pagure_flask_api_pr_flag.py
file modified
+0 -2
tests/test_pagure_flask_api_project.py
file modified
+4 -8
tests/test_pagure_flask_api_project_update_watch.py
file modified
+0 -1
tests/test_pagure_flask_api_ui_private_repo.py
file modified
+1 -13
tests/test_pagure_flask_api_user.py
file modified
+0 -14
tests/test_pagure_flask_docs.py
file modified
+8 -8
tests/test_pagure_flask_dump_load_ticket.py
file modified
+1 -10
tests/test_pagure_flask_internal.py
file modified
+0 -10
tests/test_pagure_flask_ui_app.py
file modified
+1 -10
tests/test_pagure_flask_ui_fork.py
file modified
+0 -12
tests/test_pagure_flask_ui_issue_pr_link.py
file modified
+0 -3
tests/test_pagure_flask_ui_issues.py
file modified
+2 -44
tests/test_pagure_flask_ui_issues_acl_checks.py
file modified
+0 -12
tests/test_pagure_flask_ui_issues_private.py
file modified
+0 -2
tests/test_pagure_flask_ui_issues_read_only.py
file modified
+0 -2
tests/test_pagure_flask_ui_plugins_default_hook.py
file modified
+3 -12
tests/test_pagure_flask_ui_pr_no_sources.py
file modified
+0 -1
tests/test_pagure_flask_ui_repo.py
file modified
+4 -55
tests/test_pagure_flask_ui_repo_delete_project.py
file modified
+0 -4
tests/test_pagure_flask_ui_repo_milestones.py
file modified
+0 -1
tests/test_pagure_flask_ui_repo_slash_name.py
file modified
+2 -8
tests/test_pagure_lib.py
file modified
+46 -236
tests/test_pagure_lib_drop_issue.py
file modified
+4 -7
tests/test_pagure_lib_git.py
file modified
+4 -32
tests/test_pagure_lib_git_diff_pr.py
file modified
+0 -6
tests/test_pagure_lib_link.py
file modified
+0 -3
tests/test_pagure_lib_model.py
file modified
+0 -2
tests/test_pagure_lib_notify.py
file modified
+0 -10
tests/test_pagure_lib_notify_email.py
file modified
+0 -4
tests/test_pagure_lib_task_services.py
file modified
+0 -2
tests/test_pagure_lib_watch_list.py
file modified
+0 -8
tests/test_pagure_repospanner.py
file added
+289
tests/test_stream_server.py
file modified
+0 -3
    Integrate repoSpanner
    
    This allows configuring new repositories to be created on repoSpanner, and allows
    existing ones to be migrated over.
    Support is included for multiple regions/setups, although migrating between regions
    is not supported (technically nothing limiting, but not required for first version).
    
    The actual repoSpanner parts require a repoSpanner enlightened libgit2 build.
    
    The test suite requires the patched libgit2 and a repoSpanner daemon binary.
    This binary can either be in /usr/bin/repospanner, or in the top level directory.
    If this binary can't be found, the test will be marked as Skipped.
    In addition, it requires an /etc/hosts entry with:
    127.0.0.1	nodea.regiona.repospanner.local
    
    Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org></patrick@puiterwijk.org>
    
        
file modified
+3 -0
file modified
+29 -0
file modified
+1 -2
file modified
+1 -6
file modified
+8 -17
file modified
+0 -10
file modified
+6 -11
file modified
+3 -2
file modified
+27 -0
file modified
+1 -1
file modified
+5 -2
file modified
+19 -1
file modified
+5 -10
file modified
+91 -168
file modified
+730 -597
file modified
+9 -1
file modified
+2 -9
file modified
+106 -0
file modified
+158 -205
file modified
+1 -3
file modified
+5 -4
file modified
+8 -48
file modified
+5 -29
file modified
+69 -13
file modified
+4 -8
file modified
+36 -0
file modified
+46 -236
file modified
+4 -32
file modified
+0 -3