update the scenarios for service availability check

This commit is contained in:
Prajwol Amatya
2024-11-28 16:01:30 +05:45
parent 15420a3d7b
commit 34dc52d426
9 changed files with 174 additions and 187 deletions
+4 -3
View File
@@ -88,13 +88,13 @@ config = {
"apiDepthInfinity", "apiDepthInfinity",
"apiLocks", "apiLocks",
"apiActivities", "apiActivities",
"apiServiceAvailability",
], ],
"skip": False, "skip": False,
}, },
"graph": { "graph": {
"suites": [ "suites": [
"apiGraph", "apiGraph",
"apiServiceAvailability",
], ],
"skip": False, "skip": False,
"withRemotePhp": [True], "withRemotePhp": [True],
@@ -240,7 +240,6 @@ config = {
"collaborationServiceNeeded": True, "collaborationServiceNeeded": True,
"extraServerEnvironment": { "extraServerEnvironment": {
"GATEWAY_GRPC_ADDR": "0.0.0.0:9142", "GATEWAY_GRPC_ADDR": "0.0.0.0:9142",
"COLLABORATION_DEBUG_ADDR": "0.0.0.0:9304",
}, },
}, },
"cliCommands": { "cliCommands": {
@@ -1033,6 +1032,7 @@ def localApiTests(ctx, name, suites, storage = "ocis", extra_environment = {}, w
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0, "UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
"OCIS_WRAPPER_URL": "http://%s:5200" % OCIS_SERVER_NAME, "OCIS_WRAPPER_URL": "http://%s:5200" % OCIS_SERVER_NAME,
"WITH_REMOTE_PHP": with_remote_php, "WITH_REMOTE_PHP": with_remote_php,
"COLLABORATION_SERVICE_URL": "http://wopi-fakeoffice:9300",
} }
for item in extra_environment: for item in extra_environment:
@@ -2341,6 +2341,7 @@ def ocisServer(storage = "ocis", accounts_hash_difficulty = 4, volumes = [], dep
"GROUPS_DEBUG_ADDR": "0.0.0.0:9161", "GROUPS_DEBUG_ADDR": "0.0.0.0:9161",
"IDM_DEBUG_ADDR": "0.0.0.0:9239", "IDM_DEBUG_ADDR": "0.0.0.0:9239",
"IDP_DEBUG_ADDR": "0.0.0.0:9134", "IDP_DEBUG_ADDR": "0.0.0.0:9134",
"INVITATIONS_DEBUG_ADDR": "0.0.0.0:9269",
"NATS_DEBUG_ADDR": "0.0.0.0:9234", "NATS_DEBUG_ADDR": "0.0.0.0:9234",
"OCDAV_DEBUG_ADDR": "0.0.0.0:9163", "OCDAV_DEBUG_ADDR": "0.0.0.0:9163",
"OCM_DEBUG_ADDR": "0.0.0.0:9281", "OCM_DEBUG_ADDR": "0.0.0.0:9281",
@@ -2360,6 +2361,7 @@ def ocisServer(storage = "ocis", accounts_hash_difficulty = 4, volumes = [], dep
"USERS_DEBUG_ADDR": "0.0.0.0:9145", "USERS_DEBUG_ADDR": "0.0.0.0:9145",
"WEB_DEBUG_ADDR": "0.0.0.0:9104", "WEB_DEBUG_ADDR": "0.0.0.0:9104",
"WEBDAV_DEBUG_ADDR": "0.0.0.0:9119", "WEBDAV_DEBUG_ADDR": "0.0.0.0:9119",
"WEBFINGER_DEBUG_ADDR": "0.0.0.0:9279",
} }
if deploy_type == "": if deploy_type == "":
@@ -3151,7 +3153,6 @@ def wopiCollaborationService(name):
"COLLABORATION_CS3API_DATAGATEWAY_INSECURE": "true", "COLLABORATION_CS3API_DATAGATEWAY_INSECURE": "true",
"OCIS_JWT_SECRET": "some-ocis-jwt-secret", "OCIS_JWT_SECRET": "some-ocis-jwt-secret",
"COLLABORATION_WOPI_SECRET": "some-wopi-secret", "COLLABORATION_WOPI_SECRET": "some-wopi-secret",
"OCIS_ADD_RUN_SERVICES": "collaboration",
} }
if name == "collabora": if name == "collabora":
@@ -74,6 +74,16 @@ class OcisHelper {
return 'https://localhost:10200'; return 'https://localhost:10200';
} }
/**
* @return string
*/
public static function getCollaborationServiceUrl(): string {
if (\getenv("COLLABORATION_SERVICE_URL")) {
return \getenv("COLLABORATION_SERVICE_URL");
}
return "http://localhost:9300";
}
/** /**
* @return bool * @return bool
*/ */
+7 -2
View File
@@ -205,9 +205,14 @@ class AuthContext implements Context {
* @throws Exception * @throws Exception
*/ */
public function userRequestsEndpointsWithNoAuthentication(string $method, TableNode $table):void { public function userRequestsEndpointsWithNoAuthentication(string $method, TableNode $table):void {
$this->featureContext->verifyTableNodeColumns($table, ['endpoint']); $this->featureContext->verifyTableNodeColumns($table, ['endpoint'], ['service']);
foreach ($table->getHash() as $row) { foreach ($table->getHash() as $row) {
$this->featureContext->setResponse($this->sendRequest($row['endpoint'], $method)); $this->featureContext->setResponse(
$this->sendRequest(
$this->featureContext->substituteInLineCodes($row['endpoint']),
$method
)
);
$this->featureContext->pushToLastStatusCodesArrays(); $this->featureContext->pushToLastStatusCodesArrays();
} }
} }
+24 -35
View File
@@ -735,15 +735,9 @@ class FeatureContext extends BehatVariablesContext {
* *
* @return string * @return string
*/ */
public function removePortFromUrl(string $url): string { public function removeSchemeAndPortFromUrl(string $url): string {
return \str_replace(':9200', '', $url); $parsedUrl = parse_url($url);
} return $parsedUrl["host"];
/**
* @return string
*/
public function getOcPath(): string {
return $this->ocPath;
} }
/** /**
@@ -806,8 +800,17 @@ class FeatureContext extends BehatVariablesContext {
* *
* @return string * @return string
*/ */
public function getBaseUrlWithoutSchemeAndPort(): string { public function getBaseUrlHostName(): string {
return $this->removePortFromUrl($this->removeSchemeFromUrl($this->getBaseUrl())); return $this->removeSchemeAndPortFromUrl($this->getBaseUrl());
}
/**
* returns the base URL but without "http(s)://" and port
*
* @return string
*/
public function getCollaborationHostName(): string {
return $this->removeSchemeAndPortFromUrl(OcisHelper::getCollaborationServiceUrl());
} }
/** /**
@@ -2206,10 +2209,18 @@ class FeatureContext extends BehatVariablesContext {
"parameter" => [] "parameter" => []
], ],
[ [
"code" => "%base_url_without_scheme_and_port%", "code" => "%base_url_hostname%",
"function" => [ "function" => [
$this, $this,
"getBaseUrlWithoutSchemeAndPort" "getBaseUrlHostName"
],
"parameter" => []
],
[
"code" => "%collaboration_hostname%",
"function" => [
$this,
"getCollaborationHostName"
], ],
"parameter" => [] "parameter" => []
], ],
@@ -2995,26 +3006,4 @@ class FeatureContext extends BehatVariablesContext {
} }
return false; return false;
} }
/**
* @When a user requests these endpoints:
*
* @param TableNode $table
*
* @return void
* @throws Exception
*/
public function userRequestsEndpoints(TableNode $table): void {
$this->verifyTableNodeColumns($table, ['endpoint'], ['service', 'comment']);
foreach ($table->getHash() as $row) {
$this->setResponse(
HttpRequestHelper::sendRequest(
$this->substituteInLineCodes($row['endpoint']),
$this->getStepLineRef()
)
);
$this->pushToLastStatusCodesArrays();
}
}
} }
+8 -8
View File
@@ -416,6 +416,14 @@ default:
- CollaborationContext: - CollaborationContext:
- TrashbinContext: - TrashbinContext:
apiServiceAvailability:
paths:
- "%paths.base%/../features/apiServiceAvailability"
context: *common_ldap_suite_context
contexts:
- FeatureContext: *common_feature_context_params
- OcisConfigContext:
cliCommands: cliCommands:
paths: paths:
- "%paths.base%/../features/cliCommands" - "%paths.base%/../features/cliCommands"
@@ -751,14 +759,6 @@ default:
- WebDavPropertiesContext: - WebDavPropertiesContext:
- OcisConfigContext: - OcisConfigContext:
apiServiceAvailability:
paths:
- "%paths.base%/../features/apiServiceAvailability"
context: *common_ldap_suite_context
contexts:
- FeatureContext: *common_feature_context_params
- OcisConfigContext:
extensions: extensions:
rdx\behatvars\BehatVariablesExtension: ~ rdx\behatvars\BehatVariablesExtension: ~
@@ -2,14 +2,14 @@ Feature: service health check
Scenario: check service health Scenario: check service health
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | | endpoint | service |
| %base_url_without_scheme_and_port%:9297/healthz | antivirus | | %base_url_hostname%:9297/healthz | antivirus |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
Scenario: check service readiness Scenario: check service readiness
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | | endpoint | service |
| %base_url_without_scheme_and_port%:9297/readyz | antivirus | | %base_url_hostname%:9297/readyz | antivirus |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
@@ -1,19 +1,15 @@
Feature: service health check Feature: service health check
@skip
Scenario: check service health Scenario: check service health
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | comment | | endpoint | service |
| wopi-onlyoffice:9304/healthz | collaboration | wopi-onlyoffice port 9304: Connection refused in CI | | %collaboration_hostname%:9304/healthz | collaboration |
| wopi-collabora:9304/healthz | collaboration | wopi-collabora port 9304: Connection refused in CI |
| wopi-fakeoffice:9304/healthz | collaboration | wopi-fakeoffice port 9304: Connection refused in CI |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
@skip
Scenario: check service readiness Scenario: check service readiness
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | comment | | endpoint | service |
| wopi-onlyoffice:9304/readyz | collaboration | wopi-onlyoffice port 9304: Connection refused in CI | | %collaboration_hostname%:9304/readyz | collaboration |
| wopi-collabora:9304/readyz | collaboration | wopi-collabora port 9304: Connection refused in CI | Then the HTTP status code of responses on all endpoints should be "200"
| wopi-fakeoffice:9304/readyz | collaboration | wopi-fakeoffice port 9304: Connection refused in CI |
Then the HTTP status code of responses on all endpoints should be "200"
@@ -2,14 +2,14 @@ Feature: service health check
Scenario: check service health Scenario: check service health
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | | endpoint | service |
| %base_url_without_scheme_and_port%:9174/healthz | notification | | %base_url_hostname%:9174/healthz | notification |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
Scenario: check service readiness Scenario: check service readiness
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | | endpoint | service |
| %base_url_without_scheme_and_port%:9174/readyz | notification | | %base_url_hostname%:9174/readyz | notification |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
@@ -2,132 +2,118 @@ Feature: service health check
Scenario: check default services health Scenario: check default services health
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | comment | | endpoint | service |
# | %base_url_without_scheme_and_port%:9197/healthz | activitylog | #get 500 | | %base_url_hostname%:9197/healthz | activitylog |
# | %base_url_without_scheme_and_port%:9297/healthz | antivirus | checked in apiAntivirus suite | | %base_url_hostname%:9165/healthz | app-provider |
| %base_url_without_scheme_and_port%:9165/healthz | app-provider | | | %base_url_hostname%:9243/healthz | app-registry |
| %base_url_without_scheme_and_port%:9243/healthz | app-registry | | | %base_url_hostname%:9147/healthz | auth-basic |
# | %base_url_without_scheme_and_port%:9229/healthz | audit | extra | | %base_url_hostname%:9167/healthz | auth-machine |
# | %base_url_without_scheme_and_port%:9245/healthz | auth-app | extra | | %base_url_hostname%:9198/healthz | auth-service |
| %base_url_without_scheme_and_port%:9147/healthz | auth-basic | | | %base_url_hostname%:9260/healthz | clientlog |
# | %base_url_without_scheme_and_port%:9149/healthz | auth-bearer | extra | | %base_url_hostname%:9270/healthz | eventhistory |
| %base_url_without_scheme_and_port%:9167/healthz | auth-machine | | | %base_url_hostname%:9141/healthz | frontend |
| %base_url_without_scheme_and_port%:9198/healthz | auth-service | | | %base_url_hostname%:9143/healthz | gateway |
| %base_url_without_scheme_and_port%:9260/healthz | clientlog | | | %base_url_hostname%:9124/healthz | graph |
# | %base_url_without_scheme_and_port%:9980/healthz | collaboration | checked in apiColaboration suite | | %base_url_hostname%:9161/healthz | groups |
| %base_url_without_scheme_and_port%:9270/healthz | eventhistory | | | %base_url_hostname%:9239/healthz | idm |
# | %base_url_without_scheme_and_port%:9141/healthz | frontend | #get 500 | | %base_url_hostname%:9134/healthz | idp |
| %base_url_without_scheme_and_port%:9143/healthz | gateway | | | %base_url_hostname%:9234/healthz | nats |
# | %base_url_without_scheme_and_port%:9124/healthz | graph | #get 500 | | %base_url_hostname%:9163/healthz | ocdav |
| %base_url_without_scheme_and_port%:9161/healthz | groups | | | %base_url_hostname%:9281/healthz | ocm |
| %base_url_without_scheme_and_port%:9239/healthz | idm | | | %base_url_hostname%:9114/healthz | ocs |
# | %base_url_without_scheme_and_port%:9134/healthz | idp | #get 500 | | %base_url_hostname%:9255/healthz | postprocessing |
# | %base_url_without_scheme_and_port%:/healthz | invitations | #fix me need a proper port| | %base_url_hostname%:9205/healthz | proxy |
| %base_url_without_scheme_and_port%:9234/healthz | nats | | | %base_url_hostname%:9224/healthz | search |
# | %base_url_without_scheme_and_port%:9174/healthz | notifications | checked in apiNotification suite | | %base_url_hostname%:9194/healthz | settings |
| %base_url_without_scheme_and_port%:9163/healthz | ocdav | | | %base_url_hostname%:9151/healthz | sharing |
# | %base_url_without_scheme_and_port%:9281/healthz | ocm | #get 500 should not be used by default | | %base_url_hostname%:9139/healthz | sse |
# | %base_url_without_scheme_and_port%:9114/healthz | ocs | #get 500 | | %base_url_hostname%:9179/healthz | storage-publiclink |
# | %base_url_without_scheme_and_port%:9129/healthz | policies | extra | | %base_url_hostname%:9156/healthz | storage-shares |
| %base_url_without_scheme_and_port%:9255/healthz | postprocessing | | | %base_url_hostname%:9217/healthz | storage-system |
# | %base_url_without_scheme_and_port%:9205/healthz | proxy | #get 500 | | %base_url_hostname%:9159/healthz | storage-users |
| %base_url_without_scheme_and_port%:9224/healthz | search | | | %base_url_hostname%:9189/healthz | thumbnails |
# | %base_url_without_scheme_and_port%:9194/healthz | settings | #get 500 | | %base_url_hostname%:9214/healthz | userlog |
| %base_url_without_scheme_and_port%:9151/healthz | sharing | | | %base_url_hostname%:9145/healthz | users |
# | %base_url_without_scheme_and_port%:9135/healthz | sse | #get 500 | | %base_url_hostname%:9104/healthz | web |
| %base_url_without_scheme_and_port%:9179/healthz | storage-publiclink | | | %base_url_hostname%:9119/healthz | webdav |
| %base_url_without_scheme_and_port%:9156/healthz | storage-shares | | | %base_url_hostname%:9279/healthz | webfinger |
| %base_url_without_scheme_and_port%:9217/healthz | storage-system | |
| %base_url_without_scheme_and_port%:9159/healthz | storage-users | |
# | %base_url_without_scheme_and_port%:/healthz | store | # deleted |
# | %base_url_without_scheme_and_port%:9189/healthz | thumbnails | #get 500 |
# | %base_url_without_scheme_and_port%:9214/healthz | userlog | #get 500 |
| %base_url_without_scheme_and_port%:9145/healthz | users | |
# | %base_url_without_scheme_and_port%:9104/healthz | web | #get 500 |
# | %base_url_without_scheme_and_port%:9119/healthz | webdav | #get 500 |
# | %base_url_without_scheme_and_port%:/healthz | webfinger | #fix me need a proper port |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
@env-config @env-config
Scenario: check extra services health Scenario: check extra services health
Given the following configs have been set: Given the following configs have been set:
| config | value | | config | value |
| OCIS_ADD_RUN_SERVICES | audit,auth-app,auth-bearer,policies | | OCIS_ADD_RUN_SERVICES | audit,auth-app,auth-bearer,policies,invitations |
| AUDIT_DEBUG_ADDR | 0.0.0.0:9229 | | AUDIT_DEBUG_ADDR | 0.0.0.0:9229 |
| AUTH_APP_DEBUG_ADDR | 0.0.0.0:9245 | | AUTH_APP_DEBUG_ADDR | 0.0.0.0:9245 |
| AUTH_BEARER_DEBUG_ADDR | 0.0.0.0:9149 | | AUTH_BEARER_DEBUG_ADDR | 0.0.0.0:9149 |
| POLICIES_DEBUG_ADDR | 0.0.0.0:9129 | | POLICIES_DEBUG_ADDR | 0.0.0.0:9129 |
When a user requests these endpoints: | INVITATIONS_DEBUG_ADDR | 0.0.0.0:9269 |
| endpoint | service | comment | When a user requests these endpoints with "GET" and no authentication
| %base_url_without_scheme_and_port%:9229/healthz | audit | | | endpoint | service |
| %base_url_without_scheme_and_port%:9245/healthz | auth-app | | | %base_url_hostname%:9229/healthz | audit |
# | %base_url_without_scheme_and_port%:9149/healthz | auth-bearer | donot work | | %base_url_hostname%:9245/healthz | auth-app |
| %base_url_without_scheme_and_port%:9129/healthz | policies | | | %base_url_hostname%:9149/healthz | auth-bearer |
| %base_url_hostname%:9269/healthz | invitations |
| %base_url_hostname%:9129/healthz | policies |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
Scenario: check default services readiness Scenario: check default services readiness
When a user requests these endpoints: When a user requests these endpoints with "GET" and no authentication
| endpoint | service | comment | | endpoint | service |
# | %base_url_without_scheme_and_port%:9197/readyz | activitylog | #get 500 | | %base_url_hostname%:9197/readyz | activitylog |
# | %base_url_without_scheme_and_port%:9297/readyz | antivirus | checked in apiAntivirus suite | | %base_url_hostname%:9165/readyz | app-provider |
| %base_url_without_scheme_and_port%:9165/readyz | app-provider | | | %base_url_hostname%:9243/readyz | app-registry |
| %base_url_without_scheme_and_port%:9243/readyz | app-registry | | | %base_url_hostname%:9147/readyz | auth-basic |
# | %base_url_without_scheme_and_port%:9229/readyz | audit | extra | | %base_url_hostname%:9167/readyz | auth-machine |
# | %base_url_without_scheme_and_port%:9245/readyz | auth-app | extra | | %base_url_hostname%:9198/readyz | auth-service |
| %base_url_without_scheme_and_port%:9147/readyz | auth-basic | | | %base_url_hostname%:9260/readyz | clientlog |
# | %base_url_without_scheme_and_port%:9149/readyz | auth-bearer | extra | | %base_url_hostname%:9270/readyz | eventhistory |
| %base_url_without_scheme_and_port%:9167/readyz | auth-machine | | | %base_url_hostname%:9141/readyz | frontend |
| %base_url_without_scheme_and_port%:9198/readyz | auth-service | | | %base_url_hostname%:9143/readyz | gateway |
# | %base_url_without_scheme_and_port%:9260/readyz | clientlog | #get 500 | | %base_url_hostname%:9124/readyz | graph |
# | %base_url_without_scheme_and_port%:9980/readyz | collaboration | checked in apiColaboration suite | | %base_url_hostname%:9161/readyz | groups |
# | %base_url_without_scheme_and_port%:9270/readyz | eventhistory | #get 500 | | %base_url_hostname%:9239/readyz | idm |
# | %base_url_without_scheme_and_port%:9141/readyz | frontend | #get 500 | | %base_url_hostname%:9134/readyz | idp |
| %base_url_without_scheme_and_port%:9143/readyz | gateway | | | %base_url_hostname%:9234/readyz | nats |
# | %base_url_without_scheme_and_port%:9124/readyz | graph | #get 500 | | %base_url_hostname%:9163/readyz | ocdav |
| %base_url_without_scheme_and_port%:9161/readyz | groups | | | %base_url_hostname%:9281/readyz | ocm |
| %base_url_without_scheme_and_port%:9239/readyz | idm | | | %base_url_hostname%:9114/readyz | ocs |
# | %base_url_without_scheme_and_port%:9134/readyz | idp | #get 500 | | %base_url_hostname%:9255/readyz | postprocessing |
# | %base_url_without_scheme_and_port%:/readyz | invitations |#fix me need a proper port| | %base_url_hostname%:9205/readyz | proxy |
| %base_url_without_scheme_and_port%:9234/readyz | nats | | | %base_url_hostname%:9224/readyz | search |
# | %base_url_without_scheme_and_port%:9174/readyz | notifications | checked in apiNotification suite | | %base_url_hostname%:9194/readyz | settings |
| %base_url_without_scheme_and_port%:9163/readyz | ocdav | | | %base_url_hostname%:9151/readyz | sharing |
# | %base_url_without_scheme_and_port%:9281/readyz | ocm | should not be used by default | | %base_url_hostname%:9139/readyz | sse |
# | %base_url_without_scheme_and_port%:9114/readyz | ocs | #get 500 | | %base_url_hostname%:9179/readyz | storage-publiclink |
# | %base_url_without_scheme_and_port%:9129/readyz | policies | extra | | %base_url_hostname%:9156/readyz | storage-shares |
| %base_url_without_scheme_and_port%:9255/readyz | postprocessing | | | %base_url_hostname%:9217/readyz | storage-system |
# | %base_url_without_scheme_and_port%:9205/readyz | proxy | #get 500 | | %base_url_hostname%:9159/readyz | storage-users |
# | %base_url_without_scheme_and_port%:9224/readyz | search | #get 500 | | %base_url_hostname%:9189/readyz | thumbnails |
# | %base_url_without_scheme_and_port%:9194/readyz | settings | #get 500 | | %base_url_hostname%:9214/readyz | userlog |
| %base_url_without_scheme_and_port%:9151/readyz | sharing | | | %base_url_hostname%:9145/readyz | users |
# | %base_url_without_scheme_and_port%:9135/readyz | sse | #get 500 | | %base_url_hostname%:9104/readyz | web |
| %base_url_without_scheme_and_port%:9179/readyz | storage-publiclink | | | %base_url_hostname%:9119/readyz | webdav |
| %base_url_without_scheme_and_port%:9156/readyz | storage-shares | | | %base_url_hostname%:9279/readyz | webfinger |
| %base_url_without_scheme_and_port%:9217/readyz | storage-system | |
| %base_url_without_scheme_and_port%:9159/readyz | storage-users | |
# | %base_url_without_scheme_and_port%:/readyz | store | # deleted |
# | %base_url_without_scheme_and_port%:9189/readyz | thumbnails | #get 500 |
# | %base_url_without_scheme_and_port%:9214/readyz | userlog | #get 500 |
| %base_url_without_scheme_and_port%:9145/readyz | users | |
# | %base_url_without_scheme_and_port%:9104/readyz | web | #get 500 |
# | %base_url_without_scheme_and_port%:9119/readyz | webdav | #get 500 |
# | %base_url_without_scheme_and_port%:/readyz | webfinger | #fix me need a proper port |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"
@env-config @env-config
Scenario: check extra services readiness Scenario: check extra services readiness
Given the following configs have been set: Given the following configs have been set:
| config | value | | config | value |
| OCIS_ADD_RUN_SERVICES | audit,auth-app,auth-bearer,policies | | OCIS_ADD_RUN_SERVICES | audit,auth-app,auth-bearer,policies,invitations |
| AUDIT_DEBUG_ADDR | 0.0.0.0:9229 | | AUDIT_DEBUG_ADDR | 0.0.0.0:9229 |
| AUTH_APP_DEBUG_ADDR | 0.0.0.0:9245 | | AUTH_APP_DEBUG_ADDR | 0.0.0.0:9245 |
| AUTH_BEARER_DEBUG_ADDR | 0.0.0.0:9149 | | AUTH_BEARER_DEBUG_ADDR | 0.0.0.0:9149 |
| POLICIES_DEBUG_ADDR | 0.0.0.0:9129 | | POLICIES_DEBUG_ADDR | 0.0.0.0:9129 |
When a user requests these endpoints: | INVITATIONS_DEBUG_ADDR | 0.0.0.0:9269 |
| endpoint | service | comment | When a user requests these endpoints with "GET" and no authentication
| %base_url_without_scheme_and_port%:9229/readyz | audit | | | endpoint | service |
| %base_url_without_scheme_and_port%:9245/readyz | auth-app | | | %base_url_hostname%:9229/readyz | audit |
# | %base_url_without_scheme_and_port%:9149/readyz | auth-bearer | donot work | | %base_url_hostname%:9245/readyz | auth-app |
| %base_url_without_scheme_and_port%:9129/readyz | policies | | | %base_url_hostname%:9149/readyz | auth-bearer |
| %base_url_hostname%:9269/readyz | invitations |
| %base_url_hostname%:9129/readyz | policies |
Then the HTTP status code of responses on all endpoints should be "200" Then the HTTP status code of responses on all endpoints should be "200"