Discover Watcher service
Add support to discover Watcher service and set service_available/watcher automatically. Story: 2011096 Task: 50962 Change-Id: I27cea675408331236a668b31ca62dffad0fccc11
This commit is contained in:
parent
758a6ab129
commit
550e43bb45
24
config_tempest/services/watcher.py
Normal file
24
config_tempest/services/watcher.py
Normal file
@ -0,0 +1,24 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from config_tempest.services.base import Service
|
||||
|
||||
|
||||
class WatcherService(Service):
|
||||
|
||||
@staticmethod
|
||||
def get_service_type():
|
||||
return ['infra-optim']
|
||||
|
||||
@staticmethod
|
||||
def get_codename():
|
||||
return 'watcher'
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
discover-tempest-config can now discover Watcher service automatically,
|
||||
and configures service_available/watcher based on that discovery result
|
||||
so that it can enable/disable tests for Watcher based on deployment
|
||||
status.
|
Loading…
Reference in New Issue
Block a user