forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert missing s3-destinations tests (airbytehq#36570)
- Loading branch information
1 parent
8bafd63
commit 247e46d
Showing
37 changed files
with
1,391 additions
and
1,272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
...nations/src/test/kotlin/io/airbyte/cdk/integrations/destination/s3/BlobDecoratorTest.java
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...tinations/src/test/kotlin/io/airbyte/cdk/integrations/destination/s3/BlobDecoratorTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2023 Airbyte, Inc., all rights reserved. | ||
*/ | ||
package io.airbyte.cdk.integrations.destination.s3 | ||
|
||
import java.util.Map | ||
import org.junit.jupiter.api.Assertions | ||
import org.junit.jupiter.api.Test | ||
|
||
class BlobDecoratorTest { | ||
@Test | ||
fun testOverwriteMetadata() { | ||
val metadata: MutableMap<String, String> = HashMap() | ||
metadata["amz-foo"] = "oldValue" | ||
|
||
BlobDecorator.insertMetadata(metadata, Map.of("foo", "amz-foo"), "foo", "newValue") | ||
|
||
Assertions.assertEquals(Map.of("amz-foo", "newValue"), metadata) | ||
} | ||
|
||
@Test | ||
fun testNewMetadata() { | ||
val metadata: MutableMap<String, String> = HashMap() | ||
metadata["amz-foo"] = "oldValue" | ||
|
||
BlobDecorator.insertMetadata(metadata, Map.of("bar", "amz-bar"), "bar", "newValue") | ||
|
||
Assertions.assertEquals(Map.of("amz-foo", "oldValue", "amz-bar", "newValue"), metadata) | ||
} | ||
|
||
@Test | ||
fun testSkipMetadata() { | ||
val metadata: MutableMap<String, String> = HashMap() | ||
metadata["amz-foo"] = "oldValue" | ||
|
||
BlobDecorator.insertMetadata(metadata, Map.of("foo", "amz-foo"), "bar", "newValue") | ||
|
||
Assertions.assertEquals(Map.of("amz-foo", "oldValue"), metadata) | ||
} | ||
} |
96 changes: 0 additions & 96 deletions
96
...inations/src/test/kotlin/io/airbyte/cdk/integrations/destination/s3/S3BaseChecksTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.