| | |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | * Portions Copyright 2024-2026 3A Systems, LLC |
| | | */ |
| | | package org.opends.server.snmp; |
| | | |
| | |
| | | /** |
| | | * SNMP tests. |
| | | */ |
| | | @Test(enabled=false, groups = {"precommit", "snmp"}, sequential = true) |
| | | @Test(groups = {"precommit", "snmp"}, sequential = true) |
| | | public class SNMPSyncManagerV2AccessTest extends SNMPConnectionManager { |
| | | |
| | | @BeforeClass |
| | |
| | | {"dsSlaveHits"}}; |
| | | } |
| | | |
| | | @Test(enabled=false,dataProvider = "listAttributes") |
| | | @Test(dataProvider = "listAttributes") |
| | | public void checkAttribute(String attributeName) { |
| | | |
| | | // get the SNMP peer agent |
| | |
| | | new SnmpParameters(); |
| | | |
| | | // Set to the allowed the community string |
| | | params.setRdCommunity("OpenDS@OpenDS"); |
| | | params.setRdCommunity("OpenDJ@OpenDJ"); |
| | | |
| | | // The newly created parameter must be associated to the agent. |
| | | // |
| | |
| | | return new Object[][]{ |
| | | {"public", false}, |
| | | {"private", false}, |
| | | {"OpenDS@OpenDS", true}, |
| | | {"OpenDJ@OpenDJ", true}, |
| | | {"dummy", false}, |
| | | {"", false}}; |
| | | } |
| | | |
| | | @Test(enabled = false,dataProvider = "listCommunities") |
| | | @Test(dataProvider = "listCommunities") |
| | | public void checkCommunity(String community, boolean expectedResult) { |
| | | |
| | | try { |
| | | |
| | | String host = InetAddress.getLocalHost().getCanonicalHostName(); |
| | | String host = "localhost"; |
| | | // Initialize the SNMP Manager API. |
| | | // Specify the OidTable containing all the MIB II knowledge. |
| | | // Use the OidTable generated by mibgen when compiling MIB II. |