mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Updating contributors file, update tutorial test with cleanup of the exported file
This commit is contained in:
@@ -49,7 +49,6 @@ information, please see the [`CONTRIBUTING.md`](CONTRIBUTING.md) file.
|
||||
| @marcinkowalczyk | Marcin Kowalczyk |
|
||||
| @andmar | André Maricato |
|
||||
| @brendangilmore | Brendan Gilmore |
|
||||
| @afone-lboue | Ludovic Boué |
|
||||
| @shaneneuerburg | Shane Neuerburg |
|
||||
| @Edwardro22 | Eduard Tamşa |
|
||||
| @KuikenArjan | Arjan Kuiken |
|
||||
|
||||
@@ -24,6 +24,7 @@ import (
|
||||
"io/ioutil"
|
||||
"net/rpc"
|
||||
"net/rpc/jsonrpc"
|
||||
"os"
|
||||
"path"
|
||||
"reflect"
|
||||
"testing"
|
||||
@@ -1387,11 +1388,15 @@ func TestTutITExportCDR(t *testing.T) {
|
||||
eExportContent := `f0a92222a7d21b4d9f72744aabe82daef52e20d8,*default,testexportcdr1,*rated,cgrates.org,call,1001,1003,2016-11-30T18:06:04+01:00,98,1.3334,RETA
|
||||
f0a92222a7d21b4d9f72744aabe82daef52e20d8,derived_run1,testexportcdr1,*rated,cgrates.org,call,1001,1003,2016-11-30T18:06:04+01:00,98,1.3334,RETA
|
||||
`
|
||||
if expContent, err := ioutil.ReadFile(path.Join(*exportArgs.ExportDirectory, *exportArgs.ExportFileName)); err != nil {
|
||||
expFilePath := path.Join(*exportArgs.ExportDirectory, *exportArgs.ExportFileName)
|
||||
if expContent, err := ioutil.ReadFile(expFilePath); err != nil {
|
||||
t.Error(err)
|
||||
} else if eExportContent != string(expContent) {
|
||||
t.Errorf("Expecting: <%q>, received: <%q>", eExportContent, string(expContent))
|
||||
}
|
||||
if err := os.Remove(expFilePath); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,6 @@ func (self *TPRatingPlanBinding) Timing() *TPTiming {
|
||||
|
||||
// Used to rebuild a TPRatingProfile (empty RatingPlanActivations) out of it's key in nosqldb
|
||||
func NewTPRatingProfileFromKeyId(tpid, loadId, keyId string) (*TPRatingProfile, error) {
|
||||
// *out:cgrates.org:call:*any
|
||||
s := strings.Split(keyId, ":")
|
||||
if len(s) != 4 {
|
||||
return nil, fmt.Errorf("Cannot parse key %s into RatingProfile", keyId)
|
||||
|
||||
Reference in New Issue
Block a user