From c92dfef10bee7d1fa5f62f8af34a96460febe295 Mon Sep 17 00:00:00 2001 From: chmaurer Date: Wed, 5 Feb 2025 16:08:39 -0500 Subject: [PATCH 1/2] LMSA-9606 - Adding logback config for tests Minor method name updates that were in the latest embedded services --- pom.xml | 3 ++- .../config/CustomRoleMapper.java | 2 +- src/test/resources/logback-test.xml | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/test/resources/logback-test.xml diff --git a/pom.xml b/pom.xml index 07a21d4..d4fcd52 100644 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ 21 3.7.1 6.2.8.1_1 - 6.1.1 + 6.1.3-SNAPSHOT 6.5.0 2023.0.5 0.52 @@ -295,6 +295,7 @@ **/env.properties **/messages.properties + **/logback-test.xml diff --git a/src/main/java/edu/iu/uits/lms/courseattributeeditor/config/CustomRoleMapper.java b/src/main/java/edu/iu/uits/lms/courseattributeeditor/config/CustomRoleMapper.java index 3f91524..9b99869 100644 --- a/src/main/java/edu/iu/uits/lms/courseattributeeditor/config/CustomRoleMapper.java +++ b/src/main/java/edu/iu/uits/lms/courseattributeeditor/config/CustomRoleMapper.java @@ -75,7 +75,7 @@ public Collection mapAuthorities(Collection roles = new ArrayList<>(); - AuthorizedUser user = authorizedUserService.findByUsernameAndToolPermission(userId, AUTH_USER_TOOL_PERMISSION); + AuthorizedUser user = authorizedUserService.findByActiveUsernameAndToolPermission(userId, AUTH_USER_TOOL_PERMISSION); if (user != null) { rolesString = LTIConstants.CANVAS_INSTRUCTOR_ROLE; diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml new file mode 100644 index 0000000..58590ea --- /dev/null +++ b/src/test/resources/logback-test.xml @@ -0,0 +1,16 @@ + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + + \ No newline at end of file From ab651c166664813d47c6a3df508087ba16f8d799 Mon Sep 17 00:00:00 2001 From: chmaurer Date: Thu, 6 Feb 2025 12:33:28 -0500 Subject: [PATCH 2/2] LMSA-9606 - released embedded services version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d4fcd52..03cd6ac 100644 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ 21 3.7.1 6.2.8.1_1 - 6.1.3-SNAPSHOT + 6.1.3 6.5.0 2023.0.5 0.52