use of com.emc.metalnx.core.domain.entity.DataGridTicket in project metalnx-web by irods-contrib.
the class TestCreateTicketWithUsesLimit method setUp.
@Before
public void setUp() throws DataGridException, JargonException {
String parentPath = String.format("/%s/home", zone);
targetPath = String.format("%s/%s", parentPath, username);
ticketUtils = new TestTicketUtils(irodsServices);
dgt = new DataGridTicket(targetPath);
dgt.setUsesLimit(USES_LIMIT);
}
use of com.emc.metalnx.core.domain.entity.DataGridTicket in project metalnx-web by irods-contrib.
the class TestCreateTicketWithHostRestriction method setUp.
@Before
public void setUp() throws DataGridException, JargonException {
String parentPath = String.format("/%s/home", zone);
targetPath = String.format("%s/%s", parentPath, username);
ticketUtils = new TestTicketUtils(irodsServices);
dgt = new DataGridTicket(targetPath);
dgt.addHost(host);
}
use of com.emc.metalnx.core.domain.entity.DataGridTicket in project metalnx-web by irods-contrib.
the class TestCreateDuplicatedTicket method testCreateDuplicatedTicket.
@Test(expected = DataGridTicketException.class)
public void testCreateDuplicatedTicket() throws DataGridConnectionRefusedException, DataGridTicketException {
DataGridTicket dgt = new DataGridTicket(targetPath);
dgt.setTicketString(ticketString);
ticketService.create(dgt);
}
use of com.emc.metalnx.core.domain.entity.DataGridTicket in project metalnx-web by irods-contrib.
the class TestCreateTicketWithByteLimit method setUp.
@Before
public void setUp() throws DataGridException, JargonException {
String parentPath = String.format("/%s/home", zone);
targetPath = String.format("%s/%s", parentPath, username);
ticketUtils = new TestTicketUtils(irodsServices);
dgt = new DataGridTicket(targetPath);
dgt.setWriteByteLimit(WRITE_BYTE_LIMIT);
}
use of com.emc.metalnx.core.domain.entity.DataGridTicket in project metalnx-web by irods-contrib.
the class TestCreateTicketWithFilesLimit method setUp.
@Before
public void setUp() throws DataGridException, JargonException {
String parentPath = String.format("/%s/home", zone);
targetPath = String.format("%s/%s", parentPath, username);
ticketUtils = new TestTicketUtils(irodsServices);
dgt = new DataGridTicket(targetPath);
dgt.setWriteFileLimit(WRITE_FILE_LIMIT);
}
Aggregations