mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
add scope test
This commit is contained in:
parent
297b84a18b
commit
cb6fcadb86
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user