tests: the federation surface's group helper is FederatedGroup, so it no longer clashes with the client API's
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ELjqpznMFMNrJoJUj6K5p2
This commit is contained in:
1 parent
2645dea26f
commit
31d614efd4
4 files changed
+8
-8
No files matched your search
@@ -303,7 +303,7 @@ namespace PrivaPub.Tests.Http
|
||||
public async Task A_circle_post_is_served_only_to_a_member_or_its_instance_actor()
|
||||
{
|
||||
var owner = await _host.Persona(await _host.SignUp(), "circleowner");
|
||||
var circle = await _host.Group(owner, community: false);
|
||||
var circle = await _host.FederatedGroup(owner, community: false);
|
||||
var member = new RemoteActor(_peer, "member");
|
||||
var memberServer = new RemoteActor(_peer, "instance", type: "Application");
|
||||
var neighbour = new RemoteActor(_peer, "neighbour");
|
||||
@@ -334,8 +334,8 @@ namespace PrivaPub.Tests.Http
|
||||
{
|
||||
var token = TestContext.Current.CancellationToken;
|
||||
var owner = await _host.Persona(await _host.SignUp(), "circlelists");
|
||||
var circle = await _host.Group(owner, community: false);
|
||||
var community = await _host.Group(owner, community: true);
|
||||
var circle = await _host.FederatedGroup(owner, community: false);
|
||||
var community = await _host.FederatedGroup(owner, community: true);
|
||||
var member = new RemoteActor(_peer, "member");
|
||||
var stranger = new RemoteActor(_peer, "stranger", _peer.B);
|
||||
await circle.AddForeignMember(member.Id);
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace PrivaPub.Tests.Http
|
||||
_alpha = await _host.Persona(_root, "sepalpha");
|
||||
_bravo = await _host.Persona(_root, "sepbravo");
|
||||
_charlie = await _host.Persona(await _host.SignUp(), "sepcharlie");
|
||||
_community = await _host.Group(_bravo, community: true, "sepcommunity");
|
||||
_community = await _host.FederatedGroup(_bravo, community: true, "sepcommunity");
|
||||
_tag = $"septag{Guid.NewGuid():N}"[..14];
|
||||
|
||||
await _host.Publish(_bravo, "the sibling's own words", PostVisibility.FollowersOnly);
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace PrivaPub.Tests.Http
|
||||
public async Task WebFinger_finds_the_instance_actor_and_a_community()
|
||||
{
|
||||
var owner = await _host.Persona(await _host.SignUp(), "fingerowner");
|
||||
var community = await _host.Group(owner, community: true);
|
||||
var community = await _host.FederatedGroup(owner, community: true);
|
||||
|
||||
var instance = await WebFinger($"acct:privapub@{Domain}");
|
||||
var group = await WebFinger($"acct:{community.UserName}@{Domain}");
|
||||
@@ -109,7 +109,7 @@ namespace PrivaPub.Tests.Http
|
||||
public async Task WebFinger_answers_for_a_circle()
|
||||
{
|
||||
var owner = await _host.Persona(await _host.SignUp(), "circlefinger");
|
||||
var circle = await _host.Group(owner, community: false);
|
||||
var circle = await _host.FederatedGroup(owner, community: false);
|
||||
|
||||
var found = await WebFinger($"acct:{circle.UserName}@{Domain}");
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace PrivaPub.Tests.Http
|
||||
await _host.PublishLocated(persona, "around here");
|
||||
await _host.FederatedCopy(persona);
|
||||
await _host.Reblog(friend, shown);
|
||||
var circle = await _host.Group(persona, community: false);
|
||||
var circle = await _host.FederatedGroup(persona, community: false);
|
||||
await _host.Publish(persona, new StatusDraft { Text = "circle only", PlainText = true, GroupId = circle.Id });
|
||||
Assert.Equal(start + 2, await LocalPosts());
|
||||
|
||||
|
||||
Reference in new issue
Block a user