From b27d1779f7d1b40a04981f86de1e0a4d6784ed77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Thu, 21 Nov 2024 10:51:07 +0100 Subject: [PATCH] feat: storage now have a namespace parameter --- src/test/java/io/kestra/plugin/github/code/SearchTest.java | 2 +- src/test/java/io/kestra/plugin/github/commits/SearchTest.java | 2 +- src/test/java/io/kestra/plugin/github/issues/SearchTest.java | 2 +- src/test/java/io/kestra/plugin/github/pulls/SearchTest.java | 2 +- .../java/io/kestra/plugin/github/repositories/SearchTest.java | 2 +- src/test/java/io/kestra/plugin/github/topics/SearchTest.java | 2 +- src/test/java/io/kestra/plugin/github/users/SearchTest.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/io/kestra/plugin/github/code/SearchTest.java b/src/test/java/io/kestra/plugin/github/code/SearchTest.java index b3f0c9e..022b1c0 100644 --- a/src/test/java/io/kestra/plugin/github/code/SearchTest.java +++ b/src/test/java/io/kestra/plugin/github/code/SearchTest.java @@ -72,7 +72,7 @@ void testParameters() throws Exception { } private List> getResult(Search.Output run) throws IOException { - BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, run.getUri()))); + BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, null, run.getUri()))); List> result = new ArrayList<>(); FileSerde.reader(inputStream, r -> result.add((Map) r)); return result; diff --git a/src/test/java/io/kestra/plugin/github/commits/SearchTest.java b/src/test/java/io/kestra/plugin/github/commits/SearchTest.java index ee7a283..ff5fef0 100644 --- a/src/test/java/io/kestra/plugin/github/commits/SearchTest.java +++ b/src/test/java/io/kestra/plugin/github/commits/SearchTest.java @@ -72,7 +72,7 @@ void testParameters() throws Exception { } private List> getResult(Search.Output run) throws IOException { - BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, run.getUri()))); + BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, null, run.getUri()))); List> result = new ArrayList<>(); FileSerde.reader(inputStream, r -> result.add((Map) r)); return result; diff --git a/src/test/java/io/kestra/plugin/github/issues/SearchTest.java b/src/test/java/io/kestra/plugin/github/issues/SearchTest.java index e2801e1..61d3303 100644 --- a/src/test/java/io/kestra/plugin/github/issues/SearchTest.java +++ b/src/test/java/io/kestra/plugin/github/issues/SearchTest.java @@ -68,7 +68,7 @@ void testParameters() throws Exception { } private List> getResult(Search.FileOutput run) throws IOException { - BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, run.getUri()))); + BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, null, run.getUri()))); List> result = new ArrayList<>(); FileSerde.reader(inputStream, r -> result.add((Map) r)); return result; diff --git a/src/test/java/io/kestra/plugin/github/pulls/SearchTest.java b/src/test/java/io/kestra/plugin/github/pulls/SearchTest.java index 1b29ced..2a685e6 100644 --- a/src/test/java/io/kestra/plugin/github/pulls/SearchTest.java +++ b/src/test/java/io/kestra/plugin/github/pulls/SearchTest.java @@ -68,7 +68,7 @@ void testParameters() throws Exception { } private List> getResult(Search.FileOutput run) throws IOException { - BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, run.getUri()))); + BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, null, run.getUri()))); List> result = new ArrayList<>(); FileSerde.reader(inputStream, r -> result.add((Map) r)); return result; diff --git a/src/test/java/io/kestra/plugin/github/repositories/SearchTest.java b/src/test/java/io/kestra/plugin/github/repositories/SearchTest.java index 9b3b12c..d3e6a29 100644 --- a/src/test/java/io/kestra/plugin/github/repositories/SearchTest.java +++ b/src/test/java/io/kestra/plugin/github/repositories/SearchTest.java @@ -68,7 +68,7 @@ void testParameters() throws Exception { } private List> getResult(Search.FileOutput run) throws IOException { - BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, run.getUri()))); + BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, null, run.getUri()))); List> result = new ArrayList<>(); FileSerde.reader(inputStream, r -> result.add((Map) r)); return result; diff --git a/src/test/java/io/kestra/plugin/github/topics/SearchTest.java b/src/test/java/io/kestra/plugin/github/topics/SearchTest.java index 9d94fe6..e8996a6 100644 --- a/src/test/java/io/kestra/plugin/github/topics/SearchTest.java +++ b/src/test/java/io/kestra/plugin/github/topics/SearchTest.java @@ -70,7 +70,7 @@ void testParameters() throws Exception { } private List> getResult(Search.Output run) throws IOException { - BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, run.getUri()))); + BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, null, run.getUri()))); List> result = new ArrayList<>(); FileSerde.reader(inputStream, r -> result.add((Map) r)); return result; diff --git a/src/test/java/io/kestra/plugin/github/users/SearchTest.java b/src/test/java/io/kestra/plugin/github/users/SearchTest.java index b447196..b6ea138 100644 --- a/src/test/java/io/kestra/plugin/github/users/SearchTest.java +++ b/src/test/java/io/kestra/plugin/github/users/SearchTest.java @@ -67,7 +67,7 @@ void testParameters() throws Exception { } private List> getResult(Search.FileOutput run) throws IOException { - BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, run.getUri()))); + BufferedReader inputStream = new BufferedReader(new InputStreamReader(storageInterface.get(null, null, run.getUri()))); List> result = new ArrayList<>(); FileSerde.reader(inputStream, r -> result.add((Map) r)); return result;