Replace magic test port 12110 with 0 (#345)

Also introduce constants for some test package SHAs
to make them easier to update.
This commit is contained in:
translatenix
2024-03-20 10:47:28 -07:00
committed by GitHub
parent 2aa60eaf1f
commit dfe85b786e
123 changed files with 469 additions and 469 deletions

View File

@@ -98,19 +98,19 @@ class MessagePackCodecTest {
"foo" to
Project(
projectFileUri = URI("file:///foo"),
packageUri = URI("package://localhost:12110/foo@1.0.0"),
packageUri = URI("package://localhost:0/foo@1.0.0"),
dependencies =
mapOf(
"bar" to
Project(
projectFileUri = URI("file:///bar"),
packageUri = URI("package://localhost:12110/bar@1.1.0"),
packageUri = URI("package://localhost:0/bar@1.1.0"),
dependencies = emptyMap()
)
)
),
"baz" to
RemoteDependency(URI("package://localhost:12110/baz@1.1.0"), Checksums("abc123"))
RemoteDependency(URI("package://localhost:0/baz@1.1.0"), Checksums("abc123"))
)
)
)

View File

@@ -849,9 +849,9 @@ class ServerTest {
package {
name = "lib"
baseUri = "package://localhost:12110/lib"
baseUri = "package://localhost:0/lib"
version = "5.0.0"
packageZipUrl = "https://localhost:12110/lib.zip"
packageZipUrl = "https://localhost:0/lib.zip"
}
"""
.trimIndent()
@@ -880,23 +880,23 @@ class ServerTest {
{
"schemaVersion": 1,
"resolvedDependencies": {
"package://localhost:12110/birds@0": {
"package://localhost:0/birds@0": {
"type": "remote",
"uri": "projectpackage://localhost:12110/birds@0.5.0",
"uri": "projectpackage://localhost:0/birds@0.5.0",
"checksums": {
"sha256": "${dollar}skipChecksumVerification"
}
},
"package://localhost:12110/fruit@1": {
"package://localhost:0/fruit@1": {
"type": "remote",
"uri": "projectpackage://localhost:12110/fruit@1.0.5",
"uri": "projectpackage://localhost:0/fruit@1.0.5",
"checksums": {
"sha256": "${dollar}skipChecksumVerification"
}
},
"package://localhost:12110/lib@5": {
"package://localhost:0/lib@5": {
"type": "local",
"uri": "projectpackage://localhost:12110/lib@5.0.0",
"uri": "projectpackage://localhost:0/lib@5.0.0",
"path": "../lib"
}
}
@@ -915,11 +915,11 @@ class ServerTest {
dependencies =
mapOf(
"birds" to
RemoteDependency(packageUri = URI("package://localhost:12110/birds@0.5.0"), null),
RemoteDependency(packageUri = URI("package://localhost:0/birds@0.5.0"), null),
"lib" to
Project(
projectFileUri = libDir.toUri().resolve("PklProject"),
packageUri = URI("package://localhost:12110/lib@5.0.0"),
packageUri = URI("package://localhost:0/lib@5.0.0"),
dependencies = emptyMap()
)
)