Skip to content

Commit

Permalink
add encryption acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
edgao committed Apr 28, 2022
1 parent ac47dda commit 9ae867b
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package io.airbyte.integrations.destination.snowflake;

import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.base.Preconditions;
import io.airbyte.commons.io.IOs;
import io.airbyte.commons.json.Jsons;
import java.nio.file.Path;

public class SnowflakeS3CopyEncryptedDestinationAcceptanceTest extends SnowflakeInsertDestinationAcceptanceTest {

@Override
public JsonNode getStaticConfig() {
final JsonNode copyConfig = Jsons.deserialize(IOs.readFile(Path.of("secrets/copy_s3_encrypted_config.json")));
Preconditions.checkArgument(SnowflakeDestinationResolver.isS3Copy(copyConfig));
Preconditions.checkArgument(!SnowflakeDestinationResolver.isGcsCopy(copyConfig));
return copyConfig;
}
}

0 comments on commit 9ae867b

Please sign in to comment.