Skip to content

Commit a577214

Browse files
KN4CK3Rlunnywxiaoguangzeripathtechknowlogick
authored
Add some api integration tests (#18872)
depends on #18871 Added some api integration tests to help testing of #18798. Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 18622a0 commit a577214

17 files changed

+2225
-289
lines changed

models/fixtures/attachment.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,104 +3,140 @@
33
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11
44
repo_id: 1
55
issue_id: 1
6+
release_id: 0
7+
uploader_id: 0
68
comment_id: 0
79
name: attach1
810
download_count: 0
11+
size: 0
912
created_unix: 946684800
1013

1114
-
1215
id: 2
1316
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12
1417
repo_id: 2
1518
issue_id: 4
19+
release_id: 0
20+
uploader_id: 0
1621
comment_id: 0
1722
name: attach2
1823
download_count: 1
24+
size: 0
1925
created_unix: 946684800
2026

2127
-
2228
id: 3
2329
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a13
2430
repo_id: 1
2531
issue_id: 2
32+
release_id: 0
33+
uploader_id: 0
2634
comment_id: 1
2735
name: attach1
2836
download_count: 0
37+
size: 0
2938
created_unix: 946684800
3039

3140
-
3241
id: 4
3342
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a14
3443
repo_id: 1
3544
issue_id: 3
45+
release_id: 0
46+
uploader_id: 0
3647
comment_id: 1
3748
name: attach2
3849
download_count: 1
50+
size: 0
3951
created_unix: 946684800
4052

4153
-
4254
id: 5
4355
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15
4456
repo_id: 2
4557
issue_id: 4
58+
release_id: 0
59+
uploader_id: 0
4660
comment_id: 0
4761
name: attach1
4862
download_count: 0
63+
size: 0
4964
created_unix: 946684800
5065

5166
-
5267
id: 6
5368
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a16
5469
repo_id: 1
5570
issue_id: 5
71+
release_id: 0
72+
uploader_id: 0
5673
comment_id: 2
5774
name: attach1
5875
download_count: 0
76+
size: 0
5977
created_unix: 946684800
6078

6179
-
6280
id: 7
6381
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a17
6482
repo_id: 1
6583
issue_id: 5
84+
release_id: 0
85+
uploader_id: 0
6686
comment_id: 2
6787
name: attach1
6888
download_count: 0
89+
size: 0
6990
created_unix: 946684800
7091

7192
-
7293
id: 8
7394
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a18
7495
repo_id: 3
7596
issue_id: 6
97+
release_id: 0
98+
uploader_id: 0
7699
comment_id: 0
77100
name: attach1
78101
download_count: 0
102+
size: 0
79103
created_unix: 946684800
80104

81105
-
82106
id: 9
83107
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a19
84108
repo_id: 1
109+
issue_id: 0
85110
release_id: 1
111+
uploader_id: 0
112+
comment_id: 0
86113
name: attach1
87114
download_count: 0
115+
size: 0
88116
created_unix: 946684800
89117

90118
-
91119
id: 10
92120
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a20
93121
repo_id: 0 # TestGetAttachment/NotLinked
122+
issue_id: 0
123+
release_id: 0
94124
uploader_id: 8
125+
comment_id: 0
95126
name: attach1
96127
download_count: 0
128+
size: 0
97129
created_unix: 946684800
98130

99131
-
100132
id: 11
101133
uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a21
102134
repo_id: 40
135+
issue_id: 0
103136
release_id: 2
137+
uploader_id: 0
138+
comment_id: 0
104139
name: attach1
105140
download_count: 0
141+
size: 0
106142
created_unix: 946684800

0 commit comments

Comments
 (0)