Package org.jgroups.protocols.S3_PING

Examples of org.jgroups.protocols.S3_PING.PreSignedUrlParser


        Assert.assertEquals(preSignedUrl, expectedUrl);
    }

    @Test
    public void testPreSignedUrlParserNoPrefix() {
        PreSignedUrlParser parser = new PreSignedUrlParser("http://test-bucket.s3.amazonaws.com/node1");
        Assert.assertEquals(parser.getBucket(), "test-bucket");
        Assert.assertEquals(parser.getPrefix(), "");
    }
View Full Code Here


        Assert.assertEquals(parser.getPrefix(), "");
    }

    @Test
    public void testPreSignedUrlParserWithPrefix() {
        PreSignedUrlParser parser = new PreSignedUrlParser("http://test-bucket.s3.amazonaws.com/subdir/node1");
        Assert.assertEquals(parser.getBucket(), "test-bucket");
        Assert.assertEquals(parser.getPrefix(), "subdir");
    }
View Full Code Here

        Assert.assertEquals(parser.getPrefix(), "subdir");
    }

    @Test
    public void testPreSignedUrlParserWithComplexBucketName() {
        PreSignedUrlParser parser = new PreSignedUrlParser("http://test-bucket.s3.foo-bar.s3.amazonaws.com/node1");
        Assert.assertEquals(parser.getBucket(), "test-bucket.s3.foo-bar");
        Assert.assertEquals(parser.getPrefix(), "");
    }
View Full Code Here

TOP

Related Classes of org.jgroups.protocols.S3_PING.PreSignedUrlParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.