From c48c774d6c7bb5df9cfcd453c0a0ba4600cee65c Mon Sep 17 00:00:00 2001 From: Sneha Vijayarajan Date: Thu, 26 Nov 2020 15:51:01 +0530 Subject: [PATCH] HADOOP-17397. ABFS: SAS Test updates for version and permission update (#2492) Contributed by Sneha Vijayarajan. Change-Id: I89c1061b1efb1e3bef019dd22f221d03bf015929 --- .../apache/hadoop/fs/azurebfs/utils/DelegationSASGenerator.java | 2 +- .../apache/hadoop/fs/azurebfs/utils/ServiceSASGenerator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/DelegationSASGenerator.java b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/DelegationSASGenerator.java index 6f2209a6e8c..5427469ec1f 100644 --- a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/DelegationSASGenerator.java +++ b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/DelegationSASGenerator.java @@ -88,7 +88,7 @@ public class DelegationSASGenerator extends SASGenerator { break; case SASTokenProvider.SET_ACL_OPERATION: case SASTokenProvider.SET_PERMISSION_OPERATION: - sp = "p"; + sp = "op"; break; case SASTokenProvider.SET_OWNER_OPERATION: sp = "o"; diff --git a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/ServiceSASGenerator.java b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/ServiceSASGenerator.java index 3d8496eff81..24a1cea255b 100644 --- a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/ServiceSASGenerator.java +++ b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/ServiceSASGenerator.java @@ -38,7 +38,7 @@ public class ServiceSASGenerator extends SASGenerator { public String getContainerSASWithFullControl(String accountName, String containerName) { String sp = "rcwdl"; - String sv = AuthenticationVersion.Nov18.toString(); + String sv = AuthenticationVersion.Feb20.toString(); String sr = "c"; String st = ISO_8601_FORMATTER.format(Instant.now().minus(FIVE_MINUTES)); String se = ISO_8601_FORMATTER.format(Instant.now().plus(ONE_DAY));