add scope test

This commit is contained in:
Kukks 2020-04-22 15:04:56 +02:00
parent 297b84a18b
commit cb6fcadb86

View File

@ -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());
}
}