FsExport { public List<layouttype4> getLayoutTypes() { return _layoutTypes; } private  FsExport(String path, FsExportBuilder builder); static int getExportIndex(String path); String getPath(); @Override String toString(); boolean isAllowed(InetAddress client); boolean isTrusted(); String client(); IO ioMode(); int getIndex(); boolean checkAcls(); Sec getSec(); boolean hasAllSquash(); int getAnonUid(); int getAnonGid(); boolean isWithDcap(); boolean isAllRoot(); boolean isWithPnfs(); boolean isPrivilegedClientPortRequired(); List<layouttype4> getLayoutTypes(); static String normalize(String path); @Override int hashCode(); @Override boolean equals(Object obj); final static int DEFAULT_ANON_UID; final static int DEFAULT_ANON_GID; }
@Test public void testLyoutTypeOptions() throws Exception { FsExport export = _exportFile.getExport("/layouttypes", InetAddress.getByName("172.16.1.1")); assertEquals("invalid number of returned layouts", 1, export.getLayoutTypes().size()); assertEquals("wrong layout type", layouttype4.LAYOUT4_NFSV4_1_FILES, export.getLayoutTypes().get(0)); }
@Test public void testLyoutTypeOrder1() throws Exception { FsExport export = _exportFile.getExport("/layouttypes", InetAddress.getByName("172.16.2.1")); assertEquals("invalid number of returned layouts", 2, export.getLayoutTypes().size()); assertEquals("wrong layout type", layouttype4.LAYOUT4_FLEX_FILES, export.getLayoutTypes().get(0)); assertEquals("wrong layout type", layouttype4.LAYOUT4_NFSV4_1_FILES, export.getLayoutTypes().get(1)); }
@Test public void testLyoutTypeOrder2() throws Exception { FsExport export = _exportFile.getExport("/layouttypes", InetAddress.getByName("172.16.3.1")); assertEquals("invalid number of returned layouts", 2, export.getLayoutTypes().size()); assertEquals("wrong layout type", layouttype4.LAYOUT4_NFSV4_1_FILES, export.getLayoutTypes().get(0)); assertEquals("wrong layout type", layouttype4.LAYOUT4_FLEX_FILES, export.getLayoutTypes().get(1)); }
@Test public void testNoLyoutTypes() throws Exception { FsExport export = _exportFile.getExport("/layouttypes", InetAddress.getByName("172.16.4.1")); assertTrue("No layout types expected", export.getLayoutTypes().isEmpty()); }