From 0a0f5e7c593685eb50aa2e4637927186f481ff7d Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Mon, 30 Sep 2019 10:35:06 +0300 Subject: [PATCH] TT#60965 - Fix api-subscribers.t pilot deletion * Change order of deleting subscribers to delete other subscribers before the pilot according to task 60965 Change-Id: Ic4f4ddb23876a470aba5398d48a7c3439167c117 --- t/api-rest/api-subscribers.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/api-rest/api-subscribers.t b/t/api-rest/api-subscribers.t index 9f771726f5..a006e3c74b 100644 --- a/t/api-rest/api-subscribers.t +++ b/t/api-rest/api-subscribers.t @@ -114,7 +114,10 @@ my $put2get_check_params = { ignore_fields => $fake_data->data->{subscribers}->{ $test_machine->http_code_msg(422, "Check that PUT existing number will return nice error", $res, $content); #Number '11-1111-11' already exists ok($content->{message} =~ /Number ['\-\d]+ already exists/, "check error message in body"); - $test_machine->clear_test_data_all();#fake data aren't registered in this test machine, so they will stay. + #commit 581f1386b restricted deletion of PBX pilot before deleting all other subscribers + $test_machine->request_delete($members->[1]->{location}); + $test_machine->request_delete($members->[0]->{location}); + $test_machine->clear_data_created();#fake data aren't registered in this test machine, so they will stay. } { # create new subscribers from DATA_ITEM. Item is not created in the fake_data->process.