mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
feat: add openapi gen to core
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"extends": ["//"],
|
||||
"pipeline": {
|
||||
"deploy": {
|
||||
"dependsOn": ["@openstapps/api-cli#build"],
|
||||
"outputs": [".deploy/api-cli"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user