Add support for kafka ssl encryption

For both poster and reader.
Added integration test.
This commit is contained in:
ionutboangiu
2024-01-22 08:47:17 -05:00
committed by Dan Christian Bogos
parent e0d15f1a9e
commit 36bdc41e97
13 changed files with 467 additions and 34 deletions

View File

@@ -274,15 +274,15 @@ func TestDebitCreditBlocker(t *testing.T) {
var err error
cc, err = rifsBalance.debitCreditBalance(cd, false, true, true, nil)
if err != nil {
t.Error("Error debiting balance: ", err)
t.Fatal("Error debiting balance: ", err)
}
if len(cc.Timespans) != 0 {
t.Error("Wrong call cost: ", utils.ToIJSON(cc))
t.Error("Wrong call cost: ", utils.ToJSON(cc))
}
if rifsBalance.BalanceMap[utils.MetaMonetary][0].GetValue() != 0.1152 ||
rifsBalance.BalanceMap[utils.MetaMonetary][1].GetValue() != 1.5 {
t.Error("should not have touched the balances: ",
utils.ToIJSON(rifsBalance.BalanceMap[utils.MetaMonetary]))
utils.ToJSON(rifsBalance.BalanceMap[utils.MetaMonetary]))
}
}