aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline.Tests/IntegratedTests/IntegratedTestBase.cs')
-rw-r--r--Timeline.Tests/IntegratedTests/IntegratedTestBase.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
index 6c349ffb..e42483bd 100644
--- a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
+++ b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
@@ -100,7 +100,7 @@ namespace Timeline.Tests.IntegratedTests
options.Converters.Add(new JsonDateTimeConverter());
foreach (var user in users)
{
- var s = await client.GetStringAsync($"/users/{user.Username}");
+ var s = await client.GetStringAsync($"users/{user.Username}");
userInfoList.Add(JsonSerializer.Deserialize<UserInfo>(s, options));
}
@@ -120,15 +120,15 @@ namespace Timeline.Tests.IntegratedTests
public Task<HttpClient> CreateDefaultClient()
{
var client = Factory.CreateDefaultClient();
- client.BaseAddress = new Uri(client.BaseAddress, "api");
+ client.BaseAddress = new Uri(client.BaseAddress, "api/");
return Task.FromResult(client);
}
public async Task<HttpClient> CreateClientWithCredential(string username, string password)
{
var client = Factory.CreateDefaultClient();
- client.BaseAddress = new Uri(client.BaseAddress, "api");
- var response = await client.PostAsJsonAsync("/token/create",
+ client.BaseAddress = new Uri(client.BaseAddress, "api/");
+ var response = await client.PostAsJsonAsync("token/create",
new CreateTokenRequest { Username = username, Password = password });
var token = response.Should().HaveStatusCode(200)
.And.HaveJsonBody<CreateTokenResponse>().Which.Token;