Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-emilius committed Oct 29, 2024
1 parent 0c97dee commit 0ecfae0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
if: ${{ steps.changed-files-server-folder.outputs.any_changed == 'true' && matrix.path == 'server' }}
working-directory: ./server
run: |
./gradlew test
./gradlew test --info
- name: Log in to the Container registry
if: ${{ (steps.changed-files-client-folder.outputs.any_changed == 'true') || (steps.changed-files-server-folder.outputs.any_changed == 'true') }}
Expand Down
4 changes: 4 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ test {

maxParallelForks = 1
forkEvery = 0

testLogging {
events "PASSED", "FAILED", "SKIPPED"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void getTopic_Success() throws Exception {
}

@Test
void createTopic_AsAdmin_Success() throws Exception {
void createTopic_Success() throws Exception {
UUID advisorId = createTestUser("supervisor", List.of("supervisor", "advisor"));

ReplaceTopicPayload payload = new ReplaceTopicPayload(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static void configureProperties(DynamicPropertyRegistry registry) {
}

@Test
void getUsers_AsAdmin_Success() throws Exception {
void getUsers_Success() throws Exception {
mockMvc.perform(MockMvcRequestBuilders.get("/v2/users")
.header("Authorization", createRandomAdminAuthentication())
.param("groups", "admin"))
Expand Down

0 comments on commit 0ecfae0

Please sign in to comment.