Contract at server dev 98f053a: the spec's progress cases pinned from the server
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
The server vendored harness spec 3.4.0 (98f053a, no /api/v2 change), so ProgressTest reads conformance/progress.json from the pin (contract/harness_progress.json) and the copy taken from the CLI is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
3 files changed
+7
-8
No files matched your search
@@ -20,7 +20,8 @@ import java.util.Locale
|
||||
|
||||
/**
|
||||
* The progress line (harness spec 3.4.0, `progress.md`): the spec's own conformance cases
|
||||
* (`conformance/progress.json`, the file every client and the server test against), drawn with
|
||||
* (`conformance/progress.json`, the file every client and the server test against, pinned as
|
||||
* `contract/harness_progress.json` from the server's copy of the spec), drawn with
|
||||
* the app's English strings as `res/values/strings.xml` has them -- so a string that drifted
|
||||
* from `loop.json`'s `progress.texts` fails here too.
|
||||
*/
|
||||
@@ -35,10 +36,8 @@ class ProgressTest {
|
||||
}
|
||||
|
||||
private val cases: List<JsonObject> by lazy {
|
||||
// The server's pinned copy (`contract/harness_progress.json`) once it vendors spec 3.4.0;
|
||||
// until then the spec's own file, copied from LLeMbas CLI 3.4.0 into the test resources.
|
||||
val loader = javaClass.classLoader!!
|
||||
val text = requireNotNull(loader.getResource("harness_progress.json") ?: loader.getResource("progress_conformance.json")).readText()
|
||||
// The server's vendored copy of the spec's file, pinned with the contract.
|
||||
val text = requireNotNull(javaClass.classLoader!!.getResource("harness_progress.json")) { "contract/harness_progress.json is missing" }.readText()
|
||||
LembasJson.parseToJsonElement(text).jsonObject.getValue("cases").jsonArray.map { it.jsonObject }
|
||||
}
|
||||
|
||||
|
||||
File renamed without changes.
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"ref": "4b28b36fcfe4a2532df2a9ebfa633d6d985063ba",
|
||||
"commit": "4b28b36fcfe4a2532df2a9ebfa633d6d985063ba",
|
||||
"sha256": "91bef025589f7680d7cffcbed8822130cce5635d1bfa25658ccc220ebb7764b4"
|
||||
"ref": "98f053ad5816b4f0a65eef47b623e0117bab53bd",
|
||||
"commit": "98f053ad5816b4f0a65eef47b623e0117bab53bd",
|
||||
"sha256": "618e6e8b6f6a0f5c2233b65cfe795227ddb1a05a25d700ed7995091ee6ddf561"
|
||||
}
|
||||
Reference in new issue
Block a user