mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
Release v0.24 - A Sight For Sore Eyes (#1539)
* Add release notes and bump version to 0.24 * run "build FormatCode" to fix up whitespace/formatting issues * Fix failing Ssh key tests due to "validation exception". This key must be in use on github (under another user, most likely from these tests failing). Changed to a new SSH key and tweaked tests to reduce chance of a key being created and not destroyed * Assignee and Assignees cant both be specified on NewIssue. We missed this one in the PR. Marked Assignee as [Obsolete] and fixed tests to use Assignees * Fix a couple of Reactions tests that were calling the wrong client methods * Fix timeline tests - looks like the response class has changed shape a bit, it now has an Issue object in the payload and Id field isnt present (leaving Id field there in case other timeline events do use it) * Fix some following tests that require the test user to follow more than 1 other user * Unskip these Event tests now because apparently they work! * add breaking changes notes * Update ApiErrorMessageSafe to return null for empty and whitespace strings (#1540) * return null if ApiError.Message is empty or whitespace * Uncomment test, which now passes * update release notes to include PR1540 * Add "Bot" AccountType, was causing a deserialization exception when running the integration test "SearchForExcludedLanguage" (#1541) * Update to include PR1541 * add bullets to make release notes easier to read * markup additional code mentions in notes * Fix grammar fields => field
This commit is contained in:
@@ -43,8 +43,8 @@ namespace Octokit.Tests.Reactive
|
||||
var timelineEvents = await client.GetAllForIssue("fake", "repo", 42).ToList();
|
||||
|
||||
connection.Received().Get<List<TimelineEventInfo>>(
|
||||
Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/42/timeline"),
|
||||
Arg.Any<Dictionary<string, string>>(),
|
||||
Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/42/timeline"),
|
||||
Arg.Any<Dictionary<string, string>>(),
|
||||
"application/vnd.github.mockingbird-preview");
|
||||
Assert.Equal(1, timelineEvents.Count);
|
||||
}
|
||||
@@ -66,7 +66,7 @@ namespace Octokit.Tests.Reactive
|
||||
gitHubClient.Connection.Get<List<TimelineEventInfo>>(Args.Uri, Arg.Is<Dictionary<string, string>>(d => d.Count == 1), "application/vnd.github.mockingbird-preview")
|
||||
.Returns(Task.FromResult(response));
|
||||
|
||||
var timelineEvents = await client.GetAllForIssue("fake", "repo", 42, new ApiOptions {PageSize = 30}).ToList();
|
||||
var timelineEvents = await client.GetAllForIssue("fake", "repo", 42, new ApiOptions { PageSize = 30 }).ToList();
|
||||
|
||||
connection.Received().Get<List<TimelineEventInfo>>(
|
||||
Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/42/timeline"),
|
||||
@@ -116,7 +116,7 @@ namespace Octokit.Tests.Reactive
|
||||
githubClient.Connection.Get<List<TimelineEventInfo>>(Args.Uri, Arg.Is<Dictionary<string, string>>(d => d.Count == 1), "application/vnd.github.mockingbird-preview")
|
||||
.Returns(Task.FromResult(response));
|
||||
|
||||
var timelineEvents = await client.GetAllForIssue(1, 42, new ApiOptions {PageSize = 30}).ToList();
|
||||
var timelineEvents = await client.GetAllForIssue(1, 42, new ApiOptions { PageSize = 30 }).ToList();
|
||||
|
||||
connection.Received().Get<List<TimelineEventInfo>>(
|
||||
Arg.Is<Uri>(u => u.ToString() == "repositories/1/issues/42/timeline"),
|
||||
@@ -137,7 +137,6 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
Assert.Throws<ArgumentException>(() => client.GetAllForIssue("", "repo", 42));
|
||||
Assert.Throws<ArgumentException>(() => client.GetAllForIssue("owner", "", 42));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user