// InitDb so we can rely on count
func TestCdrsInitCdrDb(t *testing.T) {
	if !*testIntegration {
		return
	}
	if err := engine.InitStorDb(cdrsMasterCfg); err != nil {
		t.Fatal(err)
	}
	if err := engine.InitStorDb(cdrsSlaveCfg); err != nil {
		t.Fatal(err)
	}
}
// InitDb so we can rely on count
func TestCdrsInitCdrDb(t *testing.T) {
	if err := engine.InitStorDb(cdrsMasterCfg); err != nil {
		t.Fatal(err)
	}
	if err := engine.InitStorDb(cdrsSlaveCfg); err != nil {
		t.Fatal(err)
	}
	/*
		if err := os.Mkdir(cdrsMasterCfg.HttpFailedDir, 0700); err != nil {
			t.Error(err)
		}
	*/

}
func TestMCDRCEmptyTables(t *testing.T) {
	if !*testLocal {
		return
	}
	if err := engine.InitStorDb(cfg); err != nil {
		t.Fatal(err)
	}
}
Example #4
0
// Wipe out the cdr database
func TestApierV2itResetStorDb(t *testing.T) {
	if !*testIT {
		return
	}
	if err := engine.InitStorDb(apierCfg); err != nil {
		t.Fatal(err)
	}
}
// Wipe out the cdr database
func TestSMGV1ResetStorDb(t *testing.T) {
	if !*testLocal {
		return
	}
	if err := engine.InitStorDb(smgV1Cfg); err != nil {
		t.Fatal(err)
	}
}
Example #6
0
// Wipe out the cdr database
func TestSMGResetStorDb(t *testing.T) {
	if !*testIntegration {
		return
	}
	if err := engine.InitStorDb(daCfg); err != nil {
		t.Fatal(err)
	}
}
Example #7
0
// Wipe out the cdr database
func TestTutKamCallsResetStorDb(t *testing.T) {
	if !*testCalls {
		return
	}
	if err := engine.InitStorDb(tutKamCallsCfg); err != nil {
		t.Fatal(err)
	}
}
Example #8
0
// Wipe out the cdr database
func TestTutLocalResetStorDb(t *testing.T) {
	if !*testLocal {
		return
	}
	if err := engine.InitStorDb(tutFsLocalCfg); err != nil {
		t.Fatal(err)
	}
}
Example #9
0
// InitDb so we can rely on count
func TestV2CDRsPSQLInitCdrDb(t *testing.T) {
	if !*testLocal {
		return
	}
	if err := engine.InitStorDb(cdrsPsqlCfg); err != nil {
		t.Fatal(err)
	}
}
Example #10
0
// Wipe out the cdr database
func TestSTIResetStorDb(t *testing.T) {
	if !*testSureTax {
		return
	}
	if err := engine.InitStorDb(stiCfg); err != nil {
		t.Fatal(err)
	}
}
Example #11
0
// InitDb so we can rely on count
func TestV2CdrsMongoInitCdrDb(t *testing.T) {
	if !*testLocal {
		return
	}
	if err := engine.InitStorDb(cdrsMongoCfg); err != nil {
		t.Fatal(err)
	}
}
Example #12
0
// InitDb so we can rely on count
func TestFlatstoreLclInitCdrDb(t *testing.T) {
	if !*testLocal {
		return
	}
	if err := engine.InitStorDb(flatstoreCfg); err != nil {
		t.Fatal(err)
	}
}
Example #13
0
// Wipe out the cdr database
func TestTPitResetStorDb(t *testing.T) {
	if !*testTP {
		return
	}
	if err := engine.InitStorDb(tpCfg); err != nil {
		t.Fatal(err)
	}
}
Example #14
0
// InitDb so we can rely on count
func TestCsvITInitCdrDb(t *testing.T) {
	if !*testIT {
		return
	}
	if err := engine.InitStorDb(csvCfg); err != nil {
		t.Fatal(err)
	}
}
Example #15
0
// Remove data in both rating and accounting db
func TestSMGRplcResetDB(t *testing.T) {
	if err := engine.InitDataDb(smgRplcMasterCfg); err != nil {
		t.Fatal(err)
	}
	if err := engine.InitStorDb(smgRplcMasterCfg); err != nil {
		t.Fatal(err)
	}
}
Example #16
0
// InitDb so we can rely on count
func TestFlatstoreitInitCdrDb(t *testing.T) {
	if err := engine.InitStorDb(flatstoreCfg); err != nil {
		t.Fatal(err)
	}
}
Example #17
0
// InitDb so we can rely on count
func TestPartcsvITInitCdrDb(t *testing.T) {
	if err := engine.InitStorDb(partcsvCfg); err != nil {
		t.Fatal(err)
	}
}
Example #18
0
// InitDb so we can rely on count
func TestXmlITInitCdrDb(t *testing.T) {
	if err := engine.InitStorDb(xmlCfg); err != nil {
		t.Fatal(err)
	}
}
Example #19
0
// Wipe out the cdr database
func TestTutSMGResetStorDb(t *testing.T) {
	if err := engine.InitStorDb(tutSMGCfg); err != nil {
		t.Fatal(err)
	}
}
Example #20
0
// Wipe out the cdr database
func TestSMGVoiceResetStorDb(t *testing.T) {
	if err := engine.InitStorDb(daCfg); err != nil {
		t.Fatal(err)
	}
}
// Wipe out the cdr database
func TestTutOsipsCallsResetStorDb(t *testing.T) {
	if err := engine.InitStorDb(tutOsipsCallsCfg); err != nil {
		t.Fatal(err)
	}
}
Example #22
0
// InitDb so we can rely on count
func testV2CDRsInitCdrDb(t *testing.T) {
	if err := engine.InitStorDb(cdrsCfg); err != nil {
		t.Fatal(err)
	}
}
Example #23
0
// Wipe out the cdr database
func TestDmtAgentResetStorDb(t *testing.T) {
	if err := engine.InitStorDb(daCfg); err != nil {
		t.Fatal(err)
	}
}