use of org.apache.jackrabbit.oak.spi.mount.MountInfoProvider in project jackrabbit-oak by apache.
the class CugUtilTest method testGetSupportedPathsMountsBelowSupportedPath.
@Test(expected = IllegalStateException.class)
public void testGetSupportedPathsMountsBelowSupportedPath() {
MountInfoProvider mip = Mounts.newBuilder().mount("private", "/libs", "/apps").build();
CugUtil.getSupportedPaths(ConfigurationParameters.of(PARAM_CUG_SUPPORTED_PATHS, new String[] { "/" }), mip);
}
use of org.apache.jackrabbit.oak.spi.mount.MountInfoProvider in project jackrabbit-oak by apache.
the class CugUtilTest method testGetSupportedPathsMountsAboveSupportedPath2.
@Test(expected = IllegalStateException.class)
public void testGetSupportedPathsMountsAboveSupportedPath2() {
MountInfoProvider mip = Mounts.newBuilder().mount("private", PathUtils.getAncestorPath(SUPPORTED_PATH3, 2)).build();
CugUtil.getSupportedPaths(CUG_CONFIG, mip);
}
use of org.apache.jackrabbit.oak.spi.mount.MountInfoProvider in project jackrabbit-oak by apache.
the class CugUtilTest method testGetSupportedPathsMountsAtSupportedPath.
@Test(expected = IllegalStateException.class)
public void testGetSupportedPathsMountsAtSupportedPath() {
MountInfoProvider mip = Mounts.newBuilder().mount("private", "/libs", SUPPORTED_PATH3).build();
CugUtil.getSupportedPaths(CUG_CONFIG, mip);
}
use of org.apache.jackrabbit.oak.spi.mount.MountInfoProvider in project jackrabbit-oak by apache.
the class CugConfigurationWithMountsTest method testMountBelowCugSupportedPath.
@Test(expected = IllegalStateException.class)
public void testMountBelowCugSupportedPath() {
MountInfoProvider mip = Mounts.newBuilder().mount("mnt", AbstractCugTest.SUPPORTED_PATH + "/mount").build();
CugConfiguration configuration = createConfiguration(mip);
}
use of org.apache.jackrabbit.oak.spi.mount.MountInfoProvider in project jackrabbit-oak by apache.
the class CugConfigurationWithMountsTest method testMountAtRootWithSupportedPaths.
@Test(expected = IllegalStateException.class)
public void testMountAtRootWithSupportedPaths() {
MountInfoProvider mip = Mounts.newBuilder().mount("mnt", PathUtils.ROOT_PATH).build();
CugConfiguration configuration = createConfiguration(mip);
}
Aggregations