test: stabilize phase5 acceptance inventory fixture
This commit is contained in:
@@ -1448,10 +1448,11 @@ export class AcceptanceRun {
|
|||||||
this.context.orderFulfillmentType = fulfillmentType
|
this.context.orderFulfillmentType = fulfillmentType
|
||||||
this.context.phase4ProducerMatrixMarker = matrixMarker
|
this.context.phase4ProducerMatrixMarker = matrixMarker
|
||||||
try {
|
try {
|
||||||
// Every cross-region producer later verifies that a PDA inventory snapshot is invalidated
|
// Cross-region variants only need a normal completed loading chain. The destructive A0
|
||||||
// after a real, public A0 rebind. Keep an isolated overflow occupancy for each variant;
|
// inventory-snapshot mutation is covered once by an explicitly requested phase3-loading
|
||||||
// otherwise the OVERSEAS branch has only ordinary locations and cannot perform that check.
|
// run; repeating it for every producer is unsafe for a populated shared warehouse and can
|
||||||
restoreFixture = await this.preparePhase3LoadingFixture('', true)
|
// 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))
|
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))
|
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))
|
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}'`))
|
]) 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(
|
const source = await import('node:fs/promises').then((fs) => fs.readFile(
|
||||||
new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8'))
|
new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8'))
|
||||||
const variantStart = source.indexOf('async runPhase4ProducerVariant')
|
const variantStart = source.indexOf('async runPhase4ProducerVariant')
|
||||||
const fixtureCall = source.slice(variantStart, source.indexOf('const loading =', variantStart))
|
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', () => {
|
test('contract covers dual audience, canonical 403, both event directions and diagnostics', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user