Add support for ssh source

For gerrit, it only support ssh source, with this patch,
you can use gerrit link ssh source for verification adding.

Change-Id: I9b0e98008f624113fcdf29b62e66f983407035e5
Closes-Bug: #1737529
This commit is contained in:
BinBin Cong 2017-12-12 14:08:03 +08:00
parent ac2354895a
commit 4dd502bb61
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ from rally.verification import utils
LOG = logging.getLogger(__name__)
URL_RE = re.compile(
r"^(?:http|ftp)s?://" # http:// or https://
r"(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+" # domain
r"^(?:(?:http|ftp)s?|ssh)://" # http:// or https://
r"(?:(?:[A-Z0-9](?:[A-Z0-9@-]{0,61}[A-Z0-9])?\.)+" # domain
r"(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|" # domain
r"localhost|" # localhost
r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" # IP