Add integration tests for Passwordless.AspNetCore
#160
Annotations
7 errors and 20 warnings
I can try to verify a tampered signin token and get an error:
tests/Passwordless.Tests/TokenTests.cs#L51
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
|
I can try to verify an invalid signin token and get an error:
tests/Passwordless.Tests/TokenTests.cs#L66
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
|
I can try to verify a poorly formatted signin token and get an error:
tests/Passwordless.Tests/TokenTests.cs#L36
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
|
I can create a register token:
tests/Passwordless.Tests/TokenTests.cs#L20
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
|
I can list users and get an empty collection if there are not any:
tests/Passwordless.Tests/UserTests.cs#L20
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
|
I can define a register endpoint and it will reject duplicate registration attempts:
tests/Passwordless.AspNetCore.Tests/EndpointTests.cs#L81
Expected responses.Skip(1) to contain only items matching (Convert(r.StatusCode, Int32) == 400), but {StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Content-Type: application/json; charset=utf-8
}, StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Content-Type: application/json; charset=utf-8
}, StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Content-Type: application/json; charset=utf-8
}, StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Content-Type: application/json; charset=utf-8
}} do(es) not match.
|
test (ubuntu-latest)
Process completed with exit code 1.
|
pack
Missing XML comment for publicly visible type or member 'CredentialDescriptor'
|
pack
Missing XML comment for publicly visible type or member 'CredentialDescriptor.CredentialDescriptor(byte[])'
|
pack
Missing XML comment for publicly visible type or member 'CredentialDescriptor.Id'
|
pack
Missing XML comment for publicly visible type or member 'RegisterTokenResponse'
|
pack
Missing XML comment for publicly visible type or member 'RegisterTokenResponse.RegisterTokenResponse(string)'
|
pack
Missing XML comment for publicly visible type or member 'RegisterTokenResponse.Token'
|
pack
Missing XML comment for publicly visible type or member 'SetAliasRequest'
|
pack
Missing XML comment for publicly visible type or member 'SetAliasRequest.UserId'
|
pack
Missing XML comment for publicly visible type or member 'SetAliasRequest.Aliases'
|
pack
Missing XML comment for publicly visible type or member 'PasswordlessUserSummary'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'CredentialDescriptor'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'CredentialDescriptor'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'CredentialDescriptor.CredentialDescriptor(byte[])'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'CredentialDescriptor.CredentialDescriptor(byte[])'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'CredentialDescriptor.Id'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'RegisterTokenResponse'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'RegisterTokenResponse.RegisterTokenResponse(string)'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'RegisterTokenResponse.Token'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'SetAliasRequest'
|
test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'SetAliasRequest.UserId'
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
packages
Expired
|
413 KB |
|