Search in sources :

Example 11 with PerunClient

use of cz.metacentrum.perun.core.api.PerunClient in project perun by CESNET.

the class AbstractTest method setUpSess.

@Before
public void setUpSess() throws Exception {
    final PerunPrincipal pp = new PerunPrincipal("perunTests", ExtSourcesManager.EXTSOURCE_NAME_INTERNAL, ExtSourcesManager.EXTSOURCE_INTERNAL);
    sess = perun.getPerunSession(pp, new PerunClient());
}
Also used : PerunClient(cz.metacentrum.perun.core.api.PerunClient) PerunPrincipal(cz.metacentrum.perun.core.api.PerunPrincipal)

Aggregations

PerunClient (cz.metacentrum.perun.core.api.PerunClient)11 PerunPrincipal (cz.metacentrum.perun.core.api.PerunPrincipal)11 Before (org.junit.Before)5 Service (cz.metacentrum.perun.core.api.Service)4 InternalErrorException (cz.metacentrum.perun.core.api.exceptions.InternalErrorException)4 ExecService (cz.metacentrum.perun.taskslib.model.ExecService)4 Owner (cz.metacentrum.perun.core.api.Owner)3 PerunSession (cz.metacentrum.perun.core.api.PerunSession)3 JdbcPerunTemplate (org.springframework.jdbc.core.JdbcPerunTemplate)3 Attribute (cz.metacentrum.perun.core.api.Attribute)2 AttributeDefinition (cz.metacentrum.perun.core.api.AttributeDefinition)2 User (cz.metacentrum.perun.core.api.User)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 CabinetException (cz.metacentrum.perun.cabinet.bl.CabinetException)1 Facility (cz.metacentrum.perun.core.api.Facility)1 Group (cz.metacentrum.perun.core.api.Group)1 Host (cz.metacentrum.perun.core.api.Host)1 Member (cz.metacentrum.perun.core.api.Member)1 PerunBean (cz.metacentrum.perun.core.api.PerunBean)1