Skip to content

Commit

Permalink
refactoring - rename AccessControlProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
kr7ysztof committed Oct 31, 2023
1 parent 80dd388 commit a412591
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class RokkuS3ProxyItTest extends AsyncWordSpec with Diagrams
def withSdkToMockProxy(testCode: (AWSSecurityTokenService, Authority) => Future[Assertion]): Future[Assertion] = {
val proxy: RokkuS3Proxy = new RokkuS3Proxy with RequestHandlerS3
with FilterRecursiveListBucketHandler with AuthenticationProviderSTS
with AccessControlProviderClassForName with SignatureProviderAws
with AccessControlProvider with SignatureProviderAws
with MessageProviderKafka with AuditLogProvider with MemoryUserRequestQueue with RequestParser {
override implicit lazy val system: ActorSystem = testSystem
override def materializer: Materializer = Materializer(system)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class AccessControlProviderRangerItTest extends AsyncWordSpec with Diagrams {
*/
def withAuthorizationProviderRanger(rangerTestSettings: AccessControlProviderSettings =
AccessControlProviderSettings(testSystem))
(testCode: AccessControlProviderClassForName => Future[Assertion]): Future[Assertion] = {
testCode(new AccessControlProviderClassForName {
(testCode: AccessControlProvider => Future[Assertion]): Future[Assertion] = {
testCode(new AccessControlProvider {
override def accessControlProviderSettings: AccessControlProviderSettings = rangerTestSettings
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/ing/wbaa/rokku/proxy/Server.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.ing.wbaa.rokku.proxy.queue.MemoryUserRequestQueue

object Server extends App {

new RokkuS3Proxy with AccessControlProviderClassForName with RequestHandlerS3WithNamespaces with AuthenticationCachedProviderSTS with SignatureProviderAws with KerberosLoginProvider with FilterRecursiveListBucketHandler with MessageProviderKafka with AuditLogProvider with MemoryUserRequestQueue with RequestParser {
new RokkuS3Proxy with AccessControlProvider with RequestHandlerS3WithNamespaces with AuthenticationCachedProviderSTS with SignatureProviderAws with KerberosLoginProvider with FilterRecursiveListBucketHandler with MessageProviderKafka with AuditLogProvider with MemoryUserRequestQueue with RequestParser {

override implicit lazy val system: ActorSystem = ActorSystem.create("rokku")
override implicit def materializer: Materializer = Materializer(system)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.ing.wbaa.rokku.proxy.security.{ AccessControl, AccessControlRequest }

import scala.jdk.CollectionConverters._

trait AccessControlProviderClassForName extends AccessControl {
trait AccessControlProvider extends AccessControl {

private val logger = new LoggerHandlerWithId

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.ing.wbaa.rokku.proxy.provider.AccessControlProviderRanger.RangerExcep
import org.scalatest.diagrams.Diagrams
import org.scalatest.wordspec.AnyWordSpec

class RangerAccessControlProviderSpec extends AnyWordSpec with Diagrams with AccessControlProviderClassForName {
class RangerAccessControlProviderSpec extends AnyWordSpec with Diagrams with AccessControlProvider {

private[this] final implicit val testSystem: ActorSystem = ActorSystem.create("test-system")

Expand Down

0 comments on commit a412591

Please sign in to comment.