use of ch.myniva.gradle.caching.s3.AwsS3BuildCache in project gradle-s3-build-cache by myniva.
the class AwsS3BuildCacheServiceFactoryTest method testNullHeaderValue.
@Test
public void testNullHeaderValue() {
AwsS3BuildCache conf = new AwsS3BuildCache();
conf.setRegion("us-west-1");
conf.setBucket("my-bucket");
Map<String, String> headers = new HashMap<String, String>() {
{
put("x-foo", null);
}
};
conf.setHeaders(headers);
BuildCacheService service = subject.createBuildCacheService(conf, buildCacheDescriber);
assertNotNull(service);
}
use of ch.myniva.gradle.caching.s3.AwsS3BuildCache in project gradle-s3-build-cache by myniva.
the class AwsS3BuildCacheServiceFactoryTest method testWhat.
@Test
public void testWhat() {
AwsS3BuildCache conf = new AwsS3BuildCache();
conf.setRegion("us-west-1");
conf.setBucket("my-bucket");
BuildCacheService service = subject.createBuildCacheService(conf, buildCacheDescriber);
assertNotNull(service);
}
use of ch.myniva.gradle.caching.s3.AwsS3BuildCache in project gradle-s3-build-cache by myniva.
the class AwsS3BuildCacheServiceFactoryTest method testNullHeaders.
@Test
public void testNullHeaders() {
AwsS3BuildCache conf = new AwsS3BuildCache();
conf.setRegion("us-west-1");
conf.setBucket("my-bucket");
conf.setHeaders(null);
BuildCacheService service = subject.createBuildCacheService(conf, buildCacheDescriber);
assertNotNull(service);
}
use of ch.myniva.gradle.caching.s3.AwsS3BuildCache in project gradle-s3-build-cache by myniva.
the class AwsS3BuildCacheServiceFactoryTest method testIllegalConfigWithoutRegion.
@Test(expected = IllegalStateException.class)
public void testIllegalConfigWithoutRegion() throws Exception {
AwsS3BuildCache conf = new AwsS3BuildCache();
conf.setBucket("my-bucket");
subject.createBuildCacheService(conf, buildCacheDescriber);
}
use of ch.myniva.gradle.caching.s3.AwsS3BuildCache in project gradle-s3-build-cache by myniva.
the class AwsS3BuildCacheServiceFactoryTest method testNullHeaderName.
@Test
public void testNullHeaderName() {
AwsS3BuildCache conf = new AwsS3BuildCache();
conf.setRegion("us-west-1");
conf.setBucket("my-bucket");
Map<String, String> headers = new HashMap<String, String>() {
{
put(null, "foo");
}
};
conf.setHeaders(headers);
BuildCacheService service = subject.createBuildCacheService(conf, buildCacheDescriber);
assertNotNull(service);
}
Aggregations