mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 12:45:38 +00:00
* feat: enhance OpenAPI security scheme handling * refactor: revert test changes and update openapi-to-bruno
26 lines
1012 B
TypeScript
26 lines
1012 B
TypeScript
import { test } from '../../../playwright';
|
|
import * as path from 'path';
|
|
import { closeAllCollections, importCollection } from '../../utils/page';
|
|
|
|
test.describe('OpenAPI Security Schemes Import', () => {
|
|
test.afterEach(async ({ page }) => {
|
|
await closeAllCollections(page);
|
|
});
|
|
|
|
test('Import OpenAPI spec with security schemes', async ({ page, createTmpDir }) => {
|
|
const openApiFile = path.resolve(__dirname, 'fixtures', 'openapi-with-security-schemes.json');
|
|
|
|
await importCollection(page, openApiFile, await createTmpDir('openapi-with-security'), {
|
|
expectedCollectionName: 'API with Security Schemes'
|
|
});
|
|
});
|
|
|
|
test('Import OpenAPI spec without security schemes', async ({ page, createTmpDir }) => {
|
|
const openApiFile = path.resolve(__dirname, 'fixtures', 'openapi-without-security-schemes.json');
|
|
|
|
await importCollection(page, openApiFile, await createTmpDir('openapi-without-security'), {
|
|
expectedCollectionName: 'API without Security Schemes'
|
|
});
|
|
});
|
|
});
|