-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.20 - Probably Australian #1377
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,7 +196,7 @@ public async Task EditHookWithNoNewConfigRetainsTheOldConfig() | |
var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryOwner, _fixture.RepositoryName, _fixture.ExpectedHook.Id, editRepositoryHook); | ||
|
||
var expectedConfig = new Dictionary<string, string> { { "content_type", "json" }, { "url", "http://test.com/example" } }; | ||
Assert.Equal(new[] { "commit_comment", "pull_request" }.ToList(), actualHook.Events.ToList()); | ||
Assert.Equal(new[] { "deployment", "pull_request" }.ToList(), actualHook.Events.ToList()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property is unrelated to the test itself, so cleaning it up... |
||
Assert.Equal(expectedConfig.Keys, actualHook.Config.Keys); | ||
Assert.Equal(expectedConfig.Values, actualHook.Config.Values); | ||
} | ||
|
@@ -214,7 +214,7 @@ public async Task EditHookWithNewInformation() | |
var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryOwner, _fixture.RepositoryName, _fixture.ExpectedHook.Id, editRepositoryHook); | ||
|
||
var expectedConfig = new Dictionary<string, string> { { "project", "GEZDGORQFY2TCNZRGY2TSMBVGUYDK" } }; | ||
Assert.Equal(new[] { "commit_comment", "pull_request" }.ToList(), actualHook.Events.ToList()); | ||
Assert.Equal(new[] { "deployment", "pull_request" }.ToList(), actualHook.Events.ToList()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⬆️ |
||
Assert.Equal(expectedConfig.Keys, actualHook.Config.Keys); | ||
Assert.Equal(expectedConfig.Values, actualHook.Config.Values); | ||
} | ||
|
@@ -276,7 +276,7 @@ public async Task DeleteCreatedWebHook() | |
await github.Repository.Hooks.Delete(_fixture.RepositoryOwner, _fixture.RepositoryName, _fixture.ExpectedHook.Id); | ||
var hooks = await github.Repository.Hooks.GetAll(_fixture.RepositoryOwner, _fixture.RepositoryName); | ||
|
||
Assert.Empty(hooks); | ||
Assert.Equal(4, hooks.Count); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Each test creates the same five hooks, so we need to verify the count of the list to be |
||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,10 +169,18 @@ public TheGetAllIssuesForRepositoryMethod() | |
{ | ||
_eventsClient = new ObservableEventsClient(Helper.GetAuthenticatedClient()); | ||
} | ||
|
||
[IntegrationTest] | ||
public async Task ReturnsRepositoryEvents() | ||
{ | ||
var repositoryEvents = await _eventsClient.GetAllIssuesForRepository(owner, name).ToList(); | ||
var options = new ApiOptions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
{ | ||
PageCount = 1, | ||
StartPage = 1, | ||
PageSize = 5 | ||
}; | ||
|
||
var repositoryEvents = await _eventsClient.GetAllIssuesForRepository(owner, name, options).ToList(); | ||
|
||
Assert.NotEmpty(repositoryEvents); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch was removed on the repository 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💩 sorry! 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alfhenrik all good, once I realised what was happening it was an easy fix 😀