TT#80997 - Manually add webpassword to subscriber content in tests

* According to TT#78557, webpassword is not returned at
	   GET request for subscriber so it's now manually added
	   in test from the content used at creation

Change-Id: I0835d7830bad31ad20451a758a5044e0f40015bf
changes/72/39872/1
Flaviu Mates 5 years ago
parent cf51166170
commit 8c04b91143

@ -63,10 +63,14 @@ if( !$remote_config->{config}->{features}->{faxserver} ){
$fake_data->{data}->{subscribers}->{data}->{administrative} = 1;
my $subscriberadmin = $fake_data->create('subscribers')->[0];
#manually add webpassword to content since it's not returned from TT#78557
$subscriberadmin->{content}->{webpassword} = $fake_data->{data}->{subscribers}->{data}->{webpassword};
set_faxes_preferences($subscriberadmin->{content}->{id});
$fake_data->{data}->{subscribers}->{data}->{administrative} = 0;
my $subscriber = $fake_data->create('subscribers')->[0];
#manually add webpassword to content since it's not returned from TT#78557
$subscriber->{content}->{webpassword} = $fake_data->{data}->{subscribers}->{data}->{webpassword};
set_faxes_preferences($subscriber->{content}->{id});

Loading…
Cancel
Save