summaryrefslogtreecommitdiffstats
path: root/kubernetes/clamp/components/clamp-dash-kibana/Chart.yaml
blob: 5d897d96eb77f350710f312ea0d950b392e1cbf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright © 2017 Amdocs, Bell Canada
# Modifications Copyright © 2018 AT&T
#
# 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.

apiVersion: v1
description: ONAP Clamp Dashboard Kibana
name: clamp-dash-kibana
version: 6.0.0
an>CreateInstanceStep()) @property def description(self) -> str: """Step description.""" return "Configure cds-mockserver." @property def component(self) -> str: """Component name.""" return "Environment" @BaseStep.store_state def execute(self) -> None: """Create mockserver expectations. Use settings values: - CDS_MOCKSERVER_EXPECTATIONS. """ super().execute() time.sleep(60) # Wait for mockserver for expectation in settings.CDS_MOCKSERVER_EXPECTATIONS: try: response = requests.put( "http://portal.api.simpledemo.onap.org:30726/mockserver/expectation", json={ "httpRequest": { "method": expectation["method"], "path": expectation["path"] }, "httpResponse": { "body": expectation["response"] } }, timeout=settings.DEFAULT_REQUEST_TIMEOUT ) response.raise_for_status() except (requests.ConnectionError, requests.HTTPError) as http_error: self._logger.debug(f"Can't register cds-mockserver expectation: {str(http_error)}") raise OnapTestException("CDS mockserver not configured") from http_error