mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-25 17:04:25 +01:00
add scope test
This commit is contained in:
@@ -193,6 +193,11 @@ namespace BTCPayServer.Tests
|
||||
await client.GetStore(newStore.Id);
|
||||
});
|
||||
Assert.Single(await client.GetStores());
|
||||
|
||||
|
||||
newStore = await client.CreateStore(new CreateStoreRequest() {Name = "A"});
|
||||
var scopedClient = await user.CreateClient(Permission.Create(Policies.CanViewStoreSettings, user.StoreId).ToString());
|
||||
Assert.Single(await scopedClient.GetStores());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user