use of org.hisp.dhis.actions.UserActions in project dhis2-core by dhis2.
the class PotentialDuplicatesApiTest method beforeEachPotentialDuplicateTest.
@BeforeEach
public void beforeEachPotentialDuplicateTest() {
trackerActions = new TrackerActions();
userActions = new UserActions();
loginActions = new LoginActions();
potentialDuplicatesActions = new PotentialDuplicatesActions();
}
use of org.hisp.dhis.actions.UserActions in project dhis2-core by dhis2.
the class EventExportTests method beforeAll.
@BeforeAll
public void beforeAll() {
userActions = new UserActions();
eventActions = new EventActions();
loginActions = new LoginActions();
programActions = new ProgramActions();
loginActions.loginAsSuperUser();
setupUser();
closedProgramId = programActions.createProgramWithAccessLevel("CLOSED", rootOu, captureOu, searchOu, dataReadOu);
closedProgramProgramStageId = programActions.createProgramStage(closedProgramId, "Event export tests" + DataGenerator.randomString());
setupTrackerEvents();
setupEvents();
String relationshipTypeId = new RelationshipTypeActions().createRelationshipType("PROGRAM_STAGE_INSTANCE", withoutRegistrationProgram, "PROGRAM_STAGE_INSTANCE", withRegistrationProgram, true);
relationshipId = createRelationship(events.get(captureOu), trackerEvents.get(captureOu), relationshipTypeId);
}
use of org.hisp.dhis.actions.UserActions in project dhis2-core by dhis2.
the class OrgUnitsTest method setUp.
@BeforeEach
public void setUp() {
loginActions = new LoginActions();
userActions = new UserActions();
orgUnitActions = new OrgUnitActions();
loginActions.loginAsSuperUser();
}
use of org.hisp.dhis.actions.UserActions in project dhis2-core by dhis2.
the class UserPaginationTest method setUp.
@BeforeEach
public void setUp() {
LoginActions loginActions = new LoginActions();
userActions = new UserActions();
paginationActions = new MetadataPaginationActions("/users");
loginActions.loginAsSuperUser();
// Creates Users
for (int i = 0; i < total; i++) {
userActions.addUser(DataGenerator.randomString() + i, DataGenerator.randomString() + i, (DataGenerator.randomString() + i).toLowerCase(), DataGenerator.randomString() + "Abcd1234!" + i);
}
}
use of org.hisp.dhis.actions.UserActions in project dhis2-core by dhis2.
the class LoginTests method preconditions.
@BeforeAll
public void preconditions() {
oauth2Clients = new RestApiActions("/oAuth2Clients");
uaaActions = new UaaActions();
loginActions = new LoginActions();
userActions = new UserActions();
loginActions.loginAsSuperUser();
addOAuthClient();
userActions.addUser(userName, password);
}
Aggregations