From 8294a33697f1e8b8ed2cbc7df1e085d80a56c3ee Mon Sep 17 00:00:00 2001 From: Vishesh Garg Date: Wed, 13 Dec 2023 17:52:23 +0530 Subject: [PATCH] Fix forbidden api error --- extensions-core/google-extensions/pom.xml | 15 +++++++++++++++ .../druid/storage/google/GoogleStorageTest.java | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/extensions-core/google-extensions/pom.xml b/extensions-core/google-extensions/pom.xml index 62853f43a998..b13428242ea3 100644 --- a/extensions-core/google-extensions/pom.xml +++ b/extensions-core/google-extensions/pom.xml @@ -108,12 +108,27 @@ google-http-client provided + + com.google.api-client + google-api-client + provided + com.google.code.findbugs jsr305 2.0.1 provided + + com.google.api + gax + 2.37.0 + + + com.google.cloud + google-cloud-core + 2.27.0 + org.apache.druid diff --git a/extensions-core/google-extensions/src/test/java/org/apache/druid/storage/google/GoogleStorageTest.java b/extensions-core/google-extensions/src/test/java/org/apache/druid/storage/google/GoogleStorageTest.java index 10ab6cea7d50..d92339f53c79 100644 --- a/extensions-core/google-extensions/src/test/java/org/apache/druid/storage/google/GoogleStorageTest.java +++ b/extensions-core/google-extensions/src/test/java/org/apache/druid/storage/google/GoogleStorageTest.java @@ -49,7 +49,7 @@ public class GoogleStorageTest static final String BUCKET = "bucket"; static final String PATH = "/path"; static final long SIZE = 100; - static final OffsetDateTime UPDATE_TIME = OffsetDateTime.now(); + static final OffsetDateTime UPDATE_TIME = OffsetDateTime.MIN; @Before public void setUp() @@ -210,12 +210,12 @@ public void testList() throws IOException final String bucket1 = "BUCKET_1"; final String path1 = "PATH_1"; final long size1 = 7; - final OffsetDateTime updateTime1 = OffsetDateTime.now(); + final OffsetDateTime updateTime1 = OffsetDateTime.MIN; final String bucket2 = "BUCKET_2"; final String path2 = "PATH_2"; final long size2 = 9; - final OffsetDateTime updateTime2 = OffsetDateTime.now(); + final OffsetDateTime updateTime2 = OffsetDateTime.MIN; final String nextPageToken = "TOKEN";