Relax validation of MIB access checks until we have broader test coverage that this is a non-breaking change
Mark corresponding test TODO in Info test class
This commit is contained in:
		| @@ -188,6 +188,7 @@ sub loopdetect : Tests(4) { | ||||
|  | ||||
| sub device_type : Tests(+6) { | ||||
|   my $test = shift; | ||||
|   $test->SUPER::device_type(); | ||||
|  | ||||
|   # No sysServices and unknown sysDescr results in SNMP::Info | ||||
|   my $cache_data | ||||
| @@ -252,7 +253,7 @@ sub device_type : Tests(+6) { | ||||
|   }; | ||||
|   $test->{info}->cache($cache_data); | ||||
|   is($test->{info}->device_type, | ||||
|     'SNMP::Info::Layer7::APC', 'Layer 1 device type by sysObjectID'); | ||||
|     'SNMP::Info::Layer7::APC', 'Layer 7 device type by sysObjectID'); | ||||
|   $test->{info}->clear_cache(); | ||||
|  | ||||
|   # We will test each specific subclass, so no need to check that logic here | ||||
| @@ -1597,10 +1598,15 @@ sub private_validate_autoload_method : Tests(8) { | ||||
|       q(Func 'ifPromiscuousMode_raw' validates) | ||||
|     ); | ||||
|   }; | ||||
| TODO: { | ||||
|     local $TODO | ||||
|       = "Check MIB access for non set methods in _validate_autoload_method" | ||||
|       if 1; | ||||
|  | ||||
|   # Test that not-accessible leaf returns undef IF-MIB::ifStackHigherLayer | ||||
|   is($test->{info}->_validate_autoload_method('ifStackHigherLayer'), | ||||
|     undef, q(MIB leaf 'ifStackHigherLayer' not-accessible, returns undef)); | ||||
|     # Test that not-accessible leaf returns undef IF-MIB::ifStackHigherLayer | ||||
|     is($test->{info}->_validate_autoload_method('ifStackHigherLayer'), | ||||
|       undef, q(MIB leaf 'ifStackHigherLayer' not-accessible, returns undef)); | ||||
|   } | ||||
|  | ||||
|   # Test that read-only leaf won't validate set_ | ||||
|   is($test->{info}->_validate_autoload_method('set_i_lastchange'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user