disabled old tests
This commit is contained in:
parent
dec41ed9ad
commit
5e91fbf274
|
@ -5,13 +5,13 @@ import org.junit.Test;
|
|||
|
||||
public class MongoDBTest {
|
||||
|
||||
private static String[] server={"mongo1-d-d4s.d4science.org","mongo2-d-d4s.d4science.org","mongo3-d-d4s.d4science.org"};
|
||||
private static String[] server={"mongo2-d-d4s.d4science.org","mongo3-d-d4s.d4science.org","mongo4-d-d4s.d4science.org"};
|
||||
private static MongoDB mongo;
|
||||
|
||||
@BeforeClass
|
||||
public static void init(){
|
||||
mongo=new MongoDB(server, "devUser", "d3v_u534");
|
||||
// mongo=new MongoDB(server, "oplogger", "0pl0gg3r_d3v");
|
||||
mongo=new MongoDB(server, "", "");
|
||||
// mongo=new MongoDB(server, "", "");
|
||||
}
|
||||
|
||||
// @Test
|
||||
|
@ -20,7 +20,7 @@ public class MongoDBTest {
|
|||
mongo.updateUserVolume(ssr, "UPLOAD");
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
public void put(){
|
||||
new StorageStatusOperationManager(mongo.getStorageStatusCollection()).putSSRecord( "test.consumer2", 100, 1);
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ public class OplogTest {
|
|||
private MongoClient mongoClient;
|
||||
DB local;
|
||||
private DBCollection oplog;
|
||||
private String user="oplogger";
|
||||
private String password="0pl0gg3r_d3v";
|
||||
// private String user="";
|
||||
// private String password="";
|
||||
|
||||
|
||||
// @BeforeClass
|
||||
|
@ -43,7 +43,7 @@ public class OplogTest {
|
|||
|
||||
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
public void initTest(){
|
||||
initBackend();
|
||||
DBCursor lastCursor = oplog.find().sort(new BasicDBObject("$natural", -1)).limit(1);
|
||||
|
|
Loading…
Reference in New Issue