@@ -38,6 +38,10 @@ 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
+ Licenses : []string {
42
+ "fancy-license" ,
43
+ "fancy-license-2" ,
44
+ },
41
45
},
42
46
{
43
47
DeprecationDate : "" ,
@@ -55,6 +59,10 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
55
59
CreatedAt : "sometime" ,
56
60
ModifedAt : "another-time" ,
57
61
CPE : "cpe-notation" ,
62
+ Licenses : []string {
63
+ "fancy-license" ,
64
+ "fancy-license-2" ,
65
+ },
58
66
},
59
67
{
60
68
DeprecationDate : "" ,
@@ -72,6 +80,10 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
72
80
CreatedAt : "sometime" ,
73
81
ModifedAt : "another-time" ,
74
82
CPE : "cpe-notation" ,
83
+ Licenses : []string {
84
+ "fancy-license" ,
85
+ "fancy-license-2" ,
86
+ },
75
87
},
76
88
{
77
89
DeprecationDate : "" ,
@@ -89,6 +101,10 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
89
101
CreatedAt : "sometime" ,
90
102
ModifedAt : "another-time" ,
91
103
CPE : "cpe-notation" ,
104
+ Licenses : []string {
105
+ "fancy-license" ,
106
+ "fancy-license-2" ,
107
+ },
92
108
},
93
109
{
94
110
DeprecationDate : "" ,
@@ -106,6 +122,10 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
106
122
CreatedAt : "sometime" ,
107
123
ModifedAt : "another-time" ,
108
124
CPE : "cpe-notation" ,
125
+ Licenses : []string {
126
+ "fancy-license" ,
127
+ "fancy-license-2" ,
128
+ },
109
129
},
110
130
}
111
131
})
@@ -142,7 +162,8 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
142
162
"created_at": "sometime",
143
163
"modified_at": "another-time",
144
164
"cpe": "cpe-notation",
145
- "deprecation_date" : ""
165
+ "deprecation_date": "",
166
+ "licenses": ["fancy-license", "fancy-license-2"]
146
167
},
147
168
{
148
169
"name": "some-dep",
@@ -158,7 +179,8 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
158
179
"source_sha256": "some-source-sha-two",
159
180
"created_at": "sometime",
160
181
"modified_at": "another-time",
161
- "cpe": "cpe-notation"
182
+ "cpe": "cpe-notation",
183
+ "licenses": ["fancy-license", "fancy-license-2"]
162
184
},
163
185
{
164
186
"name": "some-dep",
@@ -174,7 +196,8 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
174
196
"source_sha256": "some-source-sha-three",
175
197
"created_at": "sometime",
176
198
"modified_at": "another-time",
177
- "cpe": "cpe-notation"
199
+ "cpe": "cpe-notation",
200
+ "licenses": ["fancy-license", "fancy-license-2"]
178
201
},
179
202
{
180
203
"name": "some-dep",
@@ -190,7 +213,8 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
190
213
"source_sha256": "some-source-sha-four",
191
214
"created_at": "sometime",
192
215
"modified_at": "another-time",
193
- "cpe": "cpe-notation"
216
+ "cpe": "cpe-notation",
217
+ "licenses": ["fancy-license", "fancy-license-2"]
194
218
},
195
219
{
196
220
"name": "different-dep",
@@ -206,7 +230,8 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
206
230
"source_sha256": "different-dep-source-sha",
207
231
"created_at": "sometime",
208
232
"modified_at": "another-time",
209
- "cpe": "cpe-notation"
233
+ "cpe": "cpe-notation",
234
+ "licenses": ["fancy-license", "fancy-license-2"]
210
235
}
211
236
]` )
212
237
}
@@ -278,6 +303,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
278
303
{
279
304
CPE : "cpe-notation" ,
280
305
ID : "some-dep" ,
306
+ Licenses : []string {"fancy-license" , "fancy-license-2" },
281
307
Version : "1.0.0" ,
282
308
Stacks : []string {"some-stack" },
283
309
URI : "some-dep-uri" ,
@@ -288,6 +314,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
288
314
{
289
315
CPE : "cpe-notation" ,
290
316
ID : "some-dep" ,
317
+ Licenses : []string {"fancy-license" , "fancy-license-2" },
291
318
Version : "1.1.2" ,
292
319
Stacks : []string {"some-stack-two" },
293
320
URI : "some-dep-uri-two" ,
@@ -298,6 +325,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
298
325
{
299
326
CPE : "cpe-notation" ,
300
327
ID : "some-dep" ,
328
+ Licenses : []string {"fancy-license" , "fancy-license-2" },
301
329
Version : "1.5.6" ,
302
330
Stacks : []string {"some-stack-three" },
303
331
URI : "some-dep-uri-three" ,
@@ -347,6 +375,7 @@ func testDependency(t *testing.T, context spec.G, it spec.S) {
347
375
CreatedAt : "sometime" ,
348
376
ModifedAt : "another-time" ,
349
377
CPE : "cpe-notation" ,
378
+ Licenses : []string {"fancy-license" , "fancy-license-2" },
350
379
},
351
380
}
352
381
0 commit comments