test(ghidra): restore complete installation fixtures across CI boundaries
Declare application.java.min=21 at the four synthetic installation producers so profile, PSP, lifecycle and MCP workflows exercise their intended paths under fail-closed Java admission. Keep missing-bound refusal coverage intact and format the two Ghidra tests rejected by the CI static lane. Validation: all 82 tests across the 11 failing CI files passed; 66 Ghidra admission, doctor and snapshot tests passed, including missing Java bounds. No production admission policy changed. Full suite and real Ghidra lanes were not run.
This commit is contained in:
parent
91886982fc
commit
18d56f5321
|
|
@ -111,7 +111,9 @@ describe("Ghidra doctor integration", () => {
|
|||
"wrong version",
|
||||
inspection(
|
||||
{ installDir: INSTALL },
|
||||
{ readText: () => "application.version=11.4\napplication.java.min=21\n" },
|
||||
{
|
||||
readText: () => "application.version=11.4\napplication.java.min=21\n",
|
||||
},
|
||||
),
|
||||
"ghidra-version",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ const fixture = (version = "12.1.4") => {
|
|||
{
|
||||
platform: "linux",
|
||||
architecture: "x64",
|
||||
readText: () => `application.version=${version}\napplication.java.min=21\n`,
|
||||
readText: () =>
|
||||
`application.version=${version}\napplication.java.min=21\n`,
|
||||
executable: () => true,
|
||||
probeJava: () => ({
|
||||
version: "21.0.11",
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ const target = {
|
|||
const host: GhidraInstallationHost = {
|
||||
platform: "linux",
|
||||
architecture: "x64",
|
||||
readText: () => "application.version=12.1.3\n",
|
||||
readText: () => "application.version=12.1.3\napplication.java.min=21\n",
|
||||
executable: () => true,
|
||||
probeJava: () => ({
|
||||
version: "21.0.12",
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ export const sessionEvidence = (session: BinarySession, value: unknown) => {
|
|||
const installationHost = (): GhidraInstallationHost => ({
|
||||
platform: "linux",
|
||||
architecture: "x64",
|
||||
readText: () => "application.version=12.1.4\n",
|
||||
readText: () => "application.version=12.1.4\napplication.java.min=21\n",
|
||||
executable: () => true,
|
||||
probeJava: () => ({
|
||||
version: "21.0.11",
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ class FixtureLauncher implements GhidraLauncher {
|
|||
const installationHost: GhidraInstallationHost = {
|
||||
platform: "linux",
|
||||
architecture: "x64",
|
||||
readText: () => "application.version=12.1.4\n",
|
||||
readText: () => "application.version=12.1.4\napplication.java.min=21\n",
|
||||
executable: () => true,
|
||||
probeJava: () => ({
|
||||
version: "21.0.11",
|
||||
|
|
|
|||
|
|
@ -286,7 +286,8 @@ describe.skipIf(process.platform === "win32")(
|
|||
{
|
||||
platform: process.platform,
|
||||
architecture: process.arch,
|
||||
readText: () => "application.version=12.1.4\n",
|
||||
readText: () =>
|
||||
"application.version=12.1.4\napplication.java.min=21\n",
|
||||
executable: () => true,
|
||||
probeJava: () => ({
|
||||
version: "21.0.12",
|
||||
|
|
|
|||
Loading…
Reference in New Issue