Commit Graph

14 Commits

Author SHA1 Message Date
Brendan Forster
7c31109099 bring tests from unrelated PR into this project (#2013) 2019-09-22 18:56:37 -03:00
Ryan Gribble
e93646c9f1 Implement Nested Teams preview API changes (#1682)
* Add new AcceptsHeader
add Parent field to Team
add ParentId field to NewTeam and UpdateTeam
update Create Edit and Delete Team methods to use preview header

* Implement new API call GetAllChildTeams()

* Implement GetAllChildTeams for ObservableClient

* add integration test for observable client

* Add pagination tests for GetAllChildTeams

* Add NestedTeams preview header to all the API calls that use it

* Update tests for accepts header

* Add accepts header to observable client calls

* Fix DELETE implementation to use correct overload

* Fix tests - parent and child teams must be visibility Closed whereas the default if not specified is Private

* make sure all tests are flagged as [OrganizationTest]

* Make sure Update tests change the parent of the team

* Update new methods with NesterTeams preview API header and adjust tests
2017-10-04 16:21:42 +10:00
Ryan Gribble
da0c7a5785 Implement Team Membership changes (#1670)
* Fixup TeamContext helper name

* Implement overload for GetAllMembers to take request parameter

* Update tests

* Implement Obersvable client changes

* Observable tests

* Implement AddOrEditMembership function returning a new response model, and obsolete the old AddMembership function returning an enum

* Implement GetMembershipDetails function returning new TeamMembershipDetails response model, and obsolete the old GetMembership function returning an enum

* Clarify that an exception is thrown when not a member

* Add integration tests for AddOrEditMembership and GetMembershipDetails

* fixup exception test for observable client

* Update wording of obsolete message
2017-09-26 21:37:43 +10:00
Ryan Gribble
3c818934b8 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
2017-01-17 18:56:55 +10:00
Ryan Gribble
046c5a36cc Rename client.User.Keys to client.User.GitSshKey
Mark client.User.Keys as [Obsolete]
2016-06-09 06:44:28 +10:00
Ryan Gribble
3977765796 Tweak GpgKeyContext inline with recent change made to other helper contexts 2016-06-09 00:03:07 +10:00
Henrik Andersson
77b04efbdd Fixes as per PR review comments 2016-06-08 22:55:41 +10:00
Henrik Andersson
df9ffd9b0d Add unit and integration tests for ObservableUserGpgKeysClient 2016-06-08 22:55:41 +10:00
Ryan Gribble
7fa1faa5c4 integration helper context classes now work against github.com or github enterprise, by using the IConnection used to create the context, to delete it in Dispose()
update CreateContext extension methods to pass in the IConnection
2016-06-08 21:52:16 +10:00
maddin2016
71f992a478 rename EnterpriseTeamContext to TeamContext 2016-06-08 10:15:41 +02:00
Alexander Efremov
cdc708450f Modifiers declaration order was adjusted (#1276) 2016-04-21 16:21:33 +10:00
Ryan Gribble
8c8c637065 Add Reactive implementation and unit/integration tests 2016-02-23 06:58:09 +10:00
Ryan Gribble
bd10379846 Add Reactive implementation and unit tests 2016-02-22 21:04:15 +10:00
Ryan Gribble
a3b2a2fbda Implement Reactive Enterprise Search Indexing Client and unit/integration tests 2016-02-11 15:07:13 +10:00