| 1 |
## Sample Test Output |
| 2 |
|
| 3 |
``` |
| 4 |
echou@a10-ubuntu3:~/fastnetmon/src/a10_plugin/tests$ python helperTests.py |
| 5 |
Testing GET |
| 6 |
{ |
| 7 |
"version": { |
| 8 |
"oper" : { |
| 9 |
"hw-platform":"TH4435 TPS", |
| 10 |
"copyright":"Copyright 2007-2014 by A10 Networks, Inc.", |
| 11 |
"sw-version":"3.2.1 build 175 (May-17-2016,16:57)", |
| 12 |
"plat-features":"", |
| 13 |
"boot-from":"HD_PRIMARY", |
| 14 |
"serial-number":"<skip?", |
| 15 |
"firmware-version":"5.6", |
| 16 |
"hd-pri":"3.2.1.175", |
| 17 |
"hd-sec":"3.2.1-SP2.4", |
| 18 |
"cf-pri":"3.0.0.419", |
| 19 |
"cf-sec":"", |
| 20 |
"last-config-saved-time":"Jul-26-2016, 10:56", |
| 21 |
"virtualization-type":"NA", |
| 22 |
"hw-code":"<skip>", |
| 23 |
"current-time":"Jul-27-2016, 09:46", |
| 24 |
"up-time":"70 days, 22 hours, 44 minutes" |
| 25 |
}, |
| 26 |
"a10-url":"/axapi/v3/version/oper" |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
Testing POST |
| 31 |
{ |
| 32 |
"hostname": { |
| 33 |
"value":"TH4435", |
| 34 |
"uuid":"<skip>", |
| 35 |
"a10-url":"/axapi/v3/hostname" |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
.Testing axapi_auth |
| 40 |
('base url: ', 'https://192.168.199.152', 'Signature: ', u'0855fef4da06d7beb89b27e7d2d042') |
| 41 |
. |
| 42 |
---------------------------------------------------------------------- |
| 43 |
Ran 2 tests in 0.092s |
| 44 |
|
| 45 |
OK |
| 46 |
echou@a10-ubuntu3:~/fastnetmon/src/a10_plugin/tests$ |
| 47 |
``` |