Skip to content

Commit

Permalink
add test for banned license
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Feb 26, 2025
1 parent 0d9464b commit 0ec7a19
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/api/v1/tokens/sessions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,16 @@ Feature: Token sessions
}
"""

Scenario: License validates their key via session authentication (banned)
Given the current account is "test1"
And the current account has 1 banned "user"
And the current account has 1 "license" for the last "user" as "owner"
And I am a license of account "test1"
And I authenticate with a session
When I send a POST request to "/accounts/test1/licenses/$0/actions/validate"
And the response headers should contain "Set-Cookie" with an expired "session_id" cookie
Then the response status should be "403"

# update
Scenario: Product updates their license via session authentication
Given the current account is "test1"
Expand Down

0 comments on commit 0ec7a19

Please sign in to comment.