1313 *
1414 * Copyright 2008 Sun Microsystems, Inc.
1515 * Portions Copyright 2014-2016 ForgeRock AS.
16+ * Portions Copyright 2024-2026 3A Systems, LLC
1617 */
1718package org .opends .server .snmp ;
1819
3435/**
3536 * SNMP tests.
3637 */
37- @ Test (enabled = false , groups = {"precommit" , "snmp" }, sequential = true )
38+ @ Test (groups = {"precommit" , "snmp" }, sequential = true )
3839public class SNMPSyncManagerV2AccessTest extends SNMPConnectionManager {
3940
4041 @ BeforeClass
@@ -60,7 +61,7 @@ Object[][] listAttributes() {
6061 {"dsSlaveHits" }};
6162 }
6263
63- @ Test (enabled = false , dataProvider = "listAttributes" )
64+ @ Test (dataProvider = "listAttributes" )
6465 public void checkAttribute (String attributeName ) {
6566
6667 // get the SNMP peer agent
@@ -76,7 +77,7 @@ public void checkAttribute(String attributeName) {
7677 new SnmpParameters ();
7778
7879 // Set to the allowed the community string
79- params .setRdCommunity ("OpenDS@OpenDS " );
80+ params .setRdCommunity ("OpenDJ@OpenDJ " );
8081
8182 // The newly created parameter must be associated to the agent.
8283 //
@@ -163,17 +164,17 @@ Object[][] listCommunities() {
163164 return new Object [][]{
164165 {"public" , false },
165166 {"private" , false },
166- {"OpenDS@OpenDS " , true },
167+ {"OpenDJ@OpenDJ " , true },
167168 {"dummy" , false },
168169 {"" , false }};
169170 }
170171
171- @ Test (enabled = false , dataProvider = "listCommunities" )
172+ @ Test (dataProvider = "listCommunities" )
172173 public void checkCommunity (String community , boolean expectedResult ) {
173174
174175 try {
175176
176- String host = InetAddress . getLocalHost (). getCanonicalHostName () ;
177+ String host = "localhost" ;
177178 // Initialize the SNMP Manager API.
178179 // Specify the OidTable containing all the MIB II knowledge.
179180 // Use the OidTable generated by mibgen when compiling MIB II.
0 commit comments