-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[full-ci][tests-only]Add support to stop and start service in ociswrapper #10776
base: master
Are you sure you want to change the base?
[full-ci][tests-only]Add support to stop and start service in ociswrapper #10776
Conversation
2125c45
to
b3c2e20
Compare
|
cc95565
to
5f509bd
Compare
43f62bd
to
27074ac
Compare
df7c67f
to
296bdb6
Compare
e78d3cc
to
d7778d4
Compare
7a826fa
to
d7c4771
Compare
serviceEnvMap = append(serviceEnvMap, fmt.Sprintf("%s=%v", key, value)) | ||
} | ||
|
||
log.Println(fmt.Sprintf("[ociswrapper] Starting oCIS service %s......", serviceName)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use the local logger: https://github.com/owncloud/ocis/blob/d7c47719c960ba781be0422335e09556ef937521/tests/ociswrapper/log/log.go
d50e565
to
26019b2
Compare
54d170c
to
0251708
Compare
0251708
to
b8dc144
Compare
Quality Gate passedIssues Measures |
|
||
@env-config | ||
Scenario: check services health and readiness while running separately | ||
Given the administrator has started service "audit" separately with the following config: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the administrator has started service "audit" separately with the following config: | |
Given the administrator has started service "audit" separately with the following configs: |
* @return ResponseInterface | ||
* @throws GuzzleException | ||
*/ | ||
public static function startService(string $service, array $envs): ResponseInterface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env can have default value
public static function startService(string $service, array $envs): ResponseInterface { | |
public static function startService(string $service, array $envs = []): ResponseInterface { |
Description
This adds new feature on ocis wrapper to stop/ start sevices.
Related Issue
Motivation and Context
How Has This Been Tested?
curl -XPOST 'http://localhost:5200/services/storage-users' -d'{"OCIS_LOG_LEVEL":"info"}'
curl -XDELETE 'http://localhost:5200/services/storage-users'
Screenshots (if appropriate):
Types of changes
Checklist: