DanB
37ca876db4
Small cleanups SMGeneric
2016-11-14 21:04:26 +01:00
DanB
a5b7177f39
Account.setBalanceAction - balanceType not longer mandatory if balance exists
2016-11-14 12:55:09 +01:00
DanB
f393840156
SMGeneric - fix for unprotected session terminators
2016-11-14 11:37:03 +01:00
DanB
ce23852583
Small config fix
2016-11-12 11:27:44 +01:00
DanB
5281b7c051
Updating default cgrates.json config, small logs modifications in http server
2016-11-12 11:17:52 +01:00
Dan Christian Bogos
8259d85a07
Merge pull request #592 from shaneneuerburg/basic-auth
...
Add basic authentication to HTTP API
2016-11-12 10:07:58 +01:00
DanB
ed87edac4c
Adding ApierV1.AddTriggeredAction, ApierV1.SetActions with float64 as units for backwards compatibility
2016-11-12 10:00:10 +01:00
Shane Neuerburg
7acfa6acbc
Set up JSON RPC and WebSocket URLs to be configurable
...
This also allows the two URLs to be disabled entirely. Also in this commit is rudimentary basic auth support for WebSockets
2016-11-11 16:17:54 -07:00
DanB
3ba572cb4c
Backwards compatible APierV1.SetActions
2016-11-11 11:20:17 +01:00
Shane Neuerburg
0cfd025a0d
Add basic authentication without dependencies
...
This adds a rudimentary basic auth scheme without including dependencies.
2016-11-10 16:35:08 -07:00
Shane Neuerburg
a88a1e75ed
Add basic authentication to HTTP API
...
This adds support for basic authentication for the HTTP API with new configuration values to control if basic auth is used, the basic auth realm URL, and the location to a basic .htpasswd file.
github.com/abbot/go-http-auth is added as a dependency as it efficiently implements basic auth, as well as .htpasswd file monitoring.
2016-11-10 10:57:55 -07:00
DanB
543fe0fb23
Small fix to only load defaults once in tests
2016-11-10 18:40:36 +01:00
DanB
65ee8a1131
Fix Diameter config loading which was doubling processor, thanks @Edwardro22
2016-11-10 18:30:12 +01:00
Dan Christian Bogos
15602c1365
Merge pull request #590 from Edwardro22/master
...
Added tests for config_defaults.go
2016-11-10 17:21:06 +01:00
DanB
a44cb0ad17
SMGeneric - make sure we return SessionNotFound for both update and terminate without init
2016-11-10 16:39:21 +01:00
Edwardro22
753c9bd325
Refactoring config defaults tests
2016-11-10 16:39:20 +01:00
Edwardro22
915b6ae9da
Added test for DefaultsDiameterAgentCfg
2016-11-10 15:45:37 +01:00
DanB
e6a27764a3
SMGeneric - replicate only on changes
2016-11-10 15:11:20 +01:00
DanB
f5e6c95a6c
SMGeneric common index configuration for active/passive sessions
2016-11-10 14:15:15 +01:00
DanB
12bf0667ef
SMGeneric simplified active/passive table management, unified SMGenericV1.ActiveSessions and SMGenericV1.PassiveSessions logic
2016-11-10 13:32:30 +01:00
Edwardro22
570b3bdd82
Added tests for cdre
2016-11-09 22:13:26 +01:00
DanB
9784dc7c38
SMGeneric returning SESSSION_NOT_FOUND, unified RPC methods for SMG, rpcclient update to failover on SESSION_NOT_FOUND
2016-11-09 19:19:17 +01:00
DanB
b5279062ed
Diameter using POOL_FIRST for SMG connection instead of POOL_BROADCAST
2016-11-09 17:30:09 +01:00
DanB
c8750261eb
SMGeneric - improved session indexing considering runID, passive sessions with session prefix implementation
2016-11-09 16:53:06 +01:00
Edwardro22
d7811124e7
Tests for SureTax default
2016-11-09 06:28:06 +01:00
DanB
b3dbf0daa9
SMGeneric - passive sessions indexing
2016-11-08 20:54:05 +01:00
DanB
955ada732f
SMGeneric - faster session unindexing
2016-11-08 19:52:33 +01:00
DanB
65a2ae76a7
SMGeneric Session replication in alpha state
2016-11-08 16:31:41 +01:00
DanB
37c853cb91
RPCClient with lazyConnect
2016-11-08 16:03:30 +01:00
DanB
d2afaba0a8
Fix for ApierV1.SetRatingProfile API which was reloading rating plan
2016-11-08 15:39:46 +01:00
DanB
1a946e1ce5
SMGenericV1.ActiveSessions returning NOT_FOUND for 0 active sessions, SMG one way session replication operational
2016-11-08 15:27:03 +01:00
DanB
9b0b6c0a95
SMGeneric with transition mechanisms for passive to active and opposite
2016-11-08 12:27:29 +01:00
Edwardro22
c722f23c40
Debugging tests
2016-11-08 12:20:36 +01:00
DanB
4fab18a94c
SMGeneric set and remove passiveSessions with checks in activeSessions cache
2016-11-07 20:35:39 +01:00
DanB
d253be03ac
SMGeneric using CGRID instead of OriginID for session indexing
2016-11-07 17:22:54 +01:00
DanB
5e00fa9533
SMG.setSessionTerminator method
2016-11-04 20:45:45 +01:00
DanB
e1eab6e35f
SMG - ttlTerminate only if session is in active sessions table
2016-11-04 19:55:49 +01:00
DanB
6e84123b8b
SMGeneric with cached responses
2016-11-04 19:42:56 +01:00
Edwardro22
a7133b4c3f
Refactoring
2016-11-04 13:40:06 +01:00
Edwardro22
c276253ad3
Merge branch 'master' of https://github.com/Edwardro22/cgrates
...
Conflicts:
config/config_test.go
2016-11-04 13:33:59 +01:00
Edwardro22
fae0812214
Merge branch 'master' of https://github.com/cgrates/cgrates
2016-11-04 13:29:50 +01:00
Edwardro22
d6bc012a21
Modifying some tests
2016-11-04 13:29:05 +01:00
DanB
b0df6520b6
SMG - PassiveSession replication for init, update and terminate events
2016-11-03 19:14:03 +01:00
Edwardro22
bd888f6d38
Modified tests for config_defaults
2016-11-03 08:14:32 +01:00
Edwardro22
4bf076ac8f
Added tests for config_defaults
2016-11-02 20:34:15 +01:00
Edwardro22
67e5dd5a5b
Merge remote-tracking branch 'Fetch/master'
2016-11-02 20:05:20 +01:00
Edwardro22
5f3b0d5abc
Added some tests for config_default
2016-11-02 19:59:51 +01:00
DanB
39c1511167
Fix SmGenericConfig for SMGReplicationConns
2016-11-02 19:19:24 +01:00
DanB
6596c926b9
Improved SMG SessionReplication mechanism
2016-11-02 19:00:14 +01:00
DanB
ac56b0dc29
SMG.SetPassiveSessions using replication for all derived sessions in one message instead of individual ones for consistency, remove supported
2016-11-02 15:54:01 +01:00