aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2025-01-09 12:54:30 +0100
committerskjnldsv <skjnldsv@protonmail.com>2025-01-09 15:39:01 +0100
commit669e6cadd6bcb73df3f2cf8774e8ee2e3bfb7c77 (patch)
treeba1151f0fd97cc7b8dc1b123efa8fd40d513d217 /build/integration/features/bootstrap
parente7f6e167e6bca8369efd3c3c56ad5791ac4e7b72 (diff)
downloadnextcloud-server-feat/auto-accept-trusted-server.tar.gz
nextcloud-server-feat/auto-accept-trusted-server.zip
chore(federation): cleanup SettingsController and legacy AddServerMiddlewarefeat/auto-accept-trusted-server
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r--build/integration/features/bootstrap/FederationContext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/FederationContext.php b/build/integration/features/bootstrap/FederationContext.php
index 538dfb56cd3..38fb6dd6b39 100644
--- a/build/integration/features/bootstrap/FederationContext.php
+++ b/build/integration/features/bootstrap/FederationContext.php
@@ -195,7 +195,7 @@ class FederationContext implements Context, SnippetAcceptingContext {
$this->usingServer('LOCAL');
$this->sendRequestForJSON('GET', '/apps/federation/trusted-servers');
$this->theHTTPStatusCodeShouldBe('200');
- $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->data);
+ $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->ocs->data);
foreach ($trustedServersIDs as $id) {
$this->sendRequestForJSON('DELETE', '/apps/federation/trusted-servers/' . $id);
$this->theHTTPStatusCodeShouldBe('200');
@@ -205,7 +205,7 @@ class FederationContext implements Context, SnippetAcceptingContext {
$this->usingServer('REMOTE');
$this->sendRequestForJSON('GET', '/apps/federation/trusted-servers');
$this->theHTTPStatusCodeShouldBe('200');
- $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->data);
+ $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->ocs->data);
foreach ($trustedServersIDs as $id) {
$this->sendRequestForJSON('DELETE', '/apps/federation/trusted-servers/' . $id);
$this->theHTTPStatusCodeShouldBe('200');