Skip to content

Commit

Permalink
partial revert of 4e156de
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 2, 2024
1 parent f6b0d21 commit 520fa8a
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
-Dtransform.service.url=http://transform-router:8095
-Dsfs.url=http://shared-file-store:8099/
-DlocalTransform.core-aio.url=http://transform-core-aio:8090/
-Ddsync.service.uris=http://localhost:9090/alfresco
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
healthcheck:
test:
Expand Down Expand Up @@ -61,6 +63,7 @@ services:
mem_limit: 1536m
environment:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
ACTIVEMQ_URL: nio://activemq:61616
FILE_STORE_URL: >-
Expand All @@ -86,6 +89,7 @@ services:
REPO_HOST: "alfresco"
REPO_PORT: "8080"
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-Dalfresco.host=localhost
-Dalfresco.port=8080
Expand Down Expand Up @@ -153,6 +157,23 @@ services:
- alfresco
- share
- control-center
sync-service:
image: quay.io/alfresco/service-sync:4.0.1
mem_limit: 1g
environment:
JAVA_OPTS: >-
-Dsql.db.driver=org.postgresql.Driver
-Dsql.db.url=jdbc:postgresql://postgres:5432/alfresco
-Dsql.db.username=alfresco
-Dsql.db.password=alfresco
-Dmessaging.broker.host=activemq
-Drepo.hostname=alfresco
-Drepo.port=8080
-Ddw.server.applicationConnectors[0].type=http
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
ports:
- "9090:9090"
live-indexing:
image: ${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-elasticsearch-live-indexing:${TAG}
environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,57 @@
}
},
"response": []
},
{
"name": "sync-service-healthcheck",
"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(\"syncServiceHealthcheck\", function () {",
" pm.response.to.have.status(200);",
" });",
"}",
"else",
"{",
" pm.test(\"testResponseStatusIs404ForCommunity\", function ()",
" {",
" pm.response.to.have.status(404);",
" });",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"url": {
"raw": "http://localhost:8080/syncservice/healthcheck",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"syncservice",
"healthcheck"
]
}
},
"response": []
}
]
}
Expand Down

0 comments on commit 520fa8a

Please sign in to comment.