Permalink
Browse files

sample test update

  • Loading branch information...
1 parent d396cff commit 8fb140f12a89667dd38e9c70445de477525323f6 @vkosuri committed Oct 28, 2016
Showing with 18 additions and 6 deletions.
  1. +18 −6 tests/sample.robot
View
@@ -1,9 +1,21 @@
*** Settings ***
-Library NcclientLibrary
+Suite Setup Connect alias=${ALIAS} host=${HOST} port=${PORT} username=${USERNAME} password=${PASSWORD} hostkey_verify=False
+Suite Teardown Close Session alias=${ALIAS}
+Library Collections
+Library NcclientLibrary
+Library String
+Library XML
+*** Variables ***
+${USERNAME} root
+${PASSWORD} password
+${HOST} 10.11.5.12
+${PORT} 830
+${ALIAS} ncclient
*** Test Cases ***
-Test-Login
- ${config} = Create Dictionary host=10.11.13.22 port=830 username=root password=password hostkey_verify=False
- Connect &{config}
- Close Session
-
+Sample-Test-Pass
+ [Tags] Sample
+ [Documentation] *Retrieve all or part of a specified configuration datastore.*
+ ... https://tools.ietf.org/html/rfc6241#section-7.1
+ ${xml}= <aaa xmlns="http://tail-f.com/ns/aaa/1.1"> <authentication><users><user><name/></user></users></authentication></aaa>
+ ${res}= Get ${ALIAS} ${xml}

0 comments on commit 8fb140f

Please sign in to comment.