mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
tweaking integration tests
This commit is contained in:
@@ -342,7 +342,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryId, _fixture.ExpectedHooks[1].Id, editRepositoryHook);
|
||||
|
||||
var expectedConfig = new Dictionary<string, string> { { "content_type", "json" }, { "url", "http://test.com/example" } };
|
||||
Assert.Equal(new[] { "deployment", "pull_request" }.ToList(), actualHook.Events.ToList());
|
||||
Assert.Equal(new[] { "push", "pull_request" }.ToList(), actualHook.Events.ToList());
|
||||
Assert.Equal(expectedConfig.Keys, actualHook.Config.Keys);
|
||||
Assert.Equal(expectedConfig.Values, actualHook.Config.Values);
|
||||
}
|
||||
@@ -378,7 +378,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryId, _fixture.ExpectedHooks[3].Id, editRepositoryHook);
|
||||
|
||||
var expectedConfig = new Dictionary<string, string> { { "project", "GEZDGORQFY2TCNZRGY2TSMBVGUYDK" } };
|
||||
Assert.Equal(new[] { "deployment", "pull_request" }.ToList(), actualHook.Events.ToList());
|
||||
Assert.Equal(new[] { "push", "pull_request" }.ToList(), actualHook.Events.ToList());
|
||||
Assert.Equal(expectedConfig.Keys, actualHook.Config.Keys);
|
||||
Assert.Equal(expectedConfig.Values, actualHook.Config.Values);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Octokit.Tests.Integration.fixtures
|
||||
CreateHook(_github, _repository, "awsopsworks", "push"),
|
||||
CreateHook(_github, _repository, "activecollab", "push"),
|
||||
CreateHook(_github, _repository, "acunote", "push"),
|
||||
CreateHook(_github, _repository, "agilebench", "push")
|
||||
CreateHook(_github, _repository, "agilezen", "push")
|
||||
};
|
||||
_hook = _hooks[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user