Commit Graph

56 Commits

Author SHA1 Message Date
Ryan Gribble
d03f344fb8 Add integration test to assert new fields are returned (but they arent! Have contact GH support as it seems to be an upstream problem) 2016-09-29 09:47:06 +10:00
Martin Scholz
5b9e23c2fb Fix timeout getting multiple repositories (#1411)
* add test

* [WIP]

* put logic for redirects outside of delegating handler

* change send method

* format code

* reorganized http client adapter

* change HttpClientAdapter

* rework http redirect tests - still an issue with accessing the response.RequestMessage.Content property as it is disposed

* remove some unused lines in httpclientadapter

* Reworked redirect implementation to fully clone http request and re-use it later
Now the skipped test from #874 works!
Also had to fix the new ReturnsRenamedRepository test as the ionide repo was renamed again
2016-08-15 06:57:50 +10:00
Ryan Gribble
ef0da2f84d Create RepositoryBranchesClient (#1437)
* Tidy up location of existing EditBranch tests

* Create RepositoryBranchesClient and move the GetBranch GetAllBranches and EditBranch methods to it, obsoleting the old ones

* Add tests for the new RepositoryBranchesClient (keeping old tests for RepositoriesClient around for now)

* Disable obsolete warning on reactive client temporarily

* Create observable repository branches client and move GetBranch, GetAllBranches, EditBranch methods to it, obsoleting the old ones

* Add tests for observable repository branches client, leave old tests in place for now

* Fix projects...

* Fix whitespace
2016-08-08 22:00:37 +10:00
aedampir@gmail.com
71044722e4 added new integration tests 2016-06-17 19:56:35 +07:00
Brendan Forster
bcda94b8d9 fix impacted tests 2016-06-14 15:34:39 +10:00
Brendan Forster
7e8552dae8 Add ApiOptions overloads to I(Observable)RepositoriesClient (#1337) 2016-06-14 10:15:05 +10:00
Ryan Gribble
acbc3fec00 Update impacted tests to use new Context creation and Delete helper methods 2016-06-08 21:52:18 +10:00
Brendan Forster
921511f8d2 correcting a couple of tests (#1331) 2016-05-29 15:33:23 +09:00
Prayank Mathur
db8738b675 Corrected TheUpdateMethod.EnsureArgumentsNotNull() 2016-03-17 16:38:42 +05:30
Anubhav10
3900e1b15d Issue 1002
The test was working. Unskipped it.
2016-03-09 10:02:09 +05:30
Brendan Forster
31d8a40cc2 link to issues in muted tests 2015-12-14 11:32:38 +10:30
Brendan Forster
27988a6ea8 dealwithit.gif 2015-12-14 11:04:04 +10:30
William Barbosa
64326519ee Changes the way the exception is verified 2015-10-08 20:38:18 -03:00
William Barbosa
2777a4a709 Refactors RepositoriesClientTests
Changes the tests in RepositoriesClientTests to use the new using block
syntax
2015-09-22 23:03:34 -03:00
Brendan Forster
72339c81d1 added tests specific to redirects 2015-06-05 15:59:58 +09:30
Brendan Forster
3859ff3627 the test, it passes 2015-05-31 22:12:22 +09:30
Mordechai Zuber
d83a4bbcbc Octokit.Tests.Integration\Clients 2015-05-19 09:54:08 +03:00
Brendan Forster
446fb1b2c0 needs a bit more pagination 2015-04-23 09:17:08 +09:30
Brendan Forster
c344dfe7c2 Revert "removed GetAllPublic overload due to paging issue and parameters clobbering"
This reverts commit 26a8bf0e81.
2015-04-23 09:09:17 +09:30
Brendan Forster
26a8bf0e81 removed GetAllPublic overload due to paging issue and parameters clobbering 2015-04-22 12:20:42 +09:30
Henrik Andersson
68840e317f Making the since parameter required
Adding 💄 `Task.FromResult` to tests
2015-04-07 07:15:14 +10:00
Henrik Andersson
818f730a6c Add tests 2015-03-23 23:23:08 +10:00
Haacked
a94051d6b0 Repository name is required when creating a repo
I was trying to create a repository and I wasn't sure which parameters
were required. Following our philosophy of exposing required parameters
in the constructor, I change the `NewRepository` object to take in a
repository name and to make that property readonly.
2015-03-19 16:25:03 -07:00
Kristian Hellang
def374d253 Nuke GetReadme and GetReadmeHtml 🔥
Closes #750
2015-03-18 21:30:36 +01:00
Brendan Forster
8946b09b04 added a couple of tests 2015-03-06 09:44:50 +09:30
Brendan Forster
181a07b706 Merge pull request #691 from rms81/add-get-all-pub-repos
Fix for issue #686 List all public repositories
2015-03-04 20:45:38 +10:30
rms81
5d7fbe7589 Skip Added 2015-02-25 09:06:40 +00:00
Phil Haack
6b0906e0a8 Merge pull request #714 from octokit/orgs-are-users-too
Added Account.Type support
2015-02-23 17:29:50 -08:00
Brendan Forster
18d7d4d33e this test requires the organization environment variable be set 2015-02-24 10:39:48 +09:30
Brendan Forster
620daa7ea2 introduce Account.Type property to represent whether account is user or organization
- This also changes SearchUsersRequest to use AccountSearchType as this is a slightly
different representation of the user/org role.
 - Added some tests to check existing API usage.
2015-02-24 09:13:22 +09:30
rms81
ee8ed34e9e Add Integration Test for GetAllPublic 2015-02-01 19:05:54 +00:00
Gabriel Weyer
1b1a397a09 RepositoryExistsException has now two constructors (one for account and one for organization) 2015-01-08 17:09:08 +11:00
Brendan Forster
28e8372922 extract helper method for setting up GitHubClient 2015-01-04 10:03:45 +09:30
Phil Haack
993c851766 Merge pull request #656 from octokit/support-for-paid-account-tests
support for paid account test scenarios
2015-01-03 09:26:30 -08:00
Haacked
f3514c0287 Change tests to use non-obsolete methods 2015-01-02 01:14:21 -08:00
Brendan Forster
8c0063f063 and update last test 2015-01-02 16:15:53 +09:30
Brendan Forster
c547d461cc migrate this test over to the new plan, make it more robust 2015-01-02 16:12:14 +09:30
Brendan Forster
70c22f98ff remove this repository cleanup code 2015-01-02 16:04:32 +09:30
Brendan Forster
8f0d55bc03 💄 readability 2015-01-02 16:04:32 +09:30
Brendan Forster
e549e81c44 enable this test again, and clean up the jank 2015-01-02 16:04:30 +09:30
Brendan Forster
6a35ea8f18 some more slow tests 2014-12-22 21:28:16 +09:30
Gabriel Weyer
e746c3cf02 Fixed CreatesANewPublicRepository for an organization 2014-12-15 20:56:00 +11:00
Haacked
1b4d02b142 Ensure no async void methods
Added self tests to find async void methods. It found some cases where
we passed an async lambda to a method that did not accept Action<Task>
or Func<Task>. I fixed those tests.
2014-11-07 16:05:53 -08:00
Brendan Forster
2e225dfcc0 catch the failure when disposing of repositories 2014-09-29 21:27:45 +10:00
Brendan Forster
36b9397484 breaking change - HtmlUrl does not acknowledge custom Accepts. use the proper API 2014-09-29 20:43:00 +10:00
Brendan Forster
17ee06b7aa muting some failing CI tests 2014-07-10 16:44:42 +09:30
Brendan Forster
73db53de60 introduce DefaultBranch property 2014-07-08 09:44:55 +09:30
Paul Betts
a38df58035 Fix up test class names 2014-04-30 21:34:07 -07:00
Brendan Forster
5b9e4c1149 this field is case-sensitive 2014-03-06 11:16:17 +11:00
Tim Sneed
3909498437 Internalize ProductHeaderValue
What Haacked, PaulBetts, and Shiftkey suggested
2014-02-28 06:33:44 -06:00