Add optional args to traffic script arg parser
[csit.git] / tests / suites / honeycomb / sanity.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/honeycomb.robot
16 | Suite Setup | Setup Honeycomb service
17 | Suite Teardown | Stop Honeycomb service
18
19 *** Test Cases ***
20 | Honeycomb reports running configuration
21 | | [Documentation] | *Check the contents of honeycomb configuration*
22 | | ...
23 | | ... | _Test steps:_
24 | | ... | - 1. Send HTTP GET request to obtain configured topology from all honeycomb nodes
25 | | ... | - 2. Retrieve configuration as JSON object
26 | | ... | - 3. Parse JSON for VPP instance ID string
27 | | ... | - 4. regex match ID string against expected pattern (vpp1, vpp2, vpp3,...)
28 | | ...
29 | | ... | _Pass criteria:_
30 | | ... | The test passes if the ID strings of VPP instances on each honeycomb node match the expected pattern
31 | | ...
32 | | ... | _Used global constants and variables:_
33 | | ... | - RESOURCES_TPL_HC - path to honeycomb templates directory
34 | | ... | - nodes - dictionary of all nodes in topology.YAML file
35 | | ...
36 | | [Tags] | honeycomb_sanity
37 | | Honeycomb checks VPP node configuration