mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
Rename attributeIDs opt to just IDs to avoid redundancy
This commit is contained in:
committed by
Dan Christian Bogos
parent
cbc314e059
commit
74db72a64c
@@ -1920,12 +1920,11 @@ const (
|
||||
MetaActionProfileIDsCfg = "*actionProfileIDs"
|
||||
|
||||
// AttributeSCfg
|
||||
IndexedSelectsCfg = "indexed_selects"
|
||||
ProfileRunsCfg = "profile_runs"
|
||||
NestedFieldsCfg = "nested_fields"
|
||||
MetaAttributeIDsCfg = "*attributeIDs"
|
||||
MetaProcessRunsCfg = "*processRuns"
|
||||
MetaProfileRunsCfg = "*profileRuns"
|
||||
IndexedSelectsCfg = "indexed_selects"
|
||||
ProfileRunsCfg = "profile_runs"
|
||||
NestedFieldsCfg = "nested_fields"
|
||||
MetaProcessRunsCfg = "*processRuns"
|
||||
MetaProfileRunsCfg = "*profileRuns"
|
||||
|
||||
// ChargerSCfg
|
||||
StoreIntervalCfg = "store_interval"
|
||||
@@ -2179,7 +2178,7 @@ var CGROptionsSet = NewStringSet([]string{OptsRatesRateProfileIDs, OptsRatesStar
|
||||
OptsSesTTLMaxDelay, OptsSesTTLLastUsed, OptsSesTTLLastUsage, OptsSesTTLUsage,
|
||||
OptsSesDebitInterval, OptsStirATest, OptsStirPayloadMaxDuration, OptsStirIdentity,
|
||||
OptsStirOriginatorTn, OptsStirOriginatorURI, OptsStirDestinationTn, OptsStirDestinationURI,
|
||||
OptsStirPublicKeyPath, OptsStirPrivateKeyPath, OptsAPIKey, OptsRouteID, OptsContext, OptsAttributesAttributeIDs,
|
||||
OptsStirPublicKeyPath, OptsStirPrivateKeyPath, OptsAPIKey, OptsRouteID, OptsContext, OptsAttributesIDs,
|
||||
OptsAttributesProcessRuns, OptsAttributesProfileRuns, OptsRoutesLimit, OptsRoutesOffset, OptsSesChargeable,
|
||||
RemoteHostOpt, CacheOpt, OptsThresholdsThresholdIDs, OptsRoutesProfileCount, OptsDispatchersProfilesCount,
|
||||
OptsAttributeS, OptsSesAttributeSDerivedReply, OptsSesBlockerError, OptsRoutesUsage,
|
||||
@@ -2243,9 +2242,9 @@ const (
|
||||
OptsActionsActionProfileIDs = "*actionProfileIDs"
|
||||
|
||||
// Attributes
|
||||
OptsAttributesAttributeIDs = "*attributeIDs"
|
||||
OptsAttributesProfileRuns = "*attrProfileRuns"
|
||||
OptsAttributesProcessRuns = "*attrProcessRuns"
|
||||
OptsAttributesIDs = "*attributeIDs"
|
||||
OptsAttributesProfileRuns = "*attrProfileRuns"
|
||||
OptsAttributesProcessRuns = "*attrProcessRuns"
|
||||
|
||||
// CDRs
|
||||
OptsCDRsExport = "*cdrsExport"
|
||||
@@ -2314,7 +2313,7 @@ const (
|
||||
const (
|
||||
MetaDerivedReply = "*derived_reply"
|
||||
|
||||
MetaIDs = "*ids"
|
||||
MetaIDs = "*IDs"
|
||||
|
||||
TrueStr = "true"
|
||||
FalseStr = "false"
|
||||
|
||||
@@ -36,7 +36,7 @@ func TestMapStringToInt64(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMapSubsystemIDsFromSlice(t *testing.T) {
|
||||
sls := []string{"*event", "*thresholds:*ids:ID1&ID2&ID3", "*thresholds:*derived_reply", "*attributes:*disabled", "*stats:*ids:ID"}
|
||||
sls := []string{"*event", "*thresholds:*IDs:ID1&ID2&ID3", "*thresholds:*derived_reply", "*attributes:*disabled", "*stats:*IDs:ID"}
|
||||
eMp := FlagsWithParams{
|
||||
"*event": map[string][]string{},
|
||||
"*thresholds": map[string][]string{MetaIDs: {"ID1", "ID2", "ID3"}, MetaDerivedReply: {}},
|
||||
@@ -49,7 +49,7 @@ func TestMapSubsystemIDsFromSlice(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMapSubsystemIDsHasKey(t *testing.T) {
|
||||
sls := []string{"*event", "*thresholds:*ids:ID1&ID2&ID3", "*attributes", "*stats:*ids:ID"}
|
||||
sls := []string{"*event", "*thresholds:*IDs:ID1&ID2&ID3", "*attributes", "*stats:*IDs:ID"}
|
||||
eMp := FlagsWithParams{
|
||||
"*event": map[string][]string{},
|
||||
"*thresholds": map[string][]string{MetaIDs: {"ID1", "ID2", "ID3"}},
|
||||
@@ -72,7 +72,7 @@ func TestMapSubsystemIDsHasKey(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMapSubsystemIDsGetIDs(t *testing.T) {
|
||||
sls := []string{"*event", "*thresholds:*ids:ID1&ID2&ID3", "*attributes", "*stats:*ids:ID"}
|
||||
sls := []string{"*event", "*thresholds:*IDs:ID1&ID2&ID3", "*attributes", "*stats:*IDs:ID"}
|
||||
eMp := FlagsWithParams{
|
||||
"*event": map[string][]string{},
|
||||
"*thresholds": map[string][]string{MetaIDs: {"ID1", "ID2", "ID3"}},
|
||||
@@ -97,7 +97,7 @@ func TestMapSubsystemIDsGetIDs(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFlagsToSlice(t *testing.T) {
|
||||
sls := []string{"*event", "*thresholds:*ids:ID1&ID2&ID3", "*attributes", "*stats:*ids:ID", "*routes:*derived_reply"}
|
||||
sls := []string{"*event", "*thresholds:*IDs:ID1&ID2&ID3", "*attributes", "*stats:*IDs:ID", "*routes:*derived_reply"}
|
||||
eMp := FlagsWithParams{
|
||||
"*event": map[string][]string{},
|
||||
"*thresholds": map[string][]string{MetaIDs: {"ID1", "ID2", "ID3"}},
|
||||
@@ -196,7 +196,7 @@ func TestFlagParamsAdd(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFlagsToSlice2(t *testing.T) {
|
||||
sls := []string{"*event", "*thresholds:*ids:ID1&ID2&ID3", "*attributes", "*stats:*ids:ID", "*routes:*derived_reply", "*cdrs:*attributes", "*cdrs:*stats:ID"}
|
||||
sls := []string{"*event", "*thresholds:*IDs:ID1&ID2&ID3", "*attributes", "*stats:*IDs:ID", "*routes:*derived_reply", "*cdrs:*attributes", "*cdrs:*stats:ID"}
|
||||
eMp := FlagsWithParams{
|
||||
"*event": map[string][]string{},
|
||||
"*thresholds": map[string][]string{MetaIDs: {"ID1", "ID2", "ID3"}},
|
||||
|
||||
Reference in New Issue
Block a user