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:
Hemanth Nakkina 2024-09-04 10:50:06 +05:30
parent 758a6ab129
commit 550e43bb45
No known key found for this signature in database
GPG Key ID: 2E4970F7B143168E
2 changed files with 31 additions and 0 deletions

View 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'

View File

@ -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.