test: stabilize phase5 acceptance inventory fixture
This commit is contained in:
@@ -1448,10 +1448,11 @@ export class AcceptanceRun {
|
||||
this.context.orderFulfillmentType = fulfillmentType
|
||||
this.context.phase4ProducerMatrixMarker = matrixMarker
|
||||
try {
|
||||
// Every cross-region producer later verifies that a PDA inventory snapshot is invalidated
|
||||
// after a real, public A0 rebind. Keep an isolated overflow occupancy for each variant;
|
||||
// otherwise the OVERSEAS branch has only ordinary locations and cannot perform that check.
|
||||
restoreFixture = await this.preparePhase3LoadingFixture('', true)
|
||||
// Cross-region variants only need a normal completed loading chain. The destructive A0
|
||||
// inventory-snapshot mutation is covered once by an explicitly requested phase3-loading
|
||||
// run; repeating it for every producer is unsafe for a populated shared warehouse and can
|
||||
// become impossible when the bounded isolation guard refuses bulk location mutations.
|
||||
restoreFixture = await this.preparePhase3LoadingFixture('', false)
|
||||
const loading = await import(new URL('./admin-test-env-modules/phase3-loading.mjs', import.meta.url))
|
||||
await this.executeModule(`phase3-loading-phase4-${label}`, () => loading.run(this))
|
||||
const finalize = await import(new URL('./admin-test-env-modules/phase3-loading-finalize.mjs', import.meta.url))
|
||||
|
||||
@@ -90,12 +90,12 @@ test('phase-four producer variants restore the primary orchestration fixture aft
|
||||
]) assert.match(createdKeys, new RegExp(`'${key}'`))
|
||||
})
|
||||
|
||||
test('every cross-region producer keeps an isolated A0 occupancy for PDA snapshot invalidation', async () => {
|
||||
test('cross-region producers do not repeat the destructive A0 snapshot mutation', async () => {
|
||||
const source = await import('node:fs/promises').then((fs) => fs.readFile(
|
||||
new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8'))
|
||||
const variantStart = source.indexOf('async runPhase4ProducerVariant')
|
||||
const fixtureCall = source.slice(variantStart, source.indexOf('const loading =', variantStart))
|
||||
assert.match(fixtureCall, /preparePhase3LoadingFixture\('', true\)/)
|
||||
assert.match(fixtureCall, /preparePhase3LoadingFixture\('', false\)/)
|
||||
})
|
||||
|
||||
test('contract covers dual audience, canonical 403, both event directions and diagnostics', () => {
|
||||
|
||||
Reference in New Issue
Block a user