Skip to content

Commit

Permalink
fix: removed formatting/commented changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karicordes committed Dec 5, 2024
1 parent 8df321a commit 148c9a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 33 deletions.
18 changes: 9 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ plugins {
kotlin("jvm") version "1.9.24"
kotlin("plugin.serialization") version "1.9.24"
jacoco
//id("org.sonarqube") version "4.4.1.3373"
id("org.sonarqube") version "4.4.1.3373"
}

group = "org.openmbee.flexo.mms"
version = "0.2.0-ALPHA"

//sonar {
// properties {
// property("sonar.projectKey", "Open-MBEE_flexo-mms-layer1-service")
// property("sonar.organization", "openmbee")
// property("sonar.host.url", "https://sonarcloud.io")
// property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml")
// }
//}
sonar {
properties {
property("sonar.projectKey", "Open-MBEE_flexo-mms-layer1-service")
property("sonar.organization", "openmbee")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml")
}
}
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
Expand Down
32 changes: 8 additions & 24 deletions src/test/kotlin/org/openmbee/flexo/mms/util/LinkedDataPlatform.kt
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,9 @@ class LinkedDataPlatformDirectContainerTests(

withTest {
httpPatch(resourcePath) {
setTurtleBody(
withAllTestPrefixes(
"""
setTurtleBody(withAllTestPrefixes("""
$PATCH_INSERT_TRIPLES
""".trimIndent()
)
)
""".trimIndent()))
}.apply {
validatePatchResponse(response)
}
Expand All @@ -450,15 +446,11 @@ class LinkedDataPlatformDirectContainerTests(

withTest {
httpPatch(resourcePath) {
setSparqlUpdateBody(
withAllTestPrefixes(
"""
setSparqlUpdateBody(withAllTestPrefixes("""
insert data {
$PATCH_INSERT_TRIPLES
}
""".trimIndent()
)
)
""".trimIndent()))
}.apply {
validatePatchResponse(response)
}
Expand All @@ -470,18 +462,14 @@ class LinkedDataPlatformDirectContainerTests(

withTest {
httpPatch(resourcePath) {
setSparqlUpdateBody(
withAllTestPrefixes(
"""
setSparqlUpdateBody(withAllTestPrefixes("""
insert {
$PATCH_INSERT_TRIPLES
}
where {
<> ?p ?o .
}
""".trimIndent()
)
)
""".trimIndent()))
}.apply {
validatePatchResponse(response)
}
Expand All @@ -493,18 +481,14 @@ class LinkedDataPlatformDirectContainerTests(

withTest {
httpPatch(resourcePath) {
setSparqlUpdateBody(
withAllTestPrefixes(
"""
setSparqlUpdateBody(withAllTestPrefixes("""
insert {
$PATCH_INSERT_TRIPLES
}
where {
<> <urn:mms:never> <urn:mms:never> .
}
""".trimIndent()
)
)
""".trimIndent()))
}.apply {
response shouldHaveStatus HttpStatusCode.PreconditionFailed
}
Expand Down

0 comments on commit 148c9a2

Please sign in to comment.