Reproduce aws/amazon-s3-encryption-client-java#300
Add a file named AwsTestsSecrets
alongside TestEndOfStreamBehavior
.
This file should contain the following:
import software.amazon.awssdk.regions.Region;
public class AwsTestsSecrets {
public static final String AWS_TEST_BUCKET = "your bucket here";
public static final Region DEFAULT_REGION = "your region here";
public static final String PUBLIC_KEY = "your public key here";
public static final String PRIVATE_KEY = "your private key here";
}
Then run TestEndOfStreamBehavior
, either through your IDE or through the command line (mvn clean install
).
The reproducer should throw an exception when using the EncryptionClient, but not the regular client.