use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getResourceRequiredHostAttributesWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getResourceRequiredHostAttributesWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getResourceRequiredHostAttributesWhenResourceNotExists");
host = setUpHost().get(0);
attributesManager.getResourceRequiredAttributes(sess, new Resource(), host);
// shouldn't find resource
}
use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getRequiredMemberResourceAttributesFromOneServiceWorkWithUserWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getRequiredMemberResourceAttributesFromOneServiceWorkWithUserWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getRequiredMemberResourceAttributesFromOneServiceWorkWithUserWhenResourceNotExists");
service = setUpService();
vo = setUpVo();
member = setUpMember();
attributesManager.getRequiredAttributes(sess, service, new Resource(), member, true);
// shouldn't find resource
}
use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getResourceAttributeWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getResourceAttributeWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getResourceAttributeWhenResourceNotExists");
attributesManager.getAttribute(sess, new Resource(), "urn:perun:resource:attribute-def:core:id");
// shouldn't find resource
}
use of cz.metacentrum.perun.core.api.Resource in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getGroupResourceAttributesWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getGroupResourceAttributesWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getGroupResourceAttributesWhenResourceNotExists");
vo = setUpVo();
group = setUpGroup();
attributesManager.getAttributes(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 getResourceRequiredMemberResourceAttributesWhenResourceNotExists.
@Test(expected = ResourceNotExistsException.class)
public void getResourceRequiredMemberResourceAttributesWhenResourceNotExists() throws Exception {
System.out.println(CLASS_NAME + "getResourceRequiredMemberResourceAttributesWhenResourceNotExists");
vo = setUpVo();
member = setUpMember();
facility = setUpFacility();
resource = setUpResource();
attributesManager.getResourceRequiredAttributes(sess, new Resource(), resource, member);
// shouldn't find resource
}
Aggregations