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

@@ -392,7 +392,7 @@ class EvaluatorsTest : AbstractTest() {
writeFile(
"test.pkl",
"""
import "package://localhost:12110/birds@0.5.0#/Bird.pkl"
import "package://localhost:0/birds@0.5.0#/Bird.pkl"
res = new Bird { name = "Wally"; favoriteFruit { name = "bananas" } }
""".trimIndent()
@@ -414,9 +414,9 @@ class EvaluatorsTest : AbstractTest() {
package {
name = "proj1"
baseUri = "package://localhost:12110/\(name)"
baseUri = "package://localhost:0/\(name)"
version = "1.0.0"
packageZipUrl = "https://localhost:12110/\(name)@\(version).zip"
packageZipUrl = "https://localhost:0/\(name)@\(version).zip"
}
""".trimIndent())
@@ -425,9 +425,9 @@ class EvaluatorsTest : AbstractTest() {
package {
name = "proj2"
baseUri = "package://localhost:12110/\(name)"
baseUri = "package://localhost:0/\(name)"
version = "1.0.0"
packageZipUrl = "https://localhost:12110/\(name)@\(version).zip"
packageZipUrl = "https://localhost:0/\(name)@\(version).zip"
}
""".trimIndent())
@@ -435,9 +435,9 @@ class EvaluatorsTest : AbstractTest() {
{
"schemaVersion": 1,
"resolvedDependencies": {
"package://localhost:12110/proj2@1": {
"package://localhost:0/proj2@1": {
"type": "local",
"uri": "projectpackage://localhost:12110/proj2@1.0.0",
"uri": "projectpackage://localhost:0/proj2@1.0.0",
"path": "../proj2"
}
}

View File

@@ -65,9 +65,9 @@ class ProjectPackageTest : AbstractTest() {
package {
name = "proj1"
baseUri = "package://localhost:12110/proj1"
baseUri = "package://localhost:0/proj1"
version = "1.0.0"
packageZipUrl = "https://localhost:12110/proj1@\(version).zip"
packageZipUrl = "https://localhost:0/proj1@\(version).zip"
apiTests {
"tests.pkl"
}