@@ -38,6 +38,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
38
38
CreatedAt : "sometime" ,
39
39
ModifedAt : "another-time" ,
40
40
CPE : "cpe-notation" ,
41
+ PURL : "some-purl" ,
41
42
Licenses : []string {
42
43
"fancy-license" ,
43
44
"fancy-license-2" ,
@@ -59,6 +60,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
59
60
CreatedAt : "sometime" ,
60
61
ModifedAt : "another-time" ,
61
62
CPE : "cpe-notation" ,
63
+ PURL : "some-purl" ,
62
64
Licenses : []string {
63
65
"fancy-license" ,
64
66
"fancy-license-2" ,
@@ -80,6 +82,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
80
82
CreatedAt : "sometime" ,
81
83
ModifedAt : "another-time" ,
82
84
CPE : "cpe-notation" ,
85
+ PURL : "some-purl" ,
83
86
Licenses : []string {
84
87
"fancy-license" ,
85
88
"fancy-license-2" ,
@@ -101,6 +104,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
101
104
CreatedAt : "sometime" ,
102
105
ModifedAt : "another-time" ,
103
106
CPE : "cpe-notation" ,
107
+ PURL : "some-purl" ,
104
108
Licenses : []string {
105
109
"fancy-license" ,
106
110
"fancy-license-2" ,
@@ -122,6 +126,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
122
126
CreatedAt : "sometime" ,
123
127
ModifedAt : "another-time" ,
124
128
CPE : "cpe-notation" ,
129
+ PURL : "some-purl" ,
125
130
Licenses : []string {
126
131
"fancy-license" ,
127
132
"fancy-license-2" ,
@@ -162,6 +167,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
162
167
"created_at": "sometime",
163
168
"modified_at": "another-time",
164
169
"cpe": "cpe-notation",
170
+ "purl": "some-purl",
165
171
"deprecation_date": "",
166
172
"licenses": ["fancy-license", "fancy-license-2"]
167
173
},
@@ -180,6 +186,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
180
186
"created_at": "sometime",
181
187
"modified_at": "another-time",
182
188
"cpe": "cpe-notation",
189
+ "purl": "some-purl",
183
190
"licenses": ["fancy-license", "fancy-license-2"]
184
191
},
185
192
{
@@ -197,6 +204,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
197
204
"created_at": "sometime",
198
205
"modified_at": "another-time",
199
206
"cpe": "cpe-notation",
207
+ "purl": "some-purl",
200
208
"licenses": ["fancy-license", "fancy-license-2"]
201
209
},
202
210
{
@@ -214,6 +222,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
214
222
"created_at": "sometime",
215
223
"modified_at": "another-time",
216
224
"cpe": "cpe-notation",
225
+ "purl": "some-purl",
217
226
"licenses": ["fancy-license", "fancy-license-2"]
218
227
},
219
228
{
@@ -231,6 +240,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
231
240
"created_at": "sometime",
232
241
"modified_at": "another-time",
233
242
"cpe": "cpe-notation",
243
+ "purl": "some-purl",
234
244
"licenses": ["fancy-license", "fancy-license-2"]
235
245
}
236
246
]` )
@@ -302,6 +312,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
302
312
Expect (dependencies ).To (Equal ([]cargo.ConfigMetadataDependency {
303
313
{
304
314
CPE : "cpe-notation" ,
315
+ PURL : "some-purl" ,
305
316
ID : "some-dep" ,
306
317
Licenses : []string {"fancy-license" , "fancy-license-2" },
307
318
Version : "1.0.0" ,
@@ -313,6 +324,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
313
324
},
314
325
{
315
326
CPE : "cpe-notation" ,
327
+ PURL : "some-purl" ,
316
328
ID : "some-dep" ,
317
329
Licenses : []string {"fancy-license" , "fancy-license-2" },
318
330
Version : "1.1.2" ,
@@ -324,6 +336,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
324
336
},
325
337
{
326
338
CPE : "cpe-notation" ,
339
+ PURL : "some-purl" ,
327
340
ID : "some-dep" ,
328
341
Licenses : []string {"fancy-license" , "fancy-license-2" },
329
342
Version : "1.5.6" ,
@@ -375,6 +388,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
375
388
CreatedAt : "sometime" ,
376
389
ModifedAt : "another-time" ,
377
390
CPE : "cpe-notation" ,
391
+ PURL : "some-purl" ,
378
392
Licenses : []string {"fancy-license" , "fancy-license-2" },
379
393
},
380
394
}
0 commit comments