Honeycomb interface state management test
[csit.git] / resources / libraries / robot / honeycomb / honeycomb.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 | Library | resources/libraries/python/HoneycombSetup.py
16 | Library | resources/libraries/python/HoneycombUtil.py
17 | Library | resources/libraries/python/HTTPRequest.py
18
19 *** Keywords ***
20 | Setup Honeycomb service on DUTs
21 | | [Documentation] | *Setup environment for honeycomb testing*
22 | | ...
23 | | ... | _Setup steps:_
24 | | ... | - 1. Login to each honeycomb node using ssh
25 | | ... | - 2. Startup honeycomb service
26 | | ... | - 3. Monitor service startup using HTTP GET request loop
27 | | ... | Expected sequence of HTTP replies:
28 | | ... | connection refused -> 404 -> 401 -> 503 or 500 -> 200 (pass)
29 | | ... | - 4. Configure honeycomb nodes using HTTP PUT request
30 | | ...
31 | | ... | _Used global constants and variables:_
32 | | ... | - RESOURCES_TPL_HC - path to honeycomb templates directory
33 | | ... | - HTTPCodes - HTTP protocol status codes
34 | | ... | - ${nodes} - dictionary of all nodes in topology.YAML file
35 | | ...
36 | | [Arguments] | @{duts}
37 | | Start honeycomb on DUTs | @{duts}
38 | | Wait until keyword succeeds | 4min | 20sec
39 | | ... | Check honeycomb startup state | @{duts}
40
41 | Stop honeycomb service on DUTs
42 | | [Documentation] | *Cleanup environment after honeycomb testing*
43 | | ...
44 | | ... | _Teardown steps:_
45 | | ... | - 1. Login to each honeycomb node using ssh
46 | | ... | - 2. Stop honeycomb service
47 | | ... | - 3. Monitor service shutdown using HTTP GET request loop
48 | | ... | Expected sequence of HTTP replies:
49 | | ... | 200 -> 404 -> connection refused (pass)
50 | | ...
51 | | ... | _Used global constants and variables:_
52 | | ... | - RESOURCES_TPL_HC - path to honeycomb templates directory
53 | | ... | - HTTPCodes - HTTP protocol status codes
54 | | ... | - ${nodes} - dictionary of all nodes in topology.YAML file
55 | | ...
56 | | [Arguments] | @{duts}
57 | | Stop honeycomb on DUTs | @{duts}
58 | | Wait until keyword succeeds | 2m | 10s
59 | | ... | Check honeycomb shutdown state | @{duts}

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.