mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-14 01:19:09 +02:00
fix test expectation
This commit is contained in:
@@ -239,16 +239,9 @@ func TestAuthMiddleware_Handler_Child(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Valid PAT Token ignores child",
|
name: "Valid PAT Token returns forbidden for child",
|
||||||
path: "/test?account=xyz",
|
path: "/test?account=xyz",
|
||||||
authHeader: "Token " + PAT,
|
authHeader: "Token " + PAT,
|
||||||
expectedUserAuth: &nbcontext.UserAuth{
|
|
||||||
AccountId: accountID,
|
|
||||||
UserId: userID,
|
|
||||||
Domain: testAccount.Domain,
|
|
||||||
DomainCategory: testAccount.DomainCategory,
|
|
||||||
IsPAT: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Valid JWT Token",
|
name: "Valid JWT Token",
|
||||||
|
|||||||
Reference in New Issue
Block a user