From b5993095fad2d18ce29e92b0ae1e5e1450bd7f4a Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 16 Feb 2023 14:20:23 +0100 Subject: [bugfix] Set 'discoverable' properly on API accounts (#1511) --- internal/api/client/admin/reportsget_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'internal/api/client/admin/reportsget_test.go') diff --git a/internal/api/client/admin/reportsget_test.go b/internal/api/client/admin/reportsget_test.go index 9bcc3dcd0..f35720011 100644 --- a/internal/api/client/admin/reportsget_test.go +++ b/internal/api/client/admin/reportsget_test.go @@ -168,6 +168,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet1() { "acct": "foss_satan@fossbros-anonymous.io", "display_name": "big gerald", "locked": false, + "discoverable": true, "bot": false, "created_at": "2021-09-26T10:52:36.000Z", "note": "i post about like, i dunno, stuff, or whatever!!!!", @@ -206,6 +207,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet1() { "acct": "1happyturtle", "display_name": "happy little turtle :3", "locked": true, + "discoverable": false, "bot": false, "created_at": "2022-06-04T13:12:00.000Z", "note": "\u003cp\u003ei post about things that concern me\u003c/p\u003e", @@ -246,6 +248,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet1() { "acct": "admin", "display_name": "", "locked": false, + "discoverable": true, "bot": false, "created_at": "2022-05-17T13:10:59.000Z", "note": "", @@ -287,6 +290,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet1() { "acct": "admin", "display_name": "", "locked": false, + "discoverable": true, "bot": false, "created_at": "2022-05-17T13:10:59.000Z", "note": "", @@ -341,6 +345,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet1() { "acct": "1happyturtle", "display_name": "happy little turtle :3", "locked": true, + "discoverable": false, "bot": false, "created_at": "2022-06-04T13:12:00.000Z", "note": "\u003cp\u003ei post about things that concern me\u003c/p\u003e", @@ -381,6 +386,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet1() { "acct": "foss_satan@fossbros-anonymous.io", "display_name": "big gerald", "locked": false, + "discoverable": true, "bot": false, "created_at": "2021-09-26T10:52:36.000Z", "note": "i post about like, i dunno, stuff, or whatever!!!!", @@ -427,6 +433,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet1() { "acct": "foss_satan@fossbros-anonymous.io", "display_name": "big gerald", "locked": false, + "discoverable": true, "bot": false, "created_at": "2021-09-26T10:52:36.000Z", "note": "i post about like, i dunno, stuff, or whatever!!!!", @@ -533,6 +540,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet2() { "acct": "1happyturtle", "display_name": "happy little turtle :3", "locked": true, + "discoverable": false, "bot": false, "created_at": "2022-06-04T13:12:00.000Z", "note": "\u003cp\u003ei post about things that concern me\u003c/p\u003e", @@ -573,6 +581,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet2() { "acct": "foss_satan@fossbros-anonymous.io", "display_name": "big gerald", "locked": false, + "discoverable": true, "bot": false, "created_at": "2021-09-26T10:52:36.000Z", "note": "i post about like, i dunno, stuff, or whatever!!!!", @@ -619,6 +628,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet2() { "acct": "foss_satan@fossbros-anonymous.io", "display_name": "big gerald", "locked": false, + "discoverable": true, "bot": false, "created_at": "2021-09-26T10:52:36.000Z", "note": "i post about like, i dunno, stuff, or whatever!!!!", @@ -725,6 +735,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet3() { "acct": "1happyturtle", "display_name": "happy little turtle :3", "locked": true, + "discoverable": false, "bot": false, "created_at": "2022-06-04T13:12:00.000Z", "note": "\u003cp\u003ei post about things that concern me\u003c/p\u003e", @@ -765,6 +776,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet3() { "acct": "foss_satan@fossbros-anonymous.io", "display_name": "big gerald", "locked": false, + "discoverable": true, "bot": false, "created_at": "2021-09-26T10:52:36.000Z", "note": "i post about like, i dunno, stuff, or whatever!!!!", @@ -811,6 +823,7 @@ func (suite *ReportsGetTestSuite) TestReportsGet3() { "acct": "foss_satan@fossbros-anonymous.io", "display_name": "big gerald", "locked": false, + "discoverable": true, "bot": false, "created_at": "2021-09-26T10:52:36.000Z", "note": "i post about like, i dunno, stuff, or whatever!!!!", -- cgit v1.2.3