Skip to content

Commit

Permalink
Add tests covering 'bucket_prefix' #400
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed Jan 16, 2025
1 parent 4894a85 commit b86010e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ public void testDiscovery() throws Exception {
discover(RANDOM_CLUSTER_NAME, S3_PING.class.getSimpleName());
}

@Test
public void testDiscoveryWithBucketPrefix() throws Exception {
String bucketPrefixProperty = "jgroups.aws.s3.bucket_prefix";

System.setProperty(bucketPrefixProperty, "my-other-test-prefix");
discover(RANDOM_CLUSTER_NAME, S3_PING.class.getSimpleName());
System.clearProperty(bucketPrefixProperty);
}

@Test
public void testDiscoveryObscureClusterName() throws Exception {
String obscureClusterName = "``\\//--+ěščřžýáíé==''!@#$%^&*()_{}<>?";
Expand Down

0 comments on commit b86010e

Please sign in to comment.