fixed tests
This commit is contained in:
parent
25485b1fd4
commit
000e8c3c7d
2 changed files with 2751 additions and 2745 deletions
src/test/java/ch/ethz/seb/sebserver
|
@ -217,6 +217,7 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
|||
.withFormParam(Domain.USER.ATTR_INSTITUTION_ID, instId)
|
||||
.withFormParam(Domain.USER.ATTR_NAME, "TestInstAdmin")
|
||||
.withFormParam(Domain.USER.ATTR_USERNAME, "TestInstAdmin")
|
||||
.withFormParam(Domain.USER.ATTR_SURNAME, "TestInstAdmin")
|
||||
.withFormParam(Domain.USER.ATTR_EMAIL, "test@test.ch")
|
||||
.withFormParam(Domain.USER_ROLE.REFERENCE_NAME, UserRole.INSTITUTIONAL_ADMIN.name())
|
||||
.withFormParam(PasswordChange.ATTR_NAME_NEW_PASSWORD, "12345678")
|
||||
|
@ -396,6 +397,7 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
|||
.withFormParam(Domain.USER.ATTR_INSTITUTION_ID, instId)
|
||||
.withFormParam(Domain.USER.ATTR_NAME, "examAdmin2")
|
||||
.withFormParam(Domain.USER.ATTR_USERNAME, "examAdmin2")
|
||||
.withFormParam(Domain.USER.ATTR_SURNAME, "examAdmin2")
|
||||
.withFormParam(Domain.USER.ATTR_EMAIL, "test@test.ch")
|
||||
.withFormParam(Domain.USER_ROLE.REFERENCE_NAME, UserRole.EXAM_ADMIN.name())
|
||||
.withFormParam(PasswordChange.ATTR_NAME_NEW_PASSWORD, "examAdmin2")
|
||||
|
@ -417,6 +419,7 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
|||
.withFormParam(Domain.USER.ATTR_INSTITUTION_ID, instId)
|
||||
.withFormParam(Domain.USER.ATTR_NAME, "examSupport2")
|
||||
.withFormParam(Domain.USER.ATTR_USERNAME, "examSupport2")
|
||||
.withFormParam(Domain.USER.ATTR_SURNAME, "examSupport2")
|
||||
.withFormParam(Domain.USER.ATTR_EMAIL, "test@test.ch")
|
||||
.withFormParam(Domain.USER_ROLE.REFERENCE_NAME, UserRole.EXAM_SUPPORTER.name())
|
||||
.withFormParam(PasswordChange.ATTR_NAME_NEW_PASSWORD, "examSupport2")
|
||||
|
@ -438,6 +441,7 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
|||
.withFormParam(Domain.USER.ATTR_INSTITUTION_ID, instId)
|
||||
.withFormParam(Domain.USER.ATTR_NAME, "examSupport1")
|
||||
.withFormParam(Domain.USER.ATTR_USERNAME, "examSupport1")
|
||||
.withFormParam(Domain.USER.ATTR_SURNAME, "examSupport1")
|
||||
.withFormParam(Domain.USER.ATTR_EMAIL, "test@test.ch")
|
||||
.withFormParam(Domain.USER_ROLE.REFERENCE_NAME, UserRole.EXAM_SUPPORTER.name())
|
||||
.withFormParam(PasswordChange.ATTR_NAME_NEW_PASSWORD, "examSupport1")
|
||||
|
|
|
@ -455,6 +455,7 @@ public class UserAPITest extends AdministrationAPIIntegrationTester {
|
|||
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
|
||||
.param(Domain.USER.ATTR_NAME, "NewTestUser")
|
||||
.param(Domain.USER.ATTR_USERNAME, "NewTestUser")
|
||||
.param(Domain.USER.ATTR_SURNAME, "NewTestUser")
|
||||
.param(Domain.USER.ATTR_LANGUAGE, Locale.ENGLISH.toLanguageTag())
|
||||
.param(Domain.USER.ATTR_TIMEZONE, DateTimeZone.UTC.getID())
|
||||
.param(Domain.USER_ROLE.REFERENCE_NAME, UserRole.EXAM_ADMIN.name())
|
||||
|
@ -661,6 +662,7 @@ public class UserAPITest extends AdministrationAPIIntegrationTester {
|
|||
.param(Domain.USER.ATTR_INSTITUTION_ID, String.valueOf(institution.id))
|
||||
.param(Domain.USER.ATTR_NAME, "NewTestUser")
|
||||
.param(Domain.USER.ATTR_USERNAME, "NewTestUser")
|
||||
.param(Domain.USER.ATTR_SURNAME, "NewTestUser")
|
||||
.param(Domain.USER.ATTR_LANGUAGE, Locale.ENGLISH.toLanguageTag())
|
||||
.param(Domain.USER.ATTR_TIMEZONE, DateTimeZone.UTC.getID())
|
||||
.param(Domain.USER_ROLE.REFERENCE_NAME, UserRole.EXAM_ADMIN.name())
|
||||
|
|
Loading…
Add table
Reference in a new issue