@@ -268,11 +268,11 @@ describe SNMP do
268
268
end
269
269
270
270
it " should be able to query SNMPLabs with MD5 auth" do
271
- pending!(" need a replacement for snmpsim https://github.com/inexio/snmpsim " )
271
+ pending!(" not sure how to configure SNMPv3 on the simulator " )
272
272
273
273
# Connect to server
274
274
socket = UDPSocket .new
275
- socket.connect(" demo.snmplabs.com " , 161 )
275
+ socket.connect(TEST_SNMP_SERVER , 161 )
276
276
socket.sync = false
277
277
socket.read_timeout = 3
278
278
@@ -295,11 +295,11 @@ describe SNMP do
295
295
end
296
296
297
297
it " should be able to query SNMPLabs with MD5 and AES auth" do
298
- pending!(" need a replacement for snmpsim https://github.com/inexio/snmpsim " )
298
+ pending!(" not sure how to configure SNMPv3 on the simulator " )
299
299
300
300
# Connect to server
301
301
socket = UDPSocket .new
302
- socket.connect(" demo.snmplabs.com " , 161 )
302
+ socket.connect(TEST_SNMP_SERVER , 161 )
303
303
socket.sync = false
304
304
socket.read_timeout = 3
305
305
@@ -322,11 +322,11 @@ describe SNMP do
322
322
end
323
323
324
324
it " should be able to query SNMPLabs with MD5 and DES auth" do
325
- pending!(" need a replacement for snmpsim https://github.com/inexio/snmpsim " )
325
+ pending!(" not sure how to configure SNMPv3 on the simulator " )
326
326
327
327
# Connect to server
328
328
socket = UDPSocket .new
329
- socket.connect(" demo.snmplabs.com " , 161 )
329
+ socket.connect(TEST_SNMP_SERVER , 161 )
330
330
socket.sync = false
331
331
socket.read_timeout = 3
332
332
@@ -351,7 +351,7 @@ describe SNMP do
351
351
it " should be able to query SNMPLabs with SNMPv2" do
352
352
# Connect to server
353
353
socket = UDPSocket .new
354
- socket.connect(TEST_SNMP_SERVER , 4000 )
354
+ socket.connect(TEST_SNMP_SERVER , 161 )
355
355
socket.sync = false
356
356
socket.read_timeout = 3
357
357
@@ -362,16 +362,14 @@ describe SNMP do
362
362
363
363
# Process response
364
364
response = session.parse(socket.read_bytes(ASN1 ::BER ))
365
- response.value.get_string.should start_with(" Root <root@localhost> " )
365
+ response.value.get_string.should start_with(" SNMP Laboratories " )
366
366
end
367
367
368
368
it " should be able to set an OID on SNMPLabs with SNMPv2" do
369
- pending!(" need a replacement for snmpsim https://github.com/inexio/snmpsim" )
370
-
371
369
# Connect to server
372
370
socket = UDPSocket .new
373
371
# socket.connect("localhost", 32771)
374
- socket.connect(" demo.snmplabs.com " , 161 )
372
+ socket.connect(TEST_SNMP_SERVER , 161 )
375
373
socket.sync = false
376
374
socket.read_timeout = 3
377
375
0 commit comments