diff options
author | mikecase@chromium.org <mikecase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-15 02:49:02 +0000 |
---|---|---|
committer | mikecase@chromium.org <mikecase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-15 02:49:02 +0000 |
commit | 55b005db21f97908fa015ac086f13ac1a91b0eae (patch) | |
tree | 3be5e5504d2f5f370e7e707cac2694885fed1ff9 /chrome/test/ispy/common | |
parent | 504a1e21f83bbef4f6fd4d42314b5a822d935e27 (diff) | |
download | chromium_src-55b005db21f97908fa015ac086f13ac1a91b0eae.zip chromium_src-55b005db21f97908fa015ac086f13ac1a91b0eae.tar.gz chromium_src-55b005db21f97908fa015ac086f13ac1a91b0eae.tar.bz2 |
Fixed bug where ispy.googleplex.com would time out
BUG=378561
Review URL: https://codereview.chromium.org/393653003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ispy/common')
-rw-r--r-- | chrome/test/ispy/common/ispy_utils.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/test/ispy/common/ispy_utils.py b/chrome/test/ispy/common/ispy_utils.py index a138f07..3d6ed15 100644 --- a/chrome/test/ispy/common/ispy_utils.py +++ b/chrome/test/ispy/common/ispy_utils.py @@ -290,15 +290,20 @@ class ISpyUtils(object): 'Failure', ['expected', 'diff', 'actual', 'info']) return Failure(expected, diff, actual, info) - def GetAllPaths(self, prefix): + def GetAllPaths(self, prefix, max_keys=None, marker=None, delimiter=None): """Gets urls to all files in GS whose path starts with a given prefix. Args: prefix: the prefix to filter files in GS by. + max_keys: Integer. Specifies the maximum number of objects returned + marker: String. Only objects whose fullpath starts lexicographically + after marker (exclusively) will be returned + delimiter: String. Turns on directory mode, specifies characters + to be used as directory separators Returns: a list containing urls to all objects that started with the prefix. """ - return self.cloud_bucket.GetAllPaths(prefix) - + return self.cloud_bucket.GetAllPaths( + prefix, max_keys=max_keys, marker=marker, delimiter=delimiter) |