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

@@ -42,8 +42,8 @@
"@types/cli-progress": "3.11.0",
"@types/express": "4.17.17",
"@types/fs-extra": "9.0.13",
"@types/junit-report-builder": "3.0.0",
"@types/json-schema": "7.0.11",
"@types/junit-report-builder": "3.0.0",
"@types/mocha": "10.0.1",
"@types/node": "18.15.3",
"@types/wait-on": "5.3.1",

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)) {

View File

@@ -1,9 +0,0 @@
{
"extends": ["//"],
"pipeline": {
"deploy": {
"dependsOn": ["@openstapps/api-cli#build"],
"outputs": [".deploy/api-cli"]
}
}
}