aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-20 16:47:17 +0800
committer杨宇千 <crupest@outlook.com>2019-10-20 16:47:17 +0800
commit3b658ebab07f6e8dcce978138b0f17806eae798d (patch)
tree504d77d6210fd0d0a251dcf232231d96a0990c54 /Timeline.Tests
parentc9cc1e18fb36df25ad28778c26e4b2bd88b6a96d (diff)
downloadtimeline-3b658ebab07f6e8dcce978138b0f17806eae798d.tar.gz
timeline-3b658ebab07f6e8dcce978138b0f17806eae798d.tar.bz2
timeline-3b658ebab07f6e8dcce978138b0f17806eae798d.zip
...
Diffstat (limited to 'Timeline.Tests')
-rw-r--r--Timeline.Tests/IntegratedTests/AuthorizationUnitTest.cs9
-rw-r--r--Timeline.Tests/Timeline.Tests.csproj1
2 files changed, 5 insertions, 5 deletions
diff --git a/Timeline.Tests/IntegratedTests/AuthorizationUnitTest.cs b/Timeline.Tests/IntegratedTests/AuthorizationUnitTest.cs
index a67bffcf..588e4349 100644
--- a/Timeline.Tests/IntegratedTests/AuthorizationUnitTest.cs
+++ b/Timeline.Tests/IntegratedTests/AuthorizationUnitTest.cs
@@ -11,10 +11,6 @@ namespace Timeline.Tests.IntegratedTests
{
public class AuthorizationUnitTest : IClassFixture<WebApplicationFactory<Startup>>, IDisposable
{
- private const string AuthorizeUrl = "Test/User/Authorize";
- private const string UserUrl = "Test/User/User";
- private const string AdminUrl = "Test/User/Admin";
-
private readonly TestApplication _testApp;
private readonly WebApplicationFactory<Startup> _factory;
@@ -29,6 +25,11 @@ namespace Timeline.Tests.IntegratedTests
_testApp.Dispose();
}
+ private const string BaseUrl = "testing/auth/";
+ private const string AuthorizeUrl = BaseUrl + "Authorize";
+ private const string UserUrl = BaseUrl + "User";
+ private const string AdminUrl = BaseUrl + "Admin";
+
[Fact]
public async Task UnauthenticationTest()
{
diff --git a/Timeline.Tests/Timeline.Tests.csproj b/Timeline.Tests/Timeline.Tests.csproj
index a611dfd3..497a00b7 100644
--- a/Timeline.Tests/Timeline.Tests.csproj
+++ b/Timeline.Tests/Timeline.Tests.csproj
@@ -4,7 +4,6 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
<LangVersion>8.0</LangVersion>
- <Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>