Skip to content

Commit b3d7962

Browse files
committed
Fix lifecycle test to not fail during release
1 parent 7e7ae79 commit b3d7962

File tree

25 files changed

+221
-221
lines changed

25 files changed

+221
-221
lines changed

src/test/java/org/kohsuke/github/LifecycleTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ private void deleteAsset(GHRelease release, GHAsset asset) throws IOException {
5050
}
5151

5252
private GHAsset uploadAsset(GHRelease release) throws IOException {
53-
GHAsset asset = release.uploadAsset(new File("pom.xml"), "application/text");
53+
GHAsset asset = release.uploadAsset(new File("LICENSE.txt"), "application/text");
5454
assertNotNull(asset);
5555
List<GHAsset> assets = release.getAssets();
5656
assertEquals(1, assets.size());
57-
assertEquals("pom.xml", assets.get(0).getName());
57+
assertEquals("LICENSE.txt", assets.get(0).getName());
5858

5959
return asset;
6060
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"id": 223286345,
3-
"node_id": "MDEwOlJlcG9zaXRvcnkyMjMyODYzNDU=",
2+
"id": 224320760,
3+
"node_id": "MDEwOlJlcG9zaXRvcnkyMjQzMjA3NjA=",
44
"name": "temp-testCreateRepository",
55
"full_name": "github-api-test-org/temp-testCreateRepository",
66
"private": false,
@@ -64,9 +64,9 @@
6464
"labels_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/labels{/name}",
6565
"releases_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases{/id}",
6666
"deployments_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/deployments",
67-
"created_at": "2019-11-21T23:50:49Z",
68-
"updated_at": "2019-11-21T23:50:53Z",
69-
"pushed_at": "2019-11-21T23:50:51Z",
67+
"created_at": "2019-11-27T01:45:21Z",
68+
"updated_at": "2019-11-27T01:45:25Z",
69+
"pushed_at": "2019-11-27T01:45:23Z",
7070
"git_url": "git://github.com/github-api-test-org/temp-testCreateRepository.git",
7171
"ssh_url": "[email protected]:github-api-test-org/temp-testCreateRepository.git",
7272
"clone_url": "https://github.com/github-api-test-org/temp-testCreateRepository.git",
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"comments_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/1/comments",
66
"events_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/1/events",
77
"html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/issues/1",
8-
"id": 526906115,
9-
"node_id": "MDU6SXNzdWU1MjY5MDYxMTU=",
8+
"id": 529065389,
9+
"node_id": "MDU6SXNzdWU1MjkwNjUzODk=",
1010
"number": 1,
1111
"title": "Test Issue",
1212
"user": {
@@ -31,8 +31,8 @@
3131
},
3232
"labels": [
3333
{
34-
"id": 1690995162,
35-
"node_id": "MDU6TGFiZWwxNjkwOTk1MTYy",
34+
"id": 1700362801,
35+
"node_id": "MDU6TGFiZWwxNzAwMzYyODAx",
3636
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/labels/bug",
3737
"name": "bug",
3838
"color": "d73a4a",
@@ -88,8 +88,8 @@
8888
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1",
8989
"html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/milestone/1",
9090
"labels_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1/labels",
91-
"id": 4868306,
92-
"node_id": "MDk6TWlsZXN0b25lNDg2ODMwNg==",
91+
"id": 4883069,
92+
"node_id": "MDk6TWlsZXN0b25lNDg4MzA2OQ==",
9393
"number": 1,
9494
"title": "Initial Release",
9595
"description": "first one",
@@ -116,14 +116,14 @@
116116
"open_issues": 1,
117117
"closed_issues": 0,
118118
"state": "open",
119-
"created_at": "2019-11-21T23:50:55Z",
120-
"updated_at": "2019-11-21T23:50:56Z",
119+
"created_at": "2019-11-27T01:45:27Z",
120+
"updated_at": "2019-11-27T01:45:28Z",
121121
"due_on": null,
122122
"closed_at": null
123123
},
124124
"comments": 0,
125-
"created_at": "2019-11-21T23:50:56Z",
126-
"updated_at": "2019-11-21T23:50:57Z",
125+
"created_at": "2019-11-27T01:45:27Z",
126+
"updated_at": "2019-11-27T01:45:28Z",
127127
"closed_at": null,
128128
"author_association": "MEMBER",
129129
"body": "issue body just for grins",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1",
33
"html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/milestone/1",
44
"labels_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1/labels",
5-
"id": 4868306,
6-
"node_id": "MDk6TWlsZXN0b25lNDg2ODMwNg==",
5+
"id": 4883069,
6+
"node_id": "MDk6TWlsZXN0b25lNDg4MzA2OQ==",
77
"number": 1,
88
"title": "Initial Release",
99
"description": "first one",
@@ -30,8 +30,8 @@
3030
"open_issues": 0,
3131
"closed_issues": 0,
3232
"state": "open",
33-
"created_at": "2019-11-21T23:50:55Z",
34-
"updated_at": "2019-11-21T23:50:55Z",
33+
"created_at": "2019-11-27T01:45:27Z",
34+
"updated_at": "2019-11-27T01:45:27Z",
3535
"due_on": null,
3636
"closed_at": null
3737
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831",
3-
"assets_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets",
4-
"upload_url": "https://uploads.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets{?name,label}",
2+
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21786739",
3+
"assets_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21786739/assets",
4+
"upload_url": "https://uploads.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21786739/assets{?name,label}",
55
"html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/tag/release_tag",
6-
"id": 21671831,
7-
"node_id": "MDc6UmVsZWFzZTIxNjcxODMx",
6+
"id": 21786739,
7+
"node_id": "MDc6UmVsZWFzZTIxNzg2NzM5",
88
"tag_name": "release_tag",
99
"target_commitish": "master",
1010
"name": "Test Release",
@@ -30,8 +30,8 @@
3030
"site_admin": false
3131
},
3232
"prerelease": false,
33-
"created_at": "2019-11-21T23:50:50Z",
34-
"published_at": "2019-11-21T23:50:58Z",
33+
"created_at": "2019-11-27T01:45:22Z",
34+
"published_at": "2019-11-27T01:45:29Z",
3535
"assets": [],
3636
"tarball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/tarball/release_tag",
3737
"zipball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/zipball/release_tag",
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[
22
{
3-
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831",
4-
"assets_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets",
5-
"upload_url": "https://uploads.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets{?name,label}",
3+
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21786739",
4+
"assets_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21786739/assets",
5+
"upload_url": "https://uploads.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21786739/assets{?name,label}",
66
"html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/tag/release_tag",
7-
"id": 21671831,
8-
"node_id": "MDc6UmVsZWFzZTIxNjcxODMx",
7+
"id": 21786739,
8+
"node_id": "MDc6UmVsZWFzZTIxNzg2NzM5",
99
"tag_name": "release_tag",
1010
"target_commitish": "master",
1111
"name": "Test Release",
@@ -31,8 +31,8 @@
3131
"site_admin": false
3232
},
3333
"prerelease": false,
34-
"created_at": "2019-11-21T23:50:50Z",
35-
"published_at": "2019-11-21T23:50:58Z",
34+
"created_at": "2019-11-27T01:45:22Z",
35+
"published_at": "2019-11-27T01:45:29Z",
3636
"assets": [],
3737
"tarball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/tarball/release_tag",
3838
"zipball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/zipball/release_tag",
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[
22
{
3-
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363",
4-
"id": 16322363,
5-
"node_id": "MDEyOlJlbGVhc2VBc3NldDE2MzIyMzYz",
6-
"name": "pom.xml",
3+
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16422841",
4+
"id": 16422841,
5+
"node_id": "MDEyOlJlbGVhc2VBc3NldDE2NDIyODQx",
6+
"name": "LICENSE.txt",
77
"label": "",
88
"uploader": {
99
"login": "bitwiseman",
@@ -27,10 +27,10 @@
2727
},
2828
"content_type": "application/text",
2929
"state": "uploaded",
30-
"size": 19154,
30+
"size": 1104,
3131
"download_count": 0,
32-
"created_at": "2019-11-21T23:50:58Z",
33-
"updated_at": "2019-11-21T23:50:58Z",
34-
"browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/pom.xml"
32+
"created_at": "2019-11-27T01:45:30Z",
33+
"updated_at": "2019-11-27T01:45:30Z",
34+
"browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/LICENSE.txt"
3535
}
3636
]
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[
22
{
3-
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363",
4-
"id": 16322363,
5-
"node_id": "MDEyOlJlbGVhc2VBc3NldDE2MzIyMzYz",
6-
"name": "pom.xml",
3+
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16422841",
4+
"id": 16422841,
5+
"node_id": "MDEyOlJlbGVhc2VBc3NldDE2NDIyODQx",
6+
"name": "LICENSE.txt",
77
"label": "test label",
88
"uploader": {
99
"login": "bitwiseman",
@@ -27,10 +27,10 @@
2727
},
2828
"content_type": "application/text",
2929
"state": "uploaded",
30-
"size": 19154,
30+
"size": 1104,
3131
"download_count": 0,
32-
"created_at": "2019-11-21T23:50:58Z",
33-
"updated_at": "2019-11-21T23:50:59Z",
34-
"browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/pom.xml"
32+
"created_at": "2019-11-27T01:45:30Z",
33+
"updated_at": "2019-11-27T01:45:30Z",
34+
"browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/LICENSE.txt"
3535
}
3636
]
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363",
3-
"id": 16322363,
4-
"node_id": "MDEyOlJlbGVhc2VBc3NldDE2MzIyMzYz",
5-
"name": "pom.xml",
2+
"url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16422841",
3+
"id": 16422841,
4+
"node_id": "MDEyOlJlbGVhc2VBc3NldDE2NDIyODQx",
5+
"name": "LICENSE.txt",
66
"label": "test label",
77
"uploader": {
88
"login": "bitwiseman",
@@ -26,9 +26,9 @@
2626
},
2727
"content_type": "application/text",
2828
"state": "uploaded",
29-
"size": 19154,
29+
"size": 1104,
3030
"download_count": 0,
31-
"created_at": "2019-11-21T23:50:58Z",
32-
"updated_at": "2019-11-21T23:50:59Z",
33-
"browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/pom.xml"
31+
"created_at": "2019-11-27T01:45:30Z",
32+
"updated_at": "2019-11-27T01:45:30Z",
33+
"browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/LICENSE.txt"
3434
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
"bio": "https://twitter.com/bitwiseman",
2727
"public_repos": 176,
2828
"public_gists": 7,
29-
"followers": 140,
29+
"followers": 141,
3030
"following": 9,
3131
"created_at": "2012-07-11T20:38:33Z",
32-
"updated_at": "2019-09-24T19:32:29Z",
32+
"updated_at": "2019-11-26T22:02:50Z",
3333
"private_gists": 7,
3434
"total_private_repos": 10,
3535
"owned_private_repos": 0,

0 commit comments

Comments
 (0)