Step 2: Move test folder to root
[integration/test.git] / csit / suites / didm / basic / 010_Didm.robot
1 *** Settings ***
2 Documentation     Basic Tests for Device Identification and Driver Management.
3 ...
4 ...               Copyright (c) 2015 Hewlett-Packard Development Company, L.P. and others. All rights reserved.
5 ...
6 ...               This program and the accompanying materials are made available under the
7 ...               terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 ...               and is available at http://www.eclipse.org/legal/epl-v10.html
9 Suite Setup       Setup Didm Environment
10 Suite Teardown    Delete All Sessions
11 Library           SSHLibrary
12 Library           Collections
13 Library           OperatingSystem
14 Library           RequestsLibrary
15 Library           ../../../libraries/Common.py
16 Resource           ../../../libraries/KarafKeywords.robot
17 Resource           ../../../libraries/Utils.robot
18 Variables         ../../../variables/Variables.py
19
20 *** Variables ***
21
22 ${DIDM_ID}       "didm-identification:device-type"
23 ${DEVICE_TYPE}       "mininet-didm:mininet-device-type"
24
25 *** Test Cases ***
26
27 Verify Device Identification
28     [Documentation]    Verification of Device type identification feature with device driver installed.
29     [Tags]    DIDM
30     ${resp}    RequestsLibrary.Get    session    ${OPERATIONAL_NODES_API}
31     Should Be Equal As Strings    ${resp.status_code}    200
32     Should Contain    ${resp.content}    ${DIDM_ID}
33     Should Contain    ${resp.content}    ${DEVICE_TYPE}
34
35 *** Keywords ***
36
37 Setup Didm Environment
38     [Documentation]    Installing DIDM related features, mininet driver, hp3800 driver
39     ...  creating session to retrieve operational opendaylight inventory nodes
40     Install a Feature  odl-didm-identification-api
41     Install a Feature  odl-didm-identification
42     Install a Feature  odl-didm-drivers-api
43     Install a Feature  odl-didm-mininet
44     Install a Feature  odl-hp3800
45     Start Suite
46     Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
47
48
49
50
51