mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Revise tests failing due to configuration changes
This commit is contained in:
committed by
Dan Christian Bogos
parent
cff5d22913
commit
b3d0b8ffbe
File diff suppressed because one or more lines are too long
@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package general_tests
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/cgrates/birpc/context"
|
||||
@@ -117,9 +116,6 @@ func TestEscapeCharacters(t *testing.T) {
|
||||
if rplyEv.MatchedProfiles[0] != "cgrates.org:ATTR_ESCAPE" ||
|
||||
rplyEv.Event["Password"] != "processed" ||
|
||||
rplyEv.AlteredFields[0] != "*req.Password" {
|
||||
fmt.Println(rplyEv.MatchedProfiles[0] != "ATTR_ESCAPE")
|
||||
fmt.Println(rplyEv.Event["Password"] != "processed")
|
||||
fmt.Println(rplyEv.AlteredFields[0] != "*req.Password")
|
||||
t.Error("unexpected reply:", utils.ToJSON(rplyEv))
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package general_tests
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"reflect"
|
||||
"sort"
|
||||
@@ -1402,7 +1401,6 @@ cgrates.org,ATTR_ARITH,,,,,*req.MultiplyBetweenVariables,*multiply,~*req.Elem1;~
|
||||
} else {
|
||||
sort.Strings(expected.AlteredFields)
|
||||
sort.Strings(reply.AlteredFields)
|
||||
fmt.Printf("type %T\n", reply.Event["MultiplyBetweenVariables"])
|
||||
if !reflect.DeepEqual(expected, reply) {
|
||||
t.Errorf("\nexpected: %s, \nreceived: %s",
|
||||
utils.ToJSON(expected), utils.ToJSON(reply))
|
||||
|
||||
Reference in New Issue
Block a user