diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-11-03 15:21:34 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-08-22 01:34:05 +0000 |
commit | be37fb7db4651f245994fa73008b4aa92c21c14f (patch) | |
tree | 0e50aa75f8d5e46ce704a44219ae70d6381c968c /tests/vty/vty_test.ok | |
parent | ca6602f476775e1b55c5a1d41bc323c49b9e4290 (diff) |
stats/test: Add tests to check VTY configuration
This commit adds tests to verify the stats related VTY configuration
commands.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/vty/vty_test.ok')
-rw-r--r-- | tests/vty/vty_test.ok | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/vty/vty_test.ok b/tests/vty/vty_test.ok index c6365907..a9e283d9 100644 --- a/tests/vty/vty_test.ok +++ b/tests/vty/vty_test.ok @@ -43,4 +43,71 @@ Going to execute 'end' Returned: 0, Current node: 3 '%s# ' Going to execute 'exit' Returned: 0, Current node: 3 '%s# ' +Going to test VTY configuration of the stats subsystem +Going to execute 'enable' +Returned: 0, Current node: 3 '%s# ' +Going to execute 'configure terminal' +Returned: 0, Current node: 4 '%s(config)# ' +Going to execute 'stats reporter foobar' +Returned: 2, Current node: 4 '%s(config)# ' +Going to execute 'stats interval 42' +Returned: 0, Current node: 4 '%s(config)# ' +Going to execute 'stats reporter log' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'prefix myprefix' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'no prefix' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level peer' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level subscriber' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level global' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level foobar' +Returned: 2, Current node: 8 '%s(config-stats)# ' +Going to execute 'enable' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'disable' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'exit' +Returned: 0, Current node: 4 '%s(config)# ' +Going to execute 'stats reporter statsd' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'prefix myprefix' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'no prefix' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level peer' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level subscriber' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level global' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'level foobar' +Returned: 2, Current node: 8 '%s(config-stats)# ' +Going to execute 'remote-ip 127.0.0.99' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'remote-ip 678.0.0.99' +Returned: 1, Current node: 8 '%s(config-stats)# ' +Going to execute 'remote-port 12321' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'local-ip 127.0.0.98' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'no local-ip' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'mtu 987' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'no mtu' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'enable' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'disable' +Returned: 0, Current node: 8 '%s(config-stats)# ' +Going to execute 'exit' +Returned: 0, Current node: 4 '%s(config)# ' +Going to execute 'no stats reporter log' +Returned: 0, Current node: 4 '%s(config)# ' +Going to execute 'no stats reporter statsd' +Returned: 0, Current node: 4 '%s(config)# ' All tests passed |