@@ -170,7 +170,8 @@ func TestGPGGit(t *testing.T) {
170
170
171
171
t .Run ("AlwaysSign-Initial-CRUD-Never" , func (t * testing.T ) {
172
172
defer PrintCurrentTest (t )()
173
- testCtx := NewAPITestContext (t , username , "initial-always" )
173
+ testCtx := NewAPITestContext (t , username , "initial-always-never" )
174
+ t .Run ("CreateRepository" , doAPICreateRepository (testCtx , false ))
174
175
t .Run ("CreateCRUDFile-Never" , crudActionCreateFile (
175
176
t , testCtx , user , "master" , "never" , "unsigned-never.txt" , func (t * testing.T , response api.FileResponse ) {
176
177
assert .False (t , response .Verification .Verified )
@@ -180,10 +181,10 @@ func TestGPGGit(t *testing.T) {
180
181
setting .Repository .Signing .CRUDActions = []string {"parentsigned" }
181
182
onGiteaRun (t , func (t * testing.T , u * url.URL ) {
182
183
u .Path = baseAPITestContext .GitPath ()
183
-
184
184
t .Run ("AlwaysSign-Initial-CRUD-ParentSigned-On-Always" , func (t * testing.T ) {
185
185
defer PrintCurrentTest (t )()
186
- testCtx := NewAPITestContext (t , username , "initial-always" )
186
+ testCtx := NewAPITestContext (t , username , "initial-always-parent" )
187
+ t .Run ("CreateRepository" , doAPICreateRepository (testCtx , false ))
187
188
t .Run ("CreateCRUDFile-ParentSigned" , crudActionCreateFile (
188
189
t , testCtx , user , "master" , "parentsigned" , "signed-parent.txt" , func (t * testing.T , response api.FileResponse ) {
189
190
assert .True (t , response .Verification .Verified )
@@ -197,7 +198,8 @@ func TestGPGGit(t *testing.T) {
197
198
198
199
t .Run ("AlwaysSign-Initial-CRUD-Always" , func (t * testing.T ) {
199
200
defer PrintCurrentTest (t )()
200
- testCtx := NewAPITestContext (t , username , "initial-always" )
201
+ testCtx := NewAPITestContext (t , username , "initial-always-always" )
202
+ t .Run ("CreateRepository" , doAPICreateRepository (testCtx , false ))
201
203
t .Run ("CreateCRUDFile-Always" , crudActionCreateFile (
202
204
t , testCtx , user , "master" , "always" , "signed-always.txt" , func (t * testing.T , response api.FileResponse ) {
203
205
assert .True (t , response .Verification .Verified )
0 commit comments