Step 2: Move test folder to root
[integration/test.git] / csit / suites / didm / basic / 010_Didm.robot
diff --git a/csit/suites/didm/basic/010_Didm.robot b/csit/suites/didm/basic/010_Didm.robot
new file mode 100644 (file)
index 0000000..4958405
--- /dev/null
@@ -0,0 +1,51 @@
+*** Settings ***
+Documentation     Basic Tests for Device Identification and Driver Management.
+...
+...               Copyright (c) 2015 Hewlett-Packard Development Company, L.P. and others. All rights reserved.
+...
+...               This program and the accompanying materials are made available under the
+...               terms of the Eclipse Public License v1.0 which accompanies this distribution,
+...               and is available at http://www.eclipse.org/legal/epl-v10.html
+Suite Setup       Setup Didm Environment
+Suite Teardown    Delete All Sessions
+Library           SSHLibrary
+Library           Collections
+Library           OperatingSystem
+Library           RequestsLibrary
+Library           ../../../libraries/Common.py
+Resource           ../../../libraries/KarafKeywords.robot
+Resource           ../../../libraries/Utils.robot
+Variables         ../../../variables/Variables.py
+
+*** Variables ***
+
+${DIDM_ID}       "didm-identification:device-type"
+${DEVICE_TYPE}       "mininet-didm:mininet-device-type"
+
+*** Test Cases ***
+
+Verify Device Identification
+    [Documentation]    Verification of Device type identification feature with device driver installed.
+    [Tags]    DIDM
+    ${resp}    RequestsLibrary.Get    session    ${OPERATIONAL_NODES_API}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    ${DIDM_ID}
+    Should Contain    ${resp.content}    ${DEVICE_TYPE}
+
+*** Keywords ***
+
+Setup Didm Environment
+    [Documentation]    Installing DIDM related features, mininet driver, hp3800 driver
+    ...  creating session to retrieve operational opendaylight inventory nodes
+    Install a Feature  odl-didm-identification-api
+    Install a Feature  odl-didm-identification
+    Install a Feature  odl-didm-drivers-api
+    Install a Feature  odl-didm-mininet
+    Install a Feature  odl-hp3800
+    Start Suite
+    Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
+
+
+
+
+