From f6b0d2111abe121c29e72f7194bb00a118fdbfec Mon Sep 17 00:00:00 2001 From: Alexandre Chapellon Date: Wed, 2 Oct 2024 13:00:28 +0200 Subject: [PATCH] Revert "remove not yet implemented adw - tbd in OPSEXP-2868" This reverts commit b28d8f3dd5bc4da2e37a3d330afa6f0c0f4bd274. --- .../acs-test-docker-compose-collection.json | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/test/postman/docker-compose/acs-test-docker-compose-collection.json b/test/postman/docker-compose/acs-test-docker-compose-collection.json index 4936e975..8a0f5369 100644 --- a/test/postman/docker-compose/acs-test-docker-compose-collection.json +++ b/test/postman/docker-compose/acs-test-docker-compose-collection.json @@ -547,6 +547,80 @@ }, "response": [] }, + { + "name": "Validate Digital Workspace", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "", + "pm.globals.get(\"url\");", + "", + "// only run this test if it's an Enterprise repo", + "if (pm.environment.get(\"repositoryEdition\") == \"Enterprise\")", + "{", + " pm.test(\"adwIsUpAndRunningTest\", function () {", + " pm.response.to.have.status(200);", + " });", + "", + " pm.test(\"Check that body matches string\", function () {", + " pm.expect(pm.response.text()).to.include(\"Alfresco Digital Workspace\");", + " });", + "}", + "else", + "{", + " pm.test(\"testResponseStatusIs404ForCommunity\", function ()", + " {", + " pm.response.to.have.status(404);", + " });", + "}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "type": "any" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{protocol}}://{{url}}/workspace", + "protocol": "{{protocol}}", + "host": [ + "{{url}}" + ], + "path": [ + "workspace" + ] + }, + "description": "Validate Digital Workspace is deployed correctly" + }, + "response": [] + }, { "name": "google-docs", "event": [