diff --git a/packages/insomnia-importers/src/__tests__/fixtures/openapi3/path-plugin-input.yaml b/packages/insomnia-importers/src/__tests__/fixtures/openapi3/path-plugin-input.yaml new file mode 100644 index 0000000000..791c0a8dd0 --- /dev/null +++ b/packages/insomnia-importers/src/__tests__/fixtures/openapi3/path-plugin-input.yaml @@ -0,0 +1,18 @@ +openapi: 3.0.1 +info: + description: Description + version: 1.0.0 + title: API +servers: + - url: 'https://api.insomnia.rest' +paths: + /path: + x-kong-plugin-oidc: + name: oidc + enabled: true + config: + key_names: [api_key, apikey] + key_in_body: false + hide_credentials: true + get: + description: 'test' \ No newline at end of file diff --git a/packages/insomnia-importers/src/__tests__/fixtures/openapi3/path-plugin-output.json b/packages/insomnia-importers/src/__tests__/fixtures/openapi3/path-plugin-output.json new file mode 100644 index 0000000000..a7da813767 --- /dev/null +++ b/packages/insomnia-importers/src/__tests__/fixtures/openapi3/path-plugin-output.json @@ -0,0 +1,47 @@ +{ + "__export_date": "2020-04-27T06:07:10.686Z", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "Description", + "name": "API 1.0.0", + "parentId": null + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ scheme }}://{{ host }}{{ base_path }}" + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__" + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "", + "host": "api.insomnia.rest", + "scheme": "https" + }, + "name": "OpenAPI env", + "parentId": "__BASE_ENVIRONMENT_ID__" + }, + { + "_id": "req___WORKSPACE_ID__2cade550", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "/path", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ base_url }}/path" + } + ] +}