Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dantb committed Oct 11, 2023
1 parent d8beaa0 commit bd726cc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ResolverScopeInitialization(createResolver: CreateResolver, defaults: Defa
case rej =>
val str =
s"Failed to create the default InProject resolver for project '${project.ref}' due to '${rej.getMessage}'."
logger.error(str) >> IO.raiseError(ScopeInitializationFailed(str))
logger.error(str) *> IO.raiseError(ScopeInitializationFailed(str))
}
.span("createDefaultResolver")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ch.epfl.bluebrain.nexus.delta.sdk.resolvers

import cats.effect.{Clock, IO}
import cats.syntax.all._
import ch.epfl.bluebrain.nexus.delta.kernel.effect.migration._
import ch.epfl.bluebrain.nexus.delta.kernel.search.Pagination.FromPagination
import ch.epfl.bluebrain.nexus.delta.rdf.IriOrBNode.Iri
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import cats.implicits.catsSyntaxMonadError
import ch.epfl.bluebrain.nexus.delta.kernel.effect.migration._
import ch.epfl.bluebrain.nexus.delta.rdf.IriOrBNode.Iri
import cats.syntax.all._
import ch.epfl.bluebrain.nexus.delta.kernel.effect.migration._
import ch.epfl.bluebrain.nexus.delta.rdf.Vocabulary.{contexts, schemas}
import ch.epfl.bluebrain.nexus.delta.rdf.graph.Graph
import ch.epfl.bluebrain.nexus.delta.rdf.jsonld.ExpandedJsonLd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ abstract class CatsEffectSuite
with StreamAssertions
with CollectionAssertions
with EitherAssertions {
protected val ioTimeout: FiniteDuration = 45.seconds

implicit val contextShift: ContextShift[IO] = IO.contextShift(ExecutionContext.global)
implicit val timer: Timer[IO] = IO.timer(ExecutionContext.global)

protected val ioTimeout: FiniteDuration = 45.seconds
override def munitValueTransforms: List[ValueTransform] =
super.munitValueTransforms ++ List(munitIOTransform, munitBIOTransform)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package ch.epfl.bluebrain.nexus.tests.kg
import cats.data.NonEmptyMap
import cats.effect.IO
import ch.epfl.bluebrain.nexus.delta.kernel.effect.migration._
import cats.effect.IO
import ch.epfl.bluebrain.nexus.tests.BaseSpec
import ch.epfl.bluebrain.nexus.tests.Identity.compositeviews.Jerry
import ch.epfl.bluebrain.nexus.tests.iam.types.Permission.{Events, Organizations, Views}
Expand All @@ -16,6 +15,8 @@ import org.scalactic.source.Position

final class CompositeViewsLifeCycleSpec extends BaseSpec {

implicit private val classLoader: ClassLoader = getClass.getClassLoader

private val orgId = genId()
private val projId = genId()
private val proj2Id = genId()
Expand All @@ -42,15 +43,14 @@ final class CompositeViewsLifeCycleSpec extends BaseSpec {
"proj" -> proj2Id,
"query" -> query
) ++ includeCrossProjectOpt ++ includeSparqlProjectionOpt
IO(
ioJsonContentOf(
"/kg/views/composite/composite-view-lifecycle.json",
replacements(
Jerry,
values: _*
): _*
)
ioJsonContentOf(
"/kg/views/composite/composite-view-lifecycle.json",
replacements(
Jerry,
values: _*
): _*
)

}

private def fetchSpaces: Task[Spaces] = deltaClient.getJson[Spaces](s"$viewEndpoint/description", Jerry)
Expand All @@ -71,7 +71,7 @@ final class CompositeViewsLifeCycleSpec extends BaseSpec {
"handle correctly the expected spaces" in {
for {
// Creating the view
version1 <- (createView(query, includeCrossProject = true, includeSparqlProjection = true): Task[Json])
version1 <- createView(query, includeCrossProject = true, includeSparqlProjection = true)
_ <- deltaClient.put[Json](s"$viewEndpoint", version1, Jerry) { expectCreated }
spaces1 <- fetchSpaces
_ = includeAllSpaces(spaces1)
Expand Down

0 comments on commit bd726cc

Please sign in to comment.