From 2b9414ef23162c34393bbef9431b99b958334c81 Mon Sep 17 00:00:00 2001 From: AlexanderWollbrink Date: Fri, 1 Sep 2023 12:04:30 +0200 Subject: [PATCH] cleanup --- .github/workflows/run-api-tests-newman.yml | 2 - .../postman/AASTests.json.postman_collection | 95 ------------------- 2 files changed, 97 deletions(-) diff --git a/.github/workflows/run-api-tests-newman.yml b/.github/workflows/run-api-tests-newman.yml index 63309ba7a..306960994 100644 --- a/.github/workflows/run-api-tests-newman.yml +++ b/.github/workflows/run-api-tests-newman.yml @@ -30,9 +30,7 @@ jobs: run: dotnet publish -c Release -o ./build ./src/AasxServerBlazor - name: Start Test Server And Execute Test Scripts run: | - ls -l cd build - ls -l dotnet AasxServerBlazor.dll --rest --no-security --data-path ../test/rest_api/data --host 0.0.0.0 $OPTIONSAASXSERVER & sleep 10 cd .. diff --git a/test/rest_api/postman/AASTests.json.postman_collection b/test/rest_api/postman/AASTests.json.postman_collection index c217d3010..dac8a387f 100644 --- a/test/rest_api/postman/AASTests.json.postman_collection +++ b/test/rest_api/postman/AASTests.json.postman_collection @@ -1126,101 +1126,6 @@ } }, "response": [] - }, - { - "name": "aas Copy", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Model Type is AssetAdministrationShell\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.modelType).to.eql(\"AssetAdministrationShell\");\r", - " });\r", - "\r", - "pm.test(\"Description is array and length greater than 0\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.description).to.be.an(\"array\");\r", - " pm.expect(response.description.length).to.be.greaterThan(0);\r", - " });\r", - "\r", - "pm.test(\"Description Elements are defined correctly\", () => {\r", - " const response = pm.response.json();\r", - " for (let i = 0; i < response.description.length; i++) {\r", - " pm.expect(response.description[i].language).to.be.not.undefined;\r", - " pm.expect(response.description[i].language).to.be.not.null;\r", - " pm.expect(response.description[i].text).to.be.not.undefined;\r", - " pm.expect(response.description[i].text).to.be.not.null;\r", - " }\r", - "});\r", - "\r", - "pm.test(\"Id is defined and not null\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.id).to.be.not.undefined;\r", - " pm.expect(response.id).to.be.not.null;\r", - "});\r", - "\r", - "pm.test(\"AssetInformation is defined and not null\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.assetInformation).to.be.not.undefined;\r", - " pm.expect(response.assetInformation).to.be.not.null;\r", - "});\r", - "\r", - "pm.test(\"AssetInformation AssetKind is defined and not null\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.assetInformation.assetKind).to.be.not.undefined;\r", - " pm.expect(response.assetInformation.assetKind).to.be.not.null;\r", - "});\r", - "\r", - "pm.test(\"AssetInformation globalAssetId is defined and not null\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.assetInformation.globalAssetId).to.be.not.undefined;\r", - " pm.expect(response.assetInformation.globalAssetId).to.be.not.null;\r", - "});\r", - "\r", - "pm.test(\"AssetInformation assetType is defined and not null\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.assetInformation.assetType).to.be.not.undefined;\r", - " pm.expect(response.assetInformation.assetType).to.be.not.null;\r", - "});\r", - "\r", - "pm.test(\"AssetInformation SpecificAssetIds is defined\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.assetInformation.specificAssetIds).to.be.not.undefined;\r", - "});\r", - "\r", - "pm.test(\"Submodels is defined and not null\", () => {\r", - " const response = pm.response.json();\r", - " pm.expect(response.submodels).to.be.not.undefined;\r", - " pm.expect(response.submodels).to.be.not.null;\r", - "});" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{baseUrl}}/shells/:aasIdentifier", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "shells", - ":aasIdentifier" - ], - "variable": [ - { - "key": "aasIdentifier", - "value": "{{aas_id_b64}}" - } - ] - } - }, - "response": [] } ], "event": [