feat: add openapi gen to core

This commit is contained in:
2023-06-27 11:14:28 +02:00
parent 5b4d2bd16c
commit c4260dc882
11 changed files with 14 additions and 51 deletions

View File

@@ -114,9 +114,9 @@ async function retrieveItems(api: ConnectorClient, suite: junit.TestSuite, error
type: 'value',
},
};
for (const uid of localItemMap.keys()) {
for (const {uid, type} of localItemMap.values()) {
await runTest(
`Should find ${uid}`,
`Should find ${type} (${uid})`,
async () => {
singleItemSearchRequest.filter!.arguments.value = uid;
const searchResponse = await api.search(singleItemSearchRequest);
@@ -139,7 +139,7 @@ async function retrieveItems(api: ConnectorClient, suite: junit.TestSuite, error
async function compareItems(suite: junit.TestSuite, errors: string[]) {
for (const localThing of localItemMap.values()) {
await runTest(
`Should be the same for ${localThing.uid}`,
`Should be the same for ${localThing.type} (${localThing.uid})`,
async () => {
/* istanbul ignore next retrieveItems will throw before*/
if (!remoteItemMap.has(localThing.uid)) {