mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +00:00
feat: add openapi gen to core
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user