Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-api into OP-1311_move_settings_to_db
  • Loading branch information
SilverD3 committed Oct 30, 2024
2 parents 987c8bd + f4fe33b commit e2c6663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# Determine FORK_REPO with fallback logic
if [[ -n "${GITHUB_HEAD_REPOSITORY}" ]]; then
echo "FORK_REPO=${GITHUB_HEAD_REPOSITORY}" >> $GITHUB_ENV
elif curl -s --head https://github.com/${GITHUB_ACTOR}/openhospital-core/tree/${{ env.BRANCH_NAME }} | grep "HTTP/[12].* 2[0-9][0-9]" > /dev/null; then
elif curl -s -o /dev/null -w "%{http_code}" "https://github.com/${GITHUB_ACTOR}/tree/$BRANCH_NAME" | grep -q "200"; then
echo "FORK_REPO=${GITHUB_ACTOR}/openhospital-core" >> $GITHUB_ENV
else
echo "FORK_REPO=informatici/openhospital-core" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/isf/exam/rest/ExamControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void shouldFailToUpdateExamWhenCodeInBodyDoesntMatch() throws Exception {

@Test
@DisplayName("Should fail to update exam when user doesn't have required permissions")
@WithMockUser(username = "admin", authorities = { "examrows.create", "examrows.delete" })
@WithMockUser(username = "admin", authorities = { "exams.create", "examrows.create", "examrows.delete" })
void shouldFailToUpdateExamWhenInsufficientPermissions() throws Exception {
var result = mvc.perform(
put("/exams/hd").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(ExamHelper.generateExamWithRowsDTO())))
Expand Down

0 comments on commit e2c6663

Please sign in to comment.