Build+Test(+Push) run 1520 from push (main) #1520
230 passed, 0 failed and 0 skipped
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentControllerTest.xml
46 tests were completed in 3s with 46 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.assignment.AssignmentControllerTest | 46✅ | 3s |
✅ fi.oph.ludos.assignment.AssignmentControllerTest
✅ createMinimalSukoAssignment()
✅ create assignment with invalid publishState()
✅ create and update with insufficient role()
✅ SUKO get all versions and a certain version of assignment
✅ PUHVI get all versions and a certain version of assignment
✅ LD get all versions and a certain version of assignment
✅ SUKO
✅ PUHVI
✅ LD
✅ create assignment with script tag in content()
✅ create assignment with html in name()
✅ create and update suko assignment()
✅ create assignment with both names blank()
✅ invalid koodiarvos yield 400 with expected error messages()
✅ oppimaara than can have tarkenne but tarkenne is invalid()
✅ create ld assignment with too many content fields()
✅ valid oppimaara that can have tarkenne but tarkenne not given()
✅ test valid html()
✅ create assignment with too long name()
✅ SUKO
✅ PUHVI
✅ LD
✅ create assignment with safe html in content()
✅ getAssignmentDraftAsOpettaja()
✅ ldAssignmentTest()
✅ SUKO
✅ PUHVI
✅ LD
✅ sukoAssignmentUpdateFailsWhenIdDoesNotExist()
✅ assignment not found on GET()
✅ puhviAssignmentTest()
✅ assignment not found on UPDATE()
✅ SUKO
✅ PUHVI
✅ LD
✅ SUKO
✅ PUHVI
✅ LD
✅ test deleting a assignment()
✅ oppimaara than cannot have tarkenne but given with tarkenne()
✅ valid oppimaara with tarkenne()
✅ create assignment with invalid exam()
✅ any missing suko field yields 400()
✅ SUKO
✅ PUHVI
✅ LD
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentFavoritesTest.xml
No tests found
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.assignment.AssignmentFavoritesTest | 0ms |
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentFavoritesTest$CreateFolder.xml
6 tests were completed in 209ms with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
create folder | 6✅ | 209ms |
✅ create folder
fi.oph.ludos.assignment.AssignmentFavoritesTest$CreateFolder
✅ non-existent parent()
✅ empty name()
✅ valid request SUKO
✅ valid request PUHVI
✅ valid request LD
✅ name too long()
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentFavoritesTest$DeleteFolder.xml
6 tests were completed in 447ms with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
delete folder | 6✅ | 447ms |
✅ delete folder
fi.oph.ludos.assignment.AssignmentFavoritesTest$DeleteFolder
✅ valid deletion SUKO
✅ valid deletion PUHVI
✅ valid deletion LD
✅ root()
✅ non-existent folderId()
✅ someone else owns()
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentFavoritesTest$GetFavoriteCount.xml
7 tests were completed in 1s with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
get favorite count | 7✅ | 1s |
✅ get favorite count
fi.oph.ludos.assignment.AssignmentFavoritesTest$GetFavoriteCount
✅ two assignments in one folder counts as two favorites()
✅ multiple versions of an assignment count as one favorite()
✅ seed data yields expected favorite count()
✅ no favorites()
✅ adding one assignment to two folders counts as two favorites()
✅ one assignment in one folder counts as one favorite()
✅ two assignments in two different folders counts as two favorites()
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentFavoritesTest$GetFavoriteIds.xml
8 tests were completed in 544ms with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
get favorite ids and cards | 8✅ | 544ms |
✅ get favorite ids and cards
fi.oph.ludos.assignment.AssignmentFavoritesTest$GetFavoriteIds
✅ non-existent assignmentId()
✅ assignment has no favorites()
✅ no own favorites SUKO
✅ no own favorites PUHVI
✅ no own favorites LD
✅ favorites in nested folders SUKO
✅ favorites in nested folders PUHVI
✅ favorites in nested folders LD
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentFavoritesTest$SetAssignmentFavoriteFolders.xml
15 tests were completed in 582ms with 15 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
set assignment favorite folders | 15✅ | 582ms |
✅ set assignment favorite folders
fi.oph.ludos.assignment.AssignmentFavoritesTest$SetAssignmentFavoriteFolders
✅ non-existent assignmentId()
✅ add assignment to two folders SUKO
✅ add assignment to two folders PUHVI
✅ add assignment to two folders LD
✅ two different users do not affect each other SUKO
✅ two different users do not affect each other PUHVI
✅ two different users do not affect each other LD
✅ remove assignment from all folders SUKO
✅ remove assignment from all folders PUHVI
✅ remove assignment from all folders LD
✅ one of the folderIds does not exist()
✅ remove assignment from one folder and add to two SUKO
✅ remove assignment from one folder and add to two PUHVI
✅ remove assignment from one folder and add to two LD
✅ someone else owns()
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.AssignmentFavoritesTest$UpdateFolder.xml
11 tests were completed in 318ms with 11 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
update folder | 11✅ | 318ms |
✅ update folder
fi.oph.ludos.assignment.AssignmentFavoritesTest$UpdateFolder
✅ non-existent parent()
✅ valid move and rename SUKO
✅ valid move and rename PUHVI
✅ valid move and rename LD
✅ empty name()
✅ non-existent id()
✅ set parentId to descendant folder()
✅ set parentId to self()
✅ root()
✅ someone else owns()
✅ name too long()
✅ server/build/test-results/test/TEST-fi.oph.ludos.assignment.GetAssignmentsTest.xml
14 tests were completed in 1s with 14 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.assignment.GetAssignmentsTest | 14✅ | 1s |
✅ fi.oph.ludos.assignment.GetAssignmentsTest
✅ paging with 0 suko assignments()
✅ testSukoFilters()
✅ paging with ASSIGNMENT_PAGE_SIZE x 2 + 1 suko assignments()
✅ sukoFiltersWithNonExistingValues()
✅ testFiltersWithNonAllowedValues()
✅ getAssignmentsAsOpettaja()
✅ testPuhviFilters()
✅ puhviFiltersWithNonExistingValues()
✅ paging with ASSIGNMENT_PAGE_SIZE suko assignments()
✅ paging with ASSIGNMENT_PAGE_SIZE+1 suko assignments()
✅ ldFiltersWithNonExistingValues()
✅ getAssignmentsWithNoRole()
✅ testLdFilters()
✅ getting a non-existing page returns an empty array()
✅ server/build/test-results/test/TEST-fi.oph.ludos.auth.AuthorizationTest.xml
1 tests were completed in 130ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.auth.AuthorizationTest | 1✅ | 130ms |
✅ fi.oph.ludos.auth.AuthorizationTest
✅ all controllers should have @RequireAtLeastYllapitajaRole annotation()
✅ server/build/test-results/test/TEST-fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastLaatijaRoleTest.xml
5 tests were completed in 56ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastLaatijaRoleTest | 5✅ | 56ms |
✅ fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastLaatijaRoleTest
✅ userWithBothOpettajaAndLaatijaRolesCanGet()
✅ unauthorizedUserCannotGet()
✅ laatijaCanGet()
✅ yllapitajaCanGet()
✅ opettajaCannotGet()
✅ server/build/test-results/test/TEST-fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastOpettajaRoleTest.xml
5 tests were completed in 37ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastOpettajaRoleTest | 5✅ | 37ms |
✅ fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastOpettajaRoleTest
✅ userWithBothOpettajaAndLaatijaRolesCanGet()
✅ unauthorizedUserCannotGet()
✅ laatijaCanGet()
✅ yllapitajaCanGet()
✅ opettajaCanGet()
✅ server/build/test-results/test/TEST-fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastYllapitajaRoleByDefaultTest.xml
7 tests were completed in 36ms with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastYllapitajaRoleByDefaultTest | 7✅ | 36ms |
✅ fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastYllapitajaRoleByDefaultTest
✅ userWithBothOpettajaAndLaatijaRolesCannotGet()
✅ assert that yllapitaja by default test endpoint does not have annotation @RequireAtLeastYllapitajaRole()
✅ assert that TestController has annotation @RequireAtLeastYllapitajaRole()
✅ laatijaCannotGet()
✅ unauthorizedUserCannotGet()
✅ yllapitajaCanGet()
✅ opettajaCannotGet()
✅ server/build/test-results/test/TEST-fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastYllapitajaRoleTest.xml
5 tests were completed in 35ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastYllapitajaRoleTest | 5✅ | 35ms |
✅ fi.oph.ludos.auth.AuthorizationTest$RequireAtLeastYllapitajaRoleTest
✅ userWithBothOpettajaAndLaatijaRolesCannotGet()
✅ laatijaCannotGet()
✅ unauthorizedUserCannotGet()
✅ yllapitajaCanGet()
✅ opettajaCannotGet()
✅ server/build/test-results/test/TEST-fi.oph.ludos.aws.CloudS3HelperTest.xml
3 tests were completed in 1s with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.aws.CloudS3HelperTest | 3✅ | 1s |
✅ fi.oph.ludos.aws.CloudS3HelperTest
✅ getting non-existent object returns null()
✅ delete object()
✅ put and get object()
✅ server/build/test-results/test/TEST-fi.oph.ludos.certificate.CertificateControllerTest.xml
32 tests were completed in 2s with 32 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.certificate.CertificateControllerTest | 32✅ | 2s |
✅ fi.oph.ludos.certificate.CertificateControllerTest
✅ postCertificateWithMissingAttachment()
✅ SUKO
✅ PUHVI
✅ LD
✅ test deleting PUHVI certificate()
✅ SUKO
✅ PUHVI
✅ LD
✅ getCertificateByIdWhenExamDoesNotExist()
✅ test deleting SUKO certificate()
✅ SUKO
✅ PUHVI
✅ LD
✅ SUKO
✅ PUHVI
✅ LD
✅ test deleting LD certificate()
✅ putCertificateWithInvalidPublishState()
✅ postCertificateWithInvalidExam()
✅ SUKO
✅ PUHVI
✅ LD
✅ putNonExistentCertificate()
✅ SUKO
✅ PUHVI
✅ LD
✅ SUKO
✅ PUHVI
✅ LD
✅ SUKO
✅ PUHVI
✅ LD
✅ server/build/test-results/test/TEST-fi.oph.ludos.certificate.GetCertificatesTest.xml
9 tests were completed in 134ms with 9 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.certificate.GetCertificatesTest | 9✅ | 134ms |
✅ fi.oph.ludos.certificate.GetCertificatesTest
✅ SUKO
✅ PUHVI
✅ LD
✅ Get all certificates for SUKO
✅ Get all certificates for PUHVI
✅ Get all certificates for LD
✅ SUKO
✅ PUHVI
✅ LD
✅ server/build/test-results/test/TEST-fi.oph.ludos.image.ImageControllerTest.xml
7 tests were completed in 61ms with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.image.ImageControllerTest | 7✅ | 61ms |
✅ fi.oph.ludos.image.ImageControllerTest
✅ Testing upload for file: test-image.gif
✅ Testing upload for file: test-image.jpg
✅ Testing upload for file: test-image.png
✅ Testing upload for file: test-image.svg
✅ Testing upload for file: fixture1.pdf
✅ Testing upload for file: test.txt
✅ get image with non-existing key()
✅ server/build/test-results/test/TEST-fi.oph.ludos.instruction.InstructionControllerTest.xml
43 tests were completed in 1s with 43 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
fi.oph.ludos.instruction.InstructionControllerTest | 43✅ | 1s |
✅ fi.oph.ludos.instruction.InstructionControllerTest
✅ Test image html validator()
✅ createWithInvalidExam()
✅ SUKO
✅ PUHVI
✅ LD
✅ test deleting a instruction()
✅ sukoInstructionTest()
✅ getInstructionsAsYllapitaja()
✅ puhviInstructionTest()
✅ SUKO
✅ PUHVI
✅ LD
✅ getInstructionByNonExistentId()
✅ createWithInvalidPublishState()
✅ updateInstructionWithNonExistentId()
✅ SUKO
✅ PUHVI
✅ LD
✅ getInstructionAttachmentsAsOpettaja()
✅ get suko instruction list as opettaja while filtering()
✅ createInstructionWithBothNamesBlank()
✅ getInstructionsDraftAsOpettaja()
✅ updateInstructionWithNonExistentCurrentAttachment()
✅ SUKO
✅ PUHVI
✅ LD
✅ ldInstructionTest()
✅ get ld instruction list as opettaja while filtering()
✅ SUKO
✅ PUHVI
✅ LD
✅ SUKO
✅ PUHVI
✅ LD
✅ opettajaCannotCallYllapitajaRoutes()
✅ getInstructionsAsOpettaja()
✅ get puhvi instruction list as opettaja while filtering()
✅ Get all instructions for SUKO
✅ Get all instructions for PUHVI
✅ Get all instructions for LD
✅ SUKO get all versions and a certain version of assignment
✅ PUHVI get all versions and a certain version of assignment
✅ LD get all versions and a certain version of assignment