Skip to content

Commit

Permalink
Fix compilation for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dumas committed Aug 19, 2024
1 parent 28e4162 commit a1b8f6f
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,28 +197,6 @@ class ShipIntegrationSpec extends BaseIntegrationSpec {
.accepted
}

def thereShouldBeAViewIgnoringUUID(project: ProjectRef, view: Iri, originalJson: Json): Assertion = {
val encodedIri = UrlUtils.encode(view.toString)

import io.circe.optics.JsonPath.root
val ignoreSourceUUID = root.sources.each.at("_uuid").replace(None)
val ignoreProjectionUUID = root.projections.each.at("_uuid").replace(None)
val ignoreUUID = root.at("_uuid").replace(None)

val filter = ignoreUUID andThen ignoreSourceUUID andThen ignoreProjectionUUID

root.sources.`null`

deltaClient
.get[Json](s"/views/${project.organization}/${project.project}/$encodedIri", writer) { (json, response) =>
{
response.status shouldEqual StatusCodes.OK
filter(json) shouldEqual filter(originalJson)
}
}
.accepted
}

def thereIsABlazegraphView(project: ProjectRef): (Iri, Json) = {
val simpleBgView = json"""{
"@type": "SparqlView",
Expand Down

0 comments on commit a1b8f6f

Please sign in to comment.