@@ -43,15 +43,13 @@ Feature: service health check
43
43
@env-config
44
44
Scenario : check extra services health
45
45
Given the following configs have been set:
46
- | config | value |
47
- | OCIS_ADD_RUN_SERVICES | audit ,auth -app ,auth -bearer ,policies ,invitations |
48
- | AUDIT_DEBUG_ADDR | 0 .0 .0 .0 :9229 |
49
- | AUTH_APP_DEBUG_ADDR | 0 .0 .0 .0 :9245 |
50
- | POLICIES_DEBUG_ADDR | 0 .0 .0 .0 :9129 |
51
- | INVITATIONS_DEBUG_ADDR | 0 .0 .0 .0 :9269 |
46
+ | config | value |
47
+ | OCIS_ADD_RUN_SERVICES | auth -app ,policies ,invitations |
48
+ | AUTH_APP_DEBUG_ADDR | 0 .0 .0 .0 :9245 |
49
+ | POLICIES_DEBUG_ADDR | 0 .0 .0 .0 :9129 |
50
+ | INVITATIONS_DEBUG_ADDR | 0 .0 .0 .0 :9269 |
52
51
When a user requests these URLs with "GET" and no authentication
53
52
| endpoint | service |
54
- | http ://%base_url_hostname %:9229 /healthz | audit |
55
53
| http ://%base_url_hostname %:9245 /healthz | auth -app |
56
54
| http ://%base_url_hostname %:9269 /healthz | invitations |
57
55
| http ://%base_url_hostname %:9129 /healthz | policies |
@@ -97,23 +95,20 @@ Feature: service health check
97
95
@env-config
98
96
Scenario : check extra services readiness
99
97
Given the following configs have been set:
100
- | config | value |
101
- | OCIS_ADD_RUN_SERVICES | audit ,auth -app ,auth -bearer ,policies ,invitations |
102
- | AUDIT_DEBUG_ADDR | 0 .0 .0 .0 :9229 |
103
- | AUTH_APP_DEBUG_ADDR | 0 .0 .0 .0 :9245 |
104
- | AUTH_BEARER_DEBUG_ADDR | 0 .0 .0 .0 :9149 |
105
- | POLICIES_DEBUG_ADDR | 0 .0 .0 .0 :9129 |
106
- | INVITATIONS_DEBUG_ADDR | 0 .0 .0 .0 :9269 |
98
+ | config | value |
99
+ | OCIS_ADD_RUN_SERVICES | auth -app ,policies ,invitations |
100
+ | AUTH_APP_DEBUG_ADDR | 0 .0 .0 .0 :9245 |
101
+ | POLICIES_DEBUG_ADDR | 0 .0 .0 .0 :9129 |
102
+ | INVITATIONS_DEBUG_ADDR | 0 .0 .0 .0 :9269 |
107
103
When a user requests these URLs with "GET" and no authentication
108
104
| endpoint | service |
109
- | http ://%base_url_hostname %:9229 /readyz | audit |
110
105
| http ://%base_url_hostname %:9245 /readyz | auth -app |
111
106
| http ://%base_url_hostname %:9269 /readyz | invitations |
112
107
| http ://%base_url_hostname %:9129 /readyz | policies |
113
108
Then the HTTP status code of responses on all endpoints should be "200"
114
109
115
110
@issue-10661
116
- Scenario : check default services readiness
111
+ Scenario : check default services readiness (graph, idp, proxy)
117
112
When a user requests these URLs with "GET" and no authentication
118
113
| endpoint | service |
119
114
| http ://%base_url_hostname %:9124 /readyz | graph |
@@ -122,12 +117,35 @@ Feature: service health check
122
117
Then the HTTP status code of responses on all endpoints should be "200"
123
118
124
119
@env-config @issue-10661
125
- Scenario : check extra services readiness
120
+ Scenario : check auth-bearer service health
121
+ Given the following configs have been set:
122
+ | config | value |
123
+ | OCIS_ADD_RUN_SERVICES | auth -bearer |
124
+ | AUTH_BEARER_DEBUG_ADDR | 0 .0 .0 .0 :9149 |
125
+ When a user requests these URLs with "GET" and no authentication
126
+ | endpoint | service |
127
+ | http ://%base_url_hostname %:9149 /healthz | auth -bearer |
128
+ Then the HTTP status code should be "200"
129
+
130
+ @env-config @issue-10661
131
+ Scenario : check auth-bearer service readiness
126
132
Given the following configs have been set:
127
133
| config | value |
128
134
| OCIS_ADD_RUN_SERVICES | auth -bearer |
129
135
| AUTH_BEARER_DEBUG_ADDR | 0 .0 .0 .0 :9149 |
130
136
When a user requests these URLs with "GET" and no authentication
131
137
| endpoint | service |
132
138
| http ://%base_url_hostname %:9149 /readyz | auth -bearer |
139
+ Then the HTTP status code should be "200"
140
+
141
+ @env-config
142
+ Scenario : check services health and readiness while running separately
143
+ Given the administrator has started service "audit" separately with the following configs:
144
+ | config | value |
145
+ | OCIS_LOG_LEVEL | info |
146
+ | AUDIT_DEBUG_ADDR | 0 .0 .0 .0 :9229 |
147
+ When a user requests these URLs with "GET" and no authentication
148
+ | endpoint | service |
149
+ | http ://%base_url_hostname %:9229 /healthz | audit |
150
+ | http ://%base_url_hostname %:9229 /readyz | audit |
133
151
Then the HTTP status code of responses on all endpoints should be "200"
0 commit comments