Github user wido commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1332#discussion_r51040863 --- Diff: utils/src/main/java/com/cloud/utils/SwiftUtil.java --- @@ -236,4 +247,60 @@ public static boolean deleteObject(SwiftClientCfg cfg, String path) { command.execute(parser); return true; } + + public static boolean setTempKey(SwiftClientCfg cfg, String tempKey){ + + Map<String, String> tempKeyMap = new HashMap<>(); + tempKeyMap.put("Temp-URL-Key", tempKey); + return postMeta(cfg, "", "", tempKeyMap); + + } + + public static URL generateTempUrl(SwiftClientCfg cfg, String container, String object, String tempKey, int urlExpirationInterval) { --- End diff -- Same here. This method is perfectly suited for a Unit Test
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---