From 968ad82ef0ca4c2af326d5e9ecdde015d79144b2 Mon Sep 17 00:00:00 2001 From: Daniel Bell Date: Tue, 21 Nov 2023 20:54:14 +0100 Subject: [PATCH] Fix resource paths --- .../ch/epfl/bluebrain/nexus/delta/config/AppConfigSpec.scala | 2 +- .../plugins/blazegraph/client/BlazegraphClientSpec.scala | 2 +- .../ch/epfl/bluebrain/nexus/tests/admin/ProjectsSpec.scala | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/delta/app/src/test/scala/ch/epfl/bluebrain/nexus/delta/config/AppConfigSpec.scala b/delta/app/src/test/scala/ch/epfl/bluebrain/nexus/delta/config/AppConfigSpec.scala index 721d2742d2..6f0f08bfd7 100644 --- a/delta/app/src/test/scala/ch/epfl/bluebrain/nexus/delta/config/AppConfigSpec.scala +++ b/delta/app/src/test/scala/ch/epfl/bluebrain/nexus/delta/config/AppConfigSpec.scala @@ -23,7 +23,7 @@ class AppConfigSpec extends CatsEffectSpec with BeforeAndAfterAll { "AppConfig" should { - val externalConfigPath = loader.absolutePath("/config/external.conf").accepted + val externalConfigPath = loader.absolutePath("config/external.conf").accepted "load conf" in { val (conf, _) = AppConfig.load().accepted diff --git a/delta/plugins/blazegraph/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/blazegraph/client/BlazegraphClientSpec.scala b/delta/plugins/blazegraph/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/blazegraph/client/BlazegraphClientSpec.scala index 75188addd8..dc90e5cf36 100644 --- a/delta/plugins/blazegraph/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/blazegraph/client/BlazegraphClientSpec.scala +++ b/delta/plugins/blazegraph/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/blazegraph/client/BlazegraphClientSpec.scala @@ -130,7 +130,7 @@ class BlazegraphClientSpec(docker: BlazegraphDocker) } "attempt to create a namespace with wrong payload" in { - val props = propertiesOf("/sparql/wrong.properties") + val props = propertiesOf("sparql/wrong.properties") val err = client.createNamespace("other", props).rejectedWith[WrappedHttpClientError] err.http shouldBe a[HttpServerStatusError] } diff --git a/tests/src/test/scala/ch/epfl/bluebrain/nexus/tests/admin/ProjectsSpec.scala b/tests/src/test/scala/ch/epfl/bluebrain/nexus/tests/admin/ProjectsSpec.scala index 1fdbfe2144..cd349d3dc1 100644 --- a/tests/src/test/scala/ch/epfl/bluebrain/nexus/tests/admin/ProjectsSpec.scala +++ b/tests/src/test/scala/ch/epfl/bluebrain/nexus/tests/admin/ProjectsSpec.scala @@ -145,7 +145,7 @@ class ProjectsSpec extends BaseIntegrationSpec with OpticsValidators { val vocabRev2 = s"${config.deltaUri.toString()}/${genString()}/" val updateRev2Json = adminDsl .projectPayload( - "/admin/projects/update.json", + "admin/projects/update.json", "nxv", "person", description = descRev2, @@ -159,7 +159,7 @@ class ProjectsSpec extends BaseIntegrationSpec with OpticsValidators { val vocabRev3 = s"${config.deltaUri.toString()}/${genString()}/" val updateRev3Json = adminDsl .projectPayload( - "/admin/projects/update.json", + "admin/projects/update.json", "nxv", "person", description = descRev3,