TT#20322 preliminary fix for failing conversations tests

+ added conversations to api_root.t

+ disabled xmpp conversations source, since "soap"
  MySQL user is not yet granted to prosody.* tables

Change-Id: I3d6a9418e7c2b77503f8472fe639e971ad7be3fa
changes/18/15218/2
Rene Krenn 8 years ago
parent fc5a9e1fcb
commit ea1b26fbfc

@ -82,6 +82,14 @@ $max_fields = scalar keys %sms_fields if ((scalar keys %sms_fields) > $max_field
$max_fields = scalar keys %fax_fields if ((scalar keys %fax_fields) > $max_fields);
$max_fields = scalar keys %xmpp_fields if ((scalar keys %xmpp_fields) > $max_fields);
my %enabled_conversations = (
call => 1,
voicemail => 1,
sms => 1,
fax => 1,
xmpp => 0,
);
sub item_name{
return 'conversation';
}
@ -150,7 +158,7 @@ sub _item_rs {
my $item_rs;
my $type_param = ((exists $params->{type}) ? ($params->{type} // '') : undef);
foreach my $type (qw(call voicemail sms fax xmpp)) {
if ((not defined $type_param) or index(lc($type_param),$type) > -1) {
if ($enabled_conversations{$type} and ((not defined $type_param) or index(lc($type_param),$type) > -1)) {
my $sub_name = '_get_' . $type . '_rs';
my $rs = $self->$sub_name(
c => $c,

@ -61,6 +61,7 @@ $ua = Test::Collection->new()->ua();
cfsourcesets => 1,
cftimesets => 1,
contracts => 1,
conversations => 1,
customerbalances => 1,
customercontacts => 1,
customerfraudevents => 1,

Loading…
Cancel
Save