Commit Graph

41 Commits

Author SHA1 Message Date
Tom Longhurst
cd1835326b Fix xUnit Warnings (#2906)
* Fix xUnit Warnings

* Fix

* Fix formatting in AsyncPaginationExtensionGenerator.cs

---------

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
2024-04-15 13:19:26 -07:00
dependabot[bot]
c895ac8efb build(deps): bump xunit from 2.6.1 to 2.6.3 (#2834)
* build(deps): bump xunit from 2.6.1 to 2.6.3

Bumps [xunit](https://github.com/xunit/xunit) from 2.6.1 to 2.6.3.
- [Commits](https://github.com/xunit/xunit/compare/2.6.1...2.6.3)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add required async/awaits

* public async void --> public async Task

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
2023-12-18 13:07:52 -08:00
Jasper Arildslund
729f261ecb [feat]: Support make_latest for create and update release endpoints 2023-08-03 16:26:58 -05:00
Chris Simpson
5fe3ea82f0 tests: Updates and fixes for tests, changing master to main and adding flaky tests marker (#2511) 2022-07-25 10:36:09 -05:00
Cédric Luthi
3918685be3 Mark ReleasesClientTests.TheCreateReleasesMethod tests as integration (#2152)
They were using [Fact] instead of [IntegrationTest] so they would run and fail if no credentials are supplied.
2020-03-13 09:26:18 -03:00
Brendan Forster
45bc5eced7 autofix tests based on feedback from xunit analyzers (#1997) 2019-09-16 19:46:40 -03:00
tasadar2
75196b1a8a Added get release by tag endpoint (#1793)
* Added get release by tag endpoint

* Added integration tests for get release by tag overload

* tidy up integration tests and add reactive integration tests

* Implement repositoryId based method

* Implement repositoryId based method in Reactive client
2018-04-16 20:44:33 +10:00
Ryan Gribble
5e89232521 Release v0.25 - She'll be Comin' Round the Mountain (#1656)
* Run `build -Target FormatCode` to fixup whitespace etc

* Fix delete release asset integration test

* Fix repository fork test

* Fix pagination test for PR Review Request

* First cut of release notes

* update release notes

* Update release notes

* include links to contributors

* Add breaking changes/advisories section

* Tidy up formatting

* Tidy up wording
2017-08-23 21:27:15 +10:00
Ryan Gribble
db74c3b4ad Fix async tests (#1631)
* Fix up Assert.ThrowsAsync tests to actually await the call

* ... and it even picked up a missing null check... pay day!
2017-07-23 09:03:10 +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
Andreia Gaita
9e958bf998 Make Repository Id a long, it's going to grow... 2016-09-15 02:15:11 +02:00
aedampir@gmail.com
e7632ea7ec fixed some integrations tests stuff. 2016-06-28 04:56:43 +07:00
aedampir@gmail.com
7aca20ee26 fixed integration tests 2016-06-25 23:19:24 +07:00
Alexander Efremov
9f5228fd8a added new integration tests 2016-06-13 00:25:33 +07:00
aedampir@gmail.com
510d17728d added integration tests 2016-05-20 19:41:18 +07:00
aedampir@gmail.com
d0c8e82453 Red Tests were fixed
Unused 'using' directive were removed.
2016-04-18 12:46:13 +07:00
aedampir@gmail.com
6c7e70b60f ReleasesClientTests fixes 2016-03-29 17:43:47 +07:00
Brendan Forster
4da9f3e8f7 wrote some tests to verify the behaviour of the pagination 2016-02-14 17:22:39 +11:00
Mordechai Zuber
053326ac1d Add integration tests for GetLatestRelease 2016-02-03 23:18:38 +02:00
Robert Pethick
7e5417effb More tests update 2016-01-04 17:17:29 +00:00
Mordechai Zuber
44304ca70b use string per recommended style 2015-12-16 21:23:36 +02:00
Gabriel Weyer
56ef5c1f57 Added TarballUrl, ZipballUrl and Assets to Release model, added Uploader to ReleaseAsset model 2015-12-16 15:26:11 +11:00
Gabriel Weyer
74b1144af5 Added Author property when getting Release from API 2015-12-15 12:09:33 +11:00
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Naveen
1886629e6f Fixes for Downloading ReleaseAsset zip File #854
This commit  addressed the `BuildResponse`  wasn't handling
response `content-type` `application/octet-stream` for binary items.
2015-10-16 14:29:43 -04:00
William Barbosa
e6ccb70fc0 Refactors the remaining test classes 2015-09-28 23:45:53 -03:00
Henrik Andersson
189ae42c3a Update tests 2015-03-24 00:12:54 +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
Micah
c3a67ae777 Creates constructors for all Models.Response.
Resolves https://github.com/octokit/octokit.net/issues/677.

Removes obscolete properties (gravatar).
Makes Models.Response properties all be protected (most were already).
2015-01-24 16:07:03 -08:00
Brendan Forster
28e8372922 extract helper method for setting up GitHubClient 2015-01-04 10:03:45 +09:30
erangel
a5e554669f Add Assert Not Null for BrowserDonlaodUrl 2014-12-23 14:17:53 -08:00
Dillon Buchanan
b18b47acde All models used in PATCH verbs should have nullable fields 2014-10-12 08:37:11 -03:00
Brendan Forster
c25b6f0210 added test to ensure you can change the targetcommitish field 2014-07-11 10:10:43 +09:30
Brendan Forster
69279caaf4 💄 test code 2014-07-11 09:54:55 +09:30
Brendan Forster
d5b6d45562 just a bad merge, nothing to see here 2014-07-08 08:30:00 +09:30
Brendan Forster
e5a57dfc25 added a bunch of tests 2014-07-07 14:48:13 +09:30
Brendan Forster
2ed5c49b69 dropped 'Release' suffix from some APIs 2014-07-07 12:32:15 +09:30
Brendan Forster
ef22c34227 added some tests around uploading assets 2014-05-05 08:33:50 +08:00
Tim Sneed
3909498437 Internalize ProductHeaderValue
What Haacked, PaulBetts, and Shiftkey suggested
2014-02-28 06:33:44 -06:00
Brendan Forster
446ea0e89a stripped out some unnecessary namespaces for tests 2013-12-29 10:17:51 +10:30
Brendan Forster
6cba426813 let's make the folder structure consistent 2013-11-27 10:17:16 -08:00