use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class urn_perun_facility_attribute_def_def_homeMountPointsTest method testCheckAttributeValueNoHomeMountPointsSet.
@Test(expected = WrongAttributeValueException.class)
public void testCheckAttributeValueNoHomeMountPointsSet() throws Exception {
System.out.println("testCheckAttributeValueNoHomeMountPointsSet()");
attribute.setValue(new ArrayList<String>());
classInstance.checkAttributeValue(session, new Facility(), attribute);
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class urn_perun_facility_attribute_def_def_ldapBaseDNTest method testCheckAttributeValueWrongChars.
@Test(expected = WrongAttributeValueException.class)
public void testCheckAttributeValueWrongChars() throws Exception {
Attribute attribute = new Attribute(module.getAttributeDefinition());
attribute.setValue("cn=example,dc=domain");
module.checkAttributeValue(null, new Facility(), attribute);
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class urn_perun_facility_attribute_def_def_ldapBaseDNTest method testCheckAttributeValueFailsLessChars.
@Test(expected = WrongAttributeValueException.class)
public void testCheckAttributeValueFailsLessChars() throws Exception {
Attribute attribute = new Attribute(module.getAttributeDefinition());
attribute.setValue("ou");
module.checkAttributeValue(null, new Facility(), attribute);
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class urn_perun_facility_attribute_def_def_shellsTest method testCheckAttributeValueNoShellsSet.
@Test(expected = WrongAttributeValueException.class)
public void testCheckAttributeValueNoShellsSet() throws Exception {
System.out.println("testCheckAttributeValueNoShellsSet()");
attribute.setValue(new ArrayList<String>());
classInstance.checkAttributeValue(session, new Facility(), attribute);
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class urn_perun_group_resource_attribute_def_def_isUnixGroupIntegrationtest method setUpFacility.
private Facility setUpFacility() throws Exception {
Facility facility = new Facility();
facility.setName("IsUnixGroupTestFacility");
facility = perun.getFacilitiesManager().createFacility(sess, facility);
return facility;
}
Aggregations