use of org.hisp.dhis.actions.metadata.OrgUnitActions in project dhis2-core by dhis2.
the class EventImportIdSchemeTests method beforeAll.
@BeforeAll
public void beforeAll() {
orgUnitActions = new OrgUnitActions();
eventActions = new EventActions();
programActions = new ProgramActions();
attributeActions = new AttributeActions();
new LoginActions().loginAsSuperUser();
setupData();
}
use of org.hisp.dhis.actions.metadata.OrgUnitActions in project dhis2-core by dhis2.
the class OrgUnitProfileTests method beforeAll.
@BeforeAll
public void beforeAll() {
loginActions = new LoginActions();
attributeActions = new AttributeActions();
orgUnitProfileActions = new RestApiActions("/organisationUnitProfile");
loginActions.loginAsSuperUser();
orgUnitId = new OrgUnitActions().createOrgUnit();
}
use of org.hisp.dhis.actions.metadata.OrgUnitActions in project dhis2-core by dhis2.
the class OrgUnitsRemovalTest method beforeAll.
@BeforeEach
public void beforeAll() {
orgUnitActions = new OrgUnitActions();
orgUnitGroupActions = new RestApiActions("/organisationUnitGroups");
orgUnitSetActions = new RestApiActions("/organisationUnitGroupSets");
metadataActions = new MetadataActions();
new LoginActions().loginAsSuperUser();
metadataActions.importAndValidateMetadata(new File("src/test/resources/metadata/orgunits/ou_with_group_and_set.json"));
}
use of org.hisp.dhis.actions.metadata.OrgUnitActions in project dhis2-core by dhis2.
the class EventValidationTests method setupData.
private void setupData() {
eventProgramStageId = programActions.programStageActions.get("", new QueryParamsBuilder().add("filter=program.id:eq:" + eventProgramId)).extractString("programStages.id[0]");
assertNotNull(eventProgramStageId, "Failed to find a program stage");
trackerProgramStageId = programActions.programStageActions.get("", new QueryParamsBuilder().addAll("filter=program.id:eq:" + trackerProgramId, "filter=repeatable:eq:true")).extractString("programStages.id[0]");
ouIdWithoutAccess = new OrgUnitActions().createOrgUnit();
new UserActions().grantCurrentUserAccessToOrgUnit(ouIdWithoutAccess);
enrollment = trackerActions.postAndGetJobReport(new TeiDataBuilder().buildWithEnrollment(OU_ID, trackerProgramId)).validateSuccessfulImport().extractImportedEnrollments().get(0);
}
use of org.hisp.dhis.actions.metadata.OrgUnitActions in project dhis2-core by dhis2.
the class EventIdSchemeTests method beforeAll.
@BeforeAll
public void beforeAll() {
orgUnitActions = new OrgUnitActions();
programActions = new ProgramActions();
attributeActions = new AttributeActions();
loginActions.loginAsSuperUser();
setupData();
}
Aggregations