Skip to content

Commit

Permalink
Ignore this test for now, since it is broken after keycloak update (c…
Browse files Browse the repository at this point in the history
…onsole login option removed). TODO for later.
  • Loading branch information
abrighton committed Nov 7, 2023
1 parent 1a3a98c commit b679ab1
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package csw.config.cli

import java.io.ByteArrayInputStream
import java.nio.file.Paths

import org.apache.pekko.actor.typed.scaladsl.adapter.*
import org.apache.pekko.remote.testconductor.RoleName
import com.typesafe.config.ConfigFactory
Expand All @@ -20,9 +19,10 @@ import csw.config.server.commons.TestFileUtils
import csw.config.server.{ServerWiring, Settings}
import csw.location.helpers.{LSNodeSpec, NMembersAndSeed}
import csw.location.server.http.MultiNodeHTTPLocationService
import org.scalatest.Ignore
import org.scalatest.funsuite.AnyFunSuiteLike
import org.tmt.embedded_keycloak.KeycloakData.*
import org.tmt.embedded_keycloak.{EmbeddedKeycloak, KeycloakData, Settings => KeycloakSettings}
import org.tmt.embedded_keycloak.{EmbeddedKeycloak, KeycloakData, Settings as KeycloakSettings}

import scala.concurrent.Await
import scala.concurrent.duration.{DurationLong, FiniteDuration}
Expand All @@ -36,13 +36,19 @@ class MultiNodeTestConfig extends NMembersAndSeed(2) {

}

// XXX TODO: after keycloak upgrade, console login option is no longer available

@Ignore
class ConfigCliAuthTestMultiJvmNode1 extends ConfigCliAuthTest(0)

@Ignore
class ConfigCliAuthTestMultiJvmNode2 extends ConfigCliAuthTest(0)

@Ignore
class ConfigCliAuthTestMultiJvmNode3 extends ConfigCliAuthTest(0)

// DEOPSCSW-43: Access Configuration service from any CSW component
@Ignore
class ConfigCliAuthTest(ignore: Int)
extends LSNodeSpec(config = new MultiNodeTestConfig, mode = "http")
with MultiNodeHTTPLocationService
Expand Down Expand Up @@ -129,7 +135,9 @@ class ConfigCliAuthTest(ignore: Int)
val stdIn = System.in
try {
System.setIn(stream)
runner.login(Options(console = true))
// XXX TODO: after keycloak upgrade, console login option is no longer available
// runner.login(Options(console = true))
runner.login(Options())
}
finally {
System.setIn(stdIn)
Expand Down

0 comments on commit b679ab1

Please sign in to comment.