From 7f02810665d5a2a56b32c78b8d8c9805e1eeea60 Mon Sep 17 00:00:00 2001 From: Pat Losoponkul Date: Fri, 20 Oct 2023 22:19:12 +0700 Subject: [PATCH] chore: remove duplicated tests Signed-off-by: Pat Losoponkul --- .../oidc/KeycloakAuthenticatorSpec.scala | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/prism-agent/service/server/src/test/scala/io/iohk/atala/iam/authentication/oidc/KeycloakAuthenticatorSpec.scala b/prism-agent/service/server/src/test/scala/io/iohk/atala/iam/authentication/oidc/KeycloakAuthenticatorSpec.scala index 575402b541..3e824158c7 100644 --- a/prism-agent/service/server/src/test/scala/io/iohk/atala/iam/authentication/oidc/KeycloakAuthenticatorSpec.scala +++ b/prism-agent/service/server/src/test/scala/io/iohk/atala/iam/authentication/oidc/KeycloakAuthenticatorSpec.scala @@ -188,18 +188,10 @@ object KeycloakAuthenticatorSpec authenticator <- ZIO.service[KeycloakAuthenticator] wallet <- ZIO.serviceWithZIO[WalletManagementService](_.createWallet(Wallet("wallet-1"))) exit1 <- authenticator.authenticate("").exit - exit2 <- authenticator.authenticate("what sorcery is this?").exit + exit2 <- authenticator.authenticate("123").exit } yield assert(exit1)(fails(isSubtype[AuthenticationError.InvalidCredentials](anything))) && assert(exit2)(fails(isSubtype[AuthenticationError.InvalidCredentials](anything))) }, - test("reject malformed token") { - for { - client <- ZIO.service[KeycloakClient] - authenticator <- ZIO.service[KeycloakAuthenticator] - wallet <- ZIO.serviceWithZIO[WalletManagementService](_.createWallet(Wallet("wallet-1"))) - exit <- authenticator.authenticate("what sorcery is this?").exit - } yield assert(exit)(fails(isSubtype[AuthenticationError.InvalidCredentials](anything))) - }, test("reject expired token") { for { client <- ZIO.service[KeycloakClient]