mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-13 11:06:25 +05:00
Replace tags for tp tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
c9ad00ec3a
commit
57489d90aa
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -120,7 +120,7 @@ func (self *ApierV1) GetTPRatingProfileIds(attrs AttrGetTPRatingProfileIds, repl
|
||||
return utils.NewErrMandatoryIeMissing(missing...)
|
||||
}
|
||||
if ids, err := self.StorDb.GetTpTableIds(attrs.TPid, utils.TBLTPRateProfiles,
|
||||
utils.TPDistinctIds{"loadid", "direction", "tenant", "category", "subject"},
|
||||
utils.TPDistinctIds{"loadid", "tenant", "category", "subject"},
|
||||
nil, &attrs.Paginator); err != nil {
|
||||
if err.Error() != utils.ErrNotFound.Error() {
|
||||
err = utils.NewErrServerError(err)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
@@ -55,6 +55,7 @@ var sTestsTPRatingProfiles = []func(t *testing.T){
|
||||
testTPRatingProfilesGetTPRatingProfilesByLoadId,
|
||||
testTPRatingProfilesUpdateTPRatingProfile,
|
||||
testTPRatingProfilesGetTPRatingProfileAfterUpdate,
|
||||
testTPRatingProfilesGetTPRatingProfileIds,
|
||||
testTPRatingProfilesRemTPRatingProfile,
|
||||
testTPRatingProfilesGetTPRatingProfileAfterRemove,
|
||||
testTPRatingProfilesKillEngine,
|
||||
@@ -256,6 +257,17 @@ func testTPRatingProfilesGetTPRatingProfileAfterUpdate(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func testTPRatingProfilesGetTPRatingProfileIds(t *testing.T) {
|
||||
var respond []string
|
||||
expected := []string{"RPrf:Tenant1:Category:Subject"}
|
||||
if err := tpRatingProfileRPC.Call("ApierV1.GetTPRatingProfileIds",
|
||||
&AttrGetTPRatingProfileIds{TPid: "TPRProf1"}, &respond); err != nil {
|
||||
t.Error(err)
|
||||
} else if !reflect.DeepEqual(expected, respond) {
|
||||
t.Errorf("Expecting : %+v, received: %+v", expected, respond)
|
||||
}
|
||||
}
|
||||
|
||||
func testTPRatingProfilesRemTPRatingProfile(t *testing.T) {
|
||||
var resp string
|
||||
if err := tpRatingProfileRPC.Call("ApierV1.RemTPRatingProfile",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build offline_tp
|
||||
// +build integration
|
||||
|
||||
/*
|
||||
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
|
||||
|
||||
@@ -755,7 +755,7 @@ const CGRATES_CFG_JSON = `
|
||||
|
||||
"apier": {
|
||||
"caches_conns":[ // connections to CacheS for reloads
|
||||
{"address": "*internal"},
|
||||
{"address": "127.0.0.1:2012", "transport": "*json"},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user