Skip to content

Commit

Permalink
Improved step definitions and wired up wiremock
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed Aug 12, 2024
1 parent 8cd5d80 commit 2321882
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 152 deletions.
11 changes: 6 additions & 5 deletions features/accept-follows.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Feature: We automatically accept Follow requests

Scenario: We receive a valid Follow request
Given a valid "Follow(Person)" activity
When it is sent to the Inbox
Then the request is accepted
And the actor is in the Followers
Scenario: We can be followed
Given an Actor "Alice"
Given a "Follow(Us)" Activity "F" by "Alice"
When "Alice" sends "F" to the Inbox
Then an "Accept(F)" Activity "A" is created by "Us"
And Activity "A" is sent to "Alice"
6 changes: 3 additions & 3 deletions features/handle-create-article.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Feature: Create(Article)
We want to handle Create(Article) activities in the Inbox

Scenario: We recieve a Create(Article) activity from someone we follow
Given a valid "Create(Article)" activity
Given the actor is "known"
When it is sent to the Inbox
Given an Actor "Alice"
Given a "Create(Article)" Activity "A" by "Alice"
When "Alice" sends "A" to the Inbox
Then the request is accepted
Then the activity is in the Inbox
Loading

0 comments on commit 2321882

Please sign in to comment.