@@ -45,6 +45,13 @@ final class PackageCollectionGenerateTests: XCTestCase {
45
45
let repoThreeArchivePath = try AbsolutePath ( validating: #file) . parentDirectory. appending ( components: " Inputs " , " TestRepoThree.tgz " )
46
46
try systemQuietly ( [ " tar " , " -x " , " -v " , " -C " , tmpDir. pathString, " -f " , repoThreeArchivePath. pathString] )
47
47
48
+ let signer = PackageCollectionModel . V1. Signer (
49
+ type: " ADP " ,
50
+ commonName: " J. Appleseed " ,
51
+ organizationalUnitName: " A1 " ,
52
+ organizationName: " Appleseed Inc. "
53
+ )
54
+
48
55
// Prepare input.json
49
56
let input = PackageCollectionGeneratorInput (
50
57
name: " Test Package Collection " ,
@@ -58,7 +65,8 @@ final class PackageCollectionGenerateTests: XCTestCase {
58
65
PackageCollectionGeneratorInput . Package (
59
66
url: URL ( string: " https://package-collection-tests.com/repos/TestRepoTwo.git " ) !,
60
67
identity: " repos.two " ,
61
- summary: " Package Foo & Bar "
68
+ summary: " Package Foo & Bar " ,
69
+ signer: signer
62
70
) ,
63
71
PackageCollectionGeneratorInput . Package (
64
72
url: URL ( string: " https://package-collection-tests.com/repos/TestRepoThree.git " ) !,
@@ -93,6 +101,8 @@ final class PackageCollectionGenerateTests: XCTestCase {
93
101
defaultToolsVersion: " 5.2 " ,
94
102
verifiedCompatibility: nil ,
95
103
license: nil ,
104
+ author: nil ,
105
+ signer: nil ,
96
106
createdAt: nil
97
107
) ,
98
108
] ,
@@ -126,6 +136,8 @@ final class PackageCollectionGenerateTests: XCTestCase {
126
136
defaultToolsVersion: " 5.2 " ,
127
137
verifiedCompatibility: nil ,
128
138
license: nil ,
139
+ author: nil ,
140
+ signer: signer,
129
141
createdAt: nil
130
142
) ,
131
143
Model . Collection. Package. Version (
@@ -143,6 +155,8 @@ final class PackageCollectionGenerateTests: XCTestCase {
143
155
defaultToolsVersion: " 5.2 " ,
144
156
verifiedCompatibility: nil ,
145
157
license: nil ,
158
+ author: nil ,
159
+ signer: signer,
146
160
createdAt: nil
147
161
) ,
148
162
] ,
@@ -169,6 +183,8 @@ final class PackageCollectionGenerateTests: XCTestCase {
169
183
defaultToolsVersion: " 5.2 " ,
170
184
verifiedCompatibility: nil ,
171
185
license: nil ,
186
+ author: nil ,
187
+ signer: nil ,
172
188
createdAt: nil
173
189
) ,
174
190
] ,
@@ -280,6 +296,8 @@ final class PackageCollectionGenerateTests: XCTestCase {
280
296
defaultToolsVersion: " 5.2 " ,
281
297
verifiedCompatibility: nil ,
282
298
license: nil ,
299
+ author: nil ,
300
+ signer: nil ,
283
301
createdAt: nil
284
302
) ,
285
303
] ,
@@ -313,6 +331,8 @@ final class PackageCollectionGenerateTests: XCTestCase {
313
331
defaultToolsVersion: " 5.2 " ,
314
332
verifiedCompatibility: nil ,
315
333
license: nil ,
334
+ author: nil ,
335
+ signer: nil ,
316
336
createdAt: nil
317
337
) ,
318
338
] ,
0 commit comments