mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add APIKey authentification
This commit is contained in:
committed by
Dan Christian Bogos
parent
3543d10e9c
commit
ebc419771d
@@ -103,3 +103,14 @@ func TestMapStringToInt64(t *testing.T) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", t1, t3)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMapHasKey(t *testing.T) {
|
||||
mp := ParseStringMap("Item1;Item2;Item3")
|
||||
if mp.HasKey("Item1") != true {
|
||||
t.Errorf("Expecting: true, received: %+v", mp.HasKey("Item1"))
|
||||
}
|
||||
if mp.HasKey("Item4") != false {
|
||||
t.Errorf("Expecting: true, received: %+v", mp.HasKey("Item4"))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user