From defbb4a8f390c7de73ac6a90fc1ab5009e8105ee Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 15 Oct 2020 14:05:28 -0700 Subject: [PATCH] Allow tempurl times to have units Specifically, let users add a suffix for seconds, minutes, hours, or days. Change-Id: Ibbe7e5aa8aa8e54935da76109c2ea13fb83bc7ab --- swiftclient/shell.py | 18 +++++---- swiftclient/utils.py | 89 +++++++++++++++++++++++++---------------- test/unit/test_shell.py | 8 ++++ test/unit/test_utils.py | 39 ++++++++++++++++++ 4 files changed, 112 insertions(+), 42 deletions(-) diff --git a/swiftclient/shell.py b/swiftclient/shell.py index 5bcff7fc..ed39b819 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -1381,14 +1381,16 @@ Positional arguments: An HTTP method to allow for this temporary URL. Usually 'GET' or 'PUT'.