test: add v3 latency probe and modernize api coverage
This commit is contained in:
@@ -37,7 +37,7 @@ test.describe('V3 API Header Integrity (modernized)', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('Verify lookup requests include the unauthenticated bypass header', async ({ page }) => {
|
||||
test('Verify lookup requests use account-scoped headers (no bypass)', async ({ page }) => {
|
||||
await page.addInitScript((defaults) => {
|
||||
const testData = { ...defaults, account_id: 'test-account-id', manager_access: true };
|
||||
window.localStorage.setItem('ae_loc', JSON.stringify(testData));
|
||||
@@ -50,7 +50,10 @@ test.describe('V3 API Header Integrity (modernized)', () => {
|
||||
const request = await requestPromise;
|
||||
const headers = request.headers();
|
||||
|
||||
expect(headers['x-no-account-id']).toBe('Nothing to See Here');
|
||||
// Current lookup policy is account-scoped for these routes.
|
||||
// The bypass header should not be sent here.
|
||||
expect(headers['x-no-account-id']).toBeUndefined();
|
||||
expect(headers['x-account-id']).toBe('test-account-id');
|
||||
expect(headers['x-aether-api-key']).toBeDefined();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user