GetOpenIdConfiguration_returns_ok against testing host
This commit is contained in:
parent
80f9040ac3
commit
9f55ef84da
5 changed files with 70 additions and 75 deletions
|
|
@ -18,7 +18,7 @@ namespace Yavsc.Org.Tests.Smoke;
|
|||
/// entire pipeline (routing + Razor + IdentityServer + EF + DI)
|
||||
/// is wired correctly end-to-end.
|
||||
/// </summary>
|
||||
public class AccountSmokeTests : SmokeTestBase, IClassFixture<TestWebApplicationFactory>
|
||||
public class AccountSmokeTests : IClassFixture<TestWebApplicationFactory>
|
||||
{
|
||||
private readonly TestWebApplicationFactory _factory;
|
||||
|
||||
|
|
@ -27,24 +27,7 @@ public class AccountSmokeTests : SmokeTestBase, IClassFixture<TestWebApplication
|
|||
_factory = factory;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetSignin_returns_a_page()
|
||||
{
|
||||
using var client = _factory.CreateClient();
|
||||
await AssertResponds(client, "/signin");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetOpenIdConfiguration_returns_ok()
|
||||
{
|
||||
using var client = _factory.CreateClient();
|
||||
var response = await GetRaw(client, "/.well-known/openid-configuration");
|
||||
var payload = await response.Content.ReadAsStringAsync();
|
||||
|
||||
Assert.True(
|
||||
response.IsSuccessStatusCode,
|
||||
$"GET /.well-known/openid-configuration returned {(int)response.StatusCode} {response.StatusCode}. Body: {payload}");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ResourceStore_get_all_resources_does_not_throw()
|
||||
|
|
|
|||
Loading…
Reference in a new issue