Better support for GitHub Enterprise integration tests

- Remove EnterpriseUrl in integration test Helper class, but leave ability to override custom URL (to allow specific use case of targetting regular integration tests at a custom URL)
- Move GitHub Enterprise explicit support to a new integration helper class using new OCTOKIT_GHE_ environment variables for GHE
- Change existing GitHub Enterprise integration tests and EnterpriseTestAttribute to use the new EnterpriseHelper methods
- Enhance configure-intergration-tests.ps1 script to cater for environment variable changes
This commit is contained in:
Ryan Gribble
2016-01-27 00:12:22 +10:00
parent 5f2cc4cb4e
commit 535709c368
7 changed files with 198 additions and 22 deletions
@@ -11,7 +11,7 @@ namespace Octokit.Tests.Integration
public ObservableEnterpriseAdminStatsClientTests()
{
_github = new ObservableGitHubClient(Helper.GetAuthenticatedClient());
_github = new ObservableGitHubClient(EnterpriseHelper.GetAuthenticatedClient());
}
[GitHubEnterpriseTest]