From e905ec49f965b8022775c0c50b84f5922bad7f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Magalh=C3=A3es?= Date: Wed, 21 Aug 2024 12:46:13 +0100 Subject: [PATCH] fix(tests): Remove duplicated method (#420) * Remove duplicated method * Add bugfix branches to verification workflow --- .github/workflows/verify.yaml | 2 +- .../edc/connector/dataplane/aws/s3/S3DataSinkTest.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index bb56d88..4cc8729 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -15,7 +15,7 @@ on: description: optional version of upstream EDC components to use push: pull_request: - branches: [ main ] + branches: [ main, bugfix/* ] paths-ignore: - '**.md' - 'docs/**' diff --git a/extensions/data-plane/data-plane-aws-s3/src/test/java/org/eclipse/edc/connector/dataplane/aws/s3/S3DataSinkTest.java b/extensions/data-plane/data-plane-aws-s3/src/test/java/org/eclipse/edc/connector/dataplane/aws/s3/S3DataSinkTest.java index 021437d..25825d0 100644 --- a/extensions/data-plane/data-plane-aws-s3/src/test/java/org/eclipse/edc/connector/dataplane/aws/s3/S3DataSinkTest.java +++ b/extensions/data-plane/data-plane-aws-s3/src/test/java/org/eclipse/edc/connector/dataplane/aws/s3/S3DataSinkTest.java @@ -174,8 +174,4 @@ private static InputStreamDataSource createDataSource(String text) { return new InputStreamDataSource(SOURCE_OBJECT_NAME, new ByteArrayInputStream(new byte[0])); } - private static InputStreamDataSource createDataSource(String text) { - var content = StringUtils.isBlank(text) ? "test stream" : text; - return new InputStreamDataSource(SOURCE_OBJECT_NAME, new ByteArrayInputStream(content.getBytes(UTF_8))); - } }