Skip to content

Commit

Permalink
Fix missing .accepted calls
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyhappydan committed Nov 20, 2023
1 parent 3cc96e4 commit 0fae15f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ResourcesTrialSpec extends BaseIntegrationSpec {
private val schemaPayload = SchemaPayload.loadSimple().accepted

private val resourceId = s"http://delta:8080/v1/resources/$ref/_/my-resource"
private val resourcePayload = SimpleResource.sourcePayload(resourceId, 5)
private val resourcePayload = SimpleResource.sourcePayload(resourceId, 5).accepted

override def beforeAll(): Unit = {
super.beforeAll()
Expand Down Expand Up @@ -98,7 +98,7 @@ class ResourcesTrialSpec extends BaseIntegrationSpec {
}

"fail for a resource when shacl validation fails returning the generated " in {
val resourcePayload = SimpleResource.sourcePayloadWithType("nxv:UnexpectedType", 99)
val resourcePayload = SimpleResource.sourcePayloadWithType("nxv:UnexpectedType", 99).accepted
val payload = json"""{ "schema": $newSchemaPayload ,"resource": $resourcePayload }"""
deltaClient.post[Json](s"/trial/resources/$ref/", payload, Bob) { (json, response) =>
response.status shouldEqual StatusCodes.OK
Expand Down

0 comments on commit 0fae15f

Please sign in to comment.