Add Honeycomb interface management tests (ipv4, ipv6, ethernet, routing)
[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 | | ... | _Arguments:_
32 | | ... | - ${duts} - list of nodes to setup Honeycomb on
33 | | ...
34 | | ... | _Used global constants and variables:_
35 | | ... | - RESOURCES_TPL_HC - path to honeycomb templates directory
36 | | ... | - HTTPCodes - HTTP protocol status codes
37 | | ...
38 | | [Arguments] | @{duts}
39 | | Start honeycomb on DUTs | @{duts}
40 | | Wait until keyword succeeds | 4min | 20sec
41 | | ... | Check honeycomb startup state | @{duts}
42
43 | Stop honeycomb service on DUTs
44 | | [Documentation] | *Cleanup environment after honeycomb testing.*
45 | | ...
46 | | ... | _Teardown steps:_
47 | | ... | - 1. Login to each honeycomb node using ssh
48 | | ... | - 2. Stop honeycomb service
49 | | ... | - 3. Monitor service shutdown using HTTP GET request loop
50 | | ... | Expected sequence of HTTP replies:
51 | | ... | 200 -> 404 -> connection refused (pass)
52 | | ...
53 | | ... | _Arguments:_
54 | | ... | - ${duts} - list of nodes to stop Honeycomb on
55 | | ...
56 | | ... | _Used global constants and variables:_
57 | | ... | - RESOURCES_TPL_HC - path to honeycomb templates directory
58 | | ... | - HTTPCodes - HTTP protocol status codes
59 | | ...
60 | | [Arguments] | @{duts}
61 | | Stop honeycomb on DUTs | @{duts}
62 | | Wait until keyword succeeds | 2m | 10s
63 | | ... | Check honeycomb shutdown state | @{duts}