@@ -1265,6 +1265,15 @@ async function p3ThroughP6StaticReloadAndCommandSnapshot() {
|
1265 | 1265 | return "static capture, reload success, reload LKG, and command snapshot resolution proved"; |
1266 | 1266 | } |
1267 | 1267 | |
| 1268 | +function assertAllowedFailureCommandSucceeded(result, label, combinedOutput) { |
| 1269 | +if (result.signal) { |
| 1270 | +throw new Error(`${label} terminated by signal ${result.signal}: ${combinedOutput}`); |
| 1271 | +} |
| 1272 | +if (result.code !== 0) { |
| 1273 | +throw new Error(`${label} failed (${String(result.code)}): ${combinedOutput}`); |
| 1274 | +} |
| 1275 | +} |
| 1276 | + |
1268 | 1277 | async function p7AuthProfileSecretRefPersistsAndResolves() { |
1269 | 1278 | await withProofEnv("p7", async (envCtx, _plugin, storePath) => { |
1270 | 1279 | const port = await allocatePort(); |
@@ -1316,6 +1325,11 @@ async function p7AuthProfileSecretRefPersistsAndResolves() {
|
1316 | 1325 | `auth-profile SecretRef did not resolve through plugin integration: ${combined}`, |
1317 | 1326 | ); |
1318 | 1327 | } |
| 1328 | +assertAllowedFailureCommandSucceeded( |
| 1329 | +result, |
| 1330 | +"auth-profile SecretRef model status probe", |
| 1331 | +combined, |
| 1332 | +); |
1319 | 1333 | const callsAfter = readJson(storePath).calls; |
1320 | 1334 | if (callsAfter <= callsBefore) { |
1321 | 1335 | throw new Error("auth-profile proof did not invoke the plugin-managed resolver"); |
@@ -1897,6 +1911,7 @@ async function main() {
|
1897 | 1911 | } |
1898 | 1912 | |
1899 | 1913 | export { |
| 1914 | +assertAllowedFailureCommandSucceeded, |
1900 | 1915 | collectBlockingProofResults, |
1901 | 1916 | cleanupEnv, |
1902 | 1917 | expectGatewayStartupFails, |
|