use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method setUserAttributesForMemberResourceWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void setUserAttributesForMemberResourceWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "setUserAttributesForMemberResourceWhenResourceNotExists");
vo = setUpVo();
member = setUpMember();
attributes = setUpUserAttribute();
attributesManager.setAttributes(sess, new Resource(), member, attributes, true);
// shouldn't find resource
}
use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getResourceRequiredMemberAttributesWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getResourceRequiredMemberAttributesWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getResourceRequiredMemberAttributesWhenResourceNotExists");
vo = setUpVo();
member = setUpMember();
attributesManager.getResourceRequiredAttributes(sess, new Resource(), member);
// shouldn't find resource
}
use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method setMemberResourceAttributesWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void setMemberResourceAttributesWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "setResourceMemberAttributesWhenResourceNotExists");
vo = setUpVo();
member = setUpMember();
attributes = setUpMemberResourceAttribute();
attributesManager.setAttributes(sess, new Resource(), member, attributes);
// shouldn't find resource
}
use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getResourceRequiredGroupAttributesWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getResourceRequiredGroupAttributesWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getResourceRequiredGroupAttributesWhenResourceNotExists");
vo = setUpVo();
group = setUpGroup();
attributesManager.getResourceRequiredAttributes(sess, new Resource(), group);
// shouldn't find resource
}
use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getResourceRequiredUserAttributesWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getResourceRequiredUserAttributesWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getResourceRequiredUserAttributesWhenResourceNotExists");
vo = setUpVo();
member = setUpMember();
User user = perun.getUsersManager().getUserByMember(sess, member);
attributesManager.getResourceRequiredAttributes(sess, new Resource(), user);
// shouldn't find resource
}
Aggregations