diff --git a/library/DataFixtures/ORM/ProviderApplicationServerSetRelApplicationServers.php b/library/DataFixtures/ORM/ProviderApplicationServerSetRelApplicationServers.php index 4a150f5e749..6c86cb819b1 100644 --- a/library/DataFixtures/ORM/ProviderApplicationServerSetRelApplicationServers.php +++ b/library/DataFixtures/ORM/ProviderApplicationServerSetRelApplicationServers.php @@ -21,7 +21,7 @@ public function load(ObjectManager $manager) $this->disableLifecycleEvents($manager); $manager->getClassMetadata(ApplicationServerSetRelApplicationServer::class)->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_NONE); $manager->getConnection()->exec( - 'INSERT INTO ApplicationServerSetRelApplicationServers(applicationServerId, applicationServerSetId ) SELECT id, 0 FROM ApplicationServers' + 'INSERT INTO ApplicationServerSetRelApplicationServers(applicationServerId, applicationServerSetId ) SELECT id, 0 FROM ApplicationServers WHERE id != 3' ); $item1 = $this->createEntityInstance(ApplicationServerSetRelApplicationServer::class); diff --git a/web/rest/brand/features/provider/applicationServerSets/getApplicationServerSets.feature b/web/rest/brand/features/provider/applicationServerSets/getApplicationServerSets.feature index 228ed983261..c062291350e 100644 --- a/web/rest/brand/features/provider/applicationServerSets/getApplicationServerSets.feature +++ b/web/rest/brand/features/provider/applicationServerSets/getApplicationServerSets.feature @@ -46,8 +46,7 @@ Feature: Retrieve application server sets "id": 0, "applicationServers": [ 1, - 2, - 3 + 2 ] } """ diff --git a/web/rest/brand/features/provider/company/postCompanies.feature b/web/rest/brand/features/provider/company/postCompanies.feature index 1a19060c069..343e59762ba 100644 --- a/web/rest/brand/features/provider/company/postCompanies.feature +++ b/web/rest/brand/features/provider/company/postCompanies.feature @@ -297,9 +297,7 @@ Feature: Create companies "routingTagIds": [ 1 ], - "codecIds": [ - 1 - ], + "codecIds": [], "applicationServerSet": 1, "mediaRelaySet": 1 } @@ -359,8 +357,6 @@ Feature: Create companies "routingTagIds": [ 1 ], - "codecIds": [ - 1 - ] + "codecIds": [] } """ diff --git a/web/rest/platform/features/provider/applicationServer/removeApplicationServer.feature b/web/rest/platform/features/provider/applicationServer/removeApplicationServer.feature index 67bf1f0d44a..ce8a36f93d9 100644 --- a/web/rest/platform/features/provider/applicationServer/removeApplicationServer.feature +++ b/web/rest/platform/features/provider/applicationServer/removeApplicationServer.feature @@ -8,7 +8,7 @@ Feature: Remove application servers Given I add Authorization header When I add "Content-Type" header equal to "application/json" And I add "Accept" header equal to "application/json" - And I send a "DELETE" request to "/application_servers/2" + And I send a "DELETE" request to "/application_servers/3" Then the response status code should be 204 @createSchema @@ -17,4 +17,12 @@ Feature: Remove application servers When I add "Content-Type" header equal to "application/json" And I add "Accept" header equal to "application/json" And I send a "DELETE" request to "/application_servers/1" - Then the response status code should be 403 + Then the response status code should be 500 + And the response should be in JSON + And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8" + And the JSON should be like: + """ + { + "detail":"An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 19 FOREIGN KEY constraint failed" + } + """ diff --git a/web/rest/platform/features/provider/applicationServerSet/getApplicationServerSet.feature b/web/rest/platform/features/provider/applicationServerSet/getApplicationServerSet.feature index 87310ee453c..6f26b5cb7d9 100644 --- a/web/rest/platform/features/provider/applicationServerSet/getApplicationServerSet.feature +++ b/web/rest/platform/features/provider/applicationServerSet/getApplicationServerSet.feature @@ -51,8 +51,7 @@ Feature: Retrieve applicationServers "id": 0, "applicationServers": [ 1, - 2, - 3 + 2 ] } """ diff --git a/web/rest/platform/features/provider/applicationServerSet/removeApplicationServerSet.feature b/web/rest/platform/features/provider/applicationServerSet/removeApplicationServerSet.feature index 84b7d7b4c39..6d50a1f302e 100644 --- a/web/rest/platform/features/provider/applicationServerSet/removeApplicationServerSet.feature +++ b/web/rest/platform/features/provider/applicationServerSet/removeApplicationServerSet.feature @@ -8,7 +8,7 @@ Feature: Manage application server set Given I add Authorization header When I add "Content-Type" header equal to "application/json" And I add "Accept" header equal to "application/json" - And I send a "DELETE" request to "/application_server_sets/1" + And I send a "DELETE" request to "/application_server_sets/2" Then the response status code should be 204 @createSchema diff --git a/web/rest/platform/features/provider/mediaRelaySet/removeMediaRelaySet.feature b/web/rest/platform/features/provider/mediaRelaySet/removeMediaRelaySet.feature index e662a0c0d67..a7a75db7d02 100644 --- a/web/rest/platform/features/provider/mediaRelaySet/removeMediaRelaySet.feature +++ b/web/rest/platform/features/provider/mediaRelaySet/removeMediaRelaySet.feature @@ -8,5 +8,5 @@ Feature: Manage media relay sets Given I add Authorization header When I add "Content-Type" header equal to "application/json" And I add "Accept" header equal to "application/json" - And I send a "DELETE" request to "/media_relay_sets/1" + And I send a "DELETE" request to "/media_relay_sets/2" Then the response status code should be 204