Scenarios
Scenarios describe what you need. They define the tests and the necessary devices for them. Here you can find all scenarios that are implemented in this BalderHub package.
Simple SNMP Group system
- class balderhub.snmpagent.scenarios.base.ScenarioMibSysDescr
Bases:
ScenarioThis scenario is used for testing the system group defined in the RFC1156.
- class SnmpAgent
Bases:
Devicethe remote snmp agent device
- _outer_balder_class
alias of
ScenarioMibSysDescr
- _snmp_sys = <balderhub.snmpagent.lib.features.has_snmp_system_group_feature.HasSnmpSystemGroupFeature object>
autonomous feature of type
HasSnmpSystemGroupFeatureto define that this device is able to handle SNMP messages of group system
- snmp_system_config = <balderhub.snmpagent.lib.features.snmp_system_config.SnmpSystemConfig object>
general configuration from type
SnmpSystemConfig
- class SnmpManager
Bases:
Devicethe snmp manager device
- _outer_balder_class
alias of
ScenarioMibSysDescr
- snmp_send_get = <balderhub.snmpagent.lib.features.send_snmp_get_request_command_feature.SendSnmpGetRequestCommandFeature object>
feature of type
SendSnmpGetRequestCommandFeaturewhich allows sending SNMP GET REQUEST messages
- snmp_send_set = <balderhub.snmpagent.lib.features.send_snmp_set_request_command_feature.SendSnmpSetRequestCommandFeature object>
feature of type
SendSnmpSetRequestCommandFeaturewhich allows sending SNMP SET REQUEST messages
- test_get_sys_descr()
This test tries to request the sysDescr object.
- test_get_sys_descr_ascii_check()
This test tries to request the sysDescr object and validates if .
- test_set_sys_descr()
This test tries to set the sysDescr object, while it secures that it is not possible.
- class balderhub.snmpagent.scenarios.base.ScenarioMibSysObjectId
Bases:
ScenarioThis scenario is used for testing the system group defined in the RFC1156.
- class SnmpAgent
Bases:
Devicethe remote snmp agent device
- _outer_balder_class
alias of
ScenarioMibSysObjectId
- _snmp_sys = <balderhub.snmpagent.lib.features.has_snmp_system_group_feature.HasSnmpSystemGroupFeature object>
autonomous feature of type
HasSnmpSystemGroupFeatureto define that this device is able to handle SNMP messages of group system
- snmp_system_config = <balderhub.snmpagent.lib.features.snmp_system_config.SnmpSystemConfig object>
general configuration from type
SnmpSystemConfig
- class SnmpManager
Bases:
Devicethe snmp manager device
- _outer_balder_class
alias of
ScenarioMibSysObjectId
- snmp_send_get = <balderhub.snmpagent.lib.features.send_snmp_get_request_command_feature.SendSnmpGetRequestCommandFeature object>
feature of type
SendSnmpGetRequestCommandFeaturewhich allows sending SNMP GET REQUEST messages
- snmp_send_set = <balderhub.snmpagent.lib.features.send_snmp_set_request_command_feature.SendSnmpSetRequestCommandFeature object>
feature of type
SendSnmpSetRequestCommandFeaturewhich allows sending SNMP SET REQUEST messages
- test_get_sys_object_id()
This test tries to request the sysObjectId object.
- test_set_sys_object_id()
This test tries to set the sysObjectId object, while it secures that it is not possible.
- class balderhub.snmpagent.scenarios.base.ScenarioMibSysUpTime
Bases:
ScenarioThis scenario is used for testing the system group defined in the RFC1156.
- class SnmpAgent
Bases:
Devicethe remote snmp agent device
- _outer_balder_class
alias of
ScenarioMibSysUpTime
- _snmp_sys = <balderhub.snmpagent.lib.features.has_snmp_system_group_feature.HasSnmpSystemGroupFeature object>
autonomous feature of type
HasSnmpSystemGroupFeatureto define that this device is able to handle SNMP messages of group system
- snmp_system_config = <balderhub.snmpagent.lib.features.snmp_system_config.SnmpSystemConfig object>
general configuration from type
SnmpSystemConfig
- class SnmpManager
Bases:
Devicethe snmp manager device
- _outer_balder_class
alias of
ScenarioMibSysUpTime
- snmp_send_get = <balderhub.snmpagent.lib.features.send_snmp_get_request_command_feature.SendSnmpGetRequestCommandFeature object>
feature of type
SendSnmpGetRequestCommandFeaturewhich allows sending SNMP GET REQUEST messages
- snmp_send_set = <balderhub.snmpagent.lib.features.send_snmp_set_request_command_feature.SendSnmpSetRequestCommandFeature object>
feature of type
SendSnmpSetRequestCommandFeaturewhich allows sending SNMP SET REQUEST messages
- test_get_sys_up_time()
This test tries to request the sysUpTime object.
- test_get_sys_up_time_changed_check()
This test tries to request the sysUpTime object.
Note
This test is not as accurate to validate the exact correct value of sysUpTime. This test is created for validating if the sysUpTime increase in an expected way. It doesn’t ensure any accuracy.
- test_set_sys_up_time()
This test tries to set the sysUpTime object, while it secures that it is not possible.