Add junos_command module unit test (#23819)

* Add junos_command module unit test
This commit is contained in:
Ganesh Nalawade
2017-04-21 18:23:40 +05:30
committed by GitHub
parent 78836ec0b9
commit 1cdfcf0bb9
6 changed files with 297 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<rpc-reply message-id="urn:uuid:aefb88cb-c296-4925-b298-ec69a6d61897">
{
"software-information" : [
{
"host-name" : [
{
"data" : "vsrx01"
}
],
"product-model" : [
{
"data" : "vSRX"
}
],
"product-name" : [
{
"data" : "vsrx"
}
],
"junos-version" : [
{
"data" : "15.1X49-D15.4"
}
],
"package-information" : [
{
"name" : [
{
"data" : "junos"
}
],
"comment" : [
{
"data" : "JUNOS Software Release [15.1X49-D15.4]"
}
]
}
]
}
]
}
</rpc-reply>

View File

@@ -0,0 +1,8 @@
<rpc-reply message-id="urn:uuid:0693e4e3-4208-4912-a51e-2e509be7d2d0">
<output>
Hostname: vsrx01
Model: vSRX
Junos: 15.1X49-D15.4
JUNOS Software Release [15.1X49-D15.4]
</output>
</rpc-reply>

View File

@@ -0,0 +1,12 @@
<rpc-reply message-id="urn:uuid:b7ee75e1-e043-4284-a4d5-8e2e8028dbc7">
<software-information>
<host-name>vsrx01</host-name>
<product-model>vSRX</product-model>
<product-name>vsrx</product-name>
<junos-version>15.1X49-D15.4</junos-version>
<package-information>
<name>junos</name>
<comment>JUNOS Software Release [15.1X49-D15.4]</comment>
</package-information>
</software-information>
</rpc-reply>