Skip to content

Commit

Permalink
Fix typo in log message (#2941)
Browse files Browse the repository at this point in the history
* Fix typo in log message

* Fix typo in test too
  • Loading branch information
sq-msamuel authored Sep 1, 2023
1 parent 074409c commit b8decd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class AccessInterceptor private constructor(
val allowedCapabilities = actionEntries.flatMap { it.capabilities }.toSet()

if (!allowAnyService && allowedServices.isEmpty() && allowedCapabilities.isEmpty()) {
logger.warn { "${action.name}::${action.function.name}() is has an empty set of allowed services and capabilities. This method of allowing all services and users is deprecated."}
logger.warn { "${action.name}::${action.function.name}() has an empty set of allowed services and capabilities. This method of allowing all services and users is deprecated."}
}

return AccessInterceptor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class AuthenticationTest {

assertThat(logCollector.takeEvents(AccessInterceptor::class).map { it.message }).containsExactlyInAnyOrder(
"Conflicting auth annotations on EmptyAuthenticatedWithCustomAnnototationAccessAction::get(), @Authenticated won't have any effect due to @CustomCapabilityAccess",
"EmptyAuthenticatedAccessAction::get() is has an empty set of allowed services and capabilities. This method of allowing all services and users is deprecated."
"EmptyAuthenticatedAccessAction::get() has an empty set of allowed services and capabilities. This method of allowing all services and users is deprecated."
)
}

Expand Down

0 comments on commit b8decd1

Please sign in to comment.