@@ -35,13 +35,11 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
35
35
Version : "1.36.0" ,
36
36
FilePath : "opt/bitnami/elasticsearch" ,
37
37
Identifier : types.PkgIdentifier {
38
- PURL : & types.PackageURL {
39
- PackageURL : packageurl.PackageURL {
40
- Type : packageurl .TypeMaven ,
41
- Namespace : "co.elastic.apm" ,
42
- Name : "apm-agent" ,
43
- Version : "1.36.0" ,
44
- },
38
+ PURL : & packageurl.PackageURL {
39
+ Type : packageurl .TypeMaven ,
40
+ Namespace : "co.elastic.apm" ,
41
+ Name : "apm-agent" ,
42
+ Version : "1.36.0" ,
45
43
},
46
44
},
47
45
},
@@ -50,13 +48,11 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
50
48
Version : "1.36.0" ,
51
49
FilePath : "opt/bitnami/elasticsearch" ,
52
50
Identifier : types.PkgIdentifier {
53
- PURL : & types.PackageURL {
54
- PackageURL : packageurl.PackageURL {
55
- Type : packageurl .TypeMaven ,
56
- Namespace : "co.elastic.apm" ,
57
- Name : "apm-agent-cached-lookup-key" ,
58
- Version : "1.36.0" ,
59
- },
51
+ PURL : & packageurl.PackageURL {
52
+ Type : packageurl .TypeMaven ,
53
+ Namespace : "co.elastic.apm" ,
54
+ Name : "apm-agent-cached-lookup-key" ,
55
+ Version : "1.36.0" ,
60
56
},
61
57
},
62
58
},
@@ -65,13 +61,11 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
65
61
Version : "1.36.0" ,
66
62
FilePath : "opt/bitnami/elasticsearch" ,
67
63
Identifier : types.PkgIdentifier {
68
- PURL : & types.PackageURL {
69
- PackageURL : packageurl.PackageURL {
70
- Type : packageurl .TypeMaven ,
71
- Namespace : "co.elastic.apm" ,
72
- Name : "apm-agent-common" ,
73
- Version : "1.36.0" ,
74
- },
64
+ PURL : & packageurl.PackageURL {
65
+ Type : packageurl .TypeMaven ,
66
+ Namespace : "co.elastic.apm" ,
67
+ Name : "apm-agent-common" ,
68
+ Version : "1.36.0" ,
75
69
},
76
70
},
77
71
},
@@ -80,13 +74,11 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
80
74
Version : "1.36.0" ,
81
75
FilePath : "opt/bitnami/elasticsearch" ,
82
76
Identifier : types.PkgIdentifier {
83
- PURL : & types.PackageURL {
84
- PackageURL : packageurl.PackageURL {
85
- Type : packageurl .TypeMaven ,
86
- Namespace : "co.elastic.apm" ,
87
- Name : "apm-agent-core" ,
88
- Version : "1.36.0" ,
89
- },
77
+ PURL : & packageurl.PackageURL {
78
+ Type : packageurl .TypeMaven ,
79
+ Namespace : "co.elastic.apm" ,
80
+ Name : "apm-agent-core" ,
81
+ Version : "1.36.0" ,
90
82
},
91
83
},
92
84
},
@@ -102,16 +94,14 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
102
94
Arch : "arm64" ,
103
95
Licenses : []string {"Elastic-2.0" },
104
96
Identifier : types.PkgIdentifier {
105
- PURL : & types.PackageURL {
106
- PackageURL : packageurl.PackageURL {
107
- Type : packageurl .TypeBitnami ,
108
- Name : "elasticsearch" ,
109
- Version : "8.9.1" ,
110
- Qualifiers : packageurl.Qualifiers {
111
- {
112
- Key : "arch" ,
113
- Value : "arm64" ,
114
- },
97
+ PURL : & packageurl.PackageURL {
98
+ Type : packageurl .TypeBitnami ,
99
+ Name : "elasticsearch" ,
100
+ Version : "8.9.1" ,
101
+ Qualifiers : packageurl.Qualifiers {
102
+ {
103
+ Key : "arch" ,
104
+ Value : "arm64" ,
115
105
},
116
106
},
117
107
},
@@ -137,14 +127,11 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
137
127
Name : "co.elastic.apm:apm-agent" ,
138
128
Version : "1.36.0" ,
139
129
Identifier : types.PkgIdentifier {
140
- PURL : & types.PackageURL {
141
- PackageURL : packageurl.PackageURL {
142
- Type : packageurl .TypeMaven ,
143
- Namespace : "co.elastic.apm" ,
144
- Name : "apm-agent" ,
145
- Version : "1.36.0" ,
146
- },
147
- FilePath : "opt/bitnami/elasticsearch/modules/apm/elastic-apm-agent-1.36.0.jar" ,
130
+ PURL : & packageurl.PackageURL {
131
+ Type : packageurl .TypeMaven ,
132
+ Namespace : "co.elastic.apm" ,
133
+ Name : "apm-agent" ,
134
+ Version : "1.36.0" ,
148
135
},
149
136
BOMRef :
"pkg:maven/co.elastic.apm/[email protected] " ,
150
137
},
@@ -154,14 +141,11 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
154
141
Name : "co.elastic.apm:apm-agent-cached-lookup-key" ,
155
142
Version : "1.36.0" ,
156
143
Identifier : types.PkgIdentifier {
157
- PURL : & types.PackageURL {
158
- PackageURL : packageurl.PackageURL {
159
- Type : packageurl .TypeMaven ,
160
- Namespace : "co.elastic.apm" ,
161
- Name : "apm-agent-cached-lookup-key" ,
162
- Version : "1.36.0" ,
163
- },
164
- FilePath : "opt/bitnami/elasticsearch/modules/apm/elastic-apm-agent-1.36.0.jar" ,
144
+ PURL : & packageurl.PackageURL {
145
+ Type : packageurl .TypeMaven ,
146
+ Namespace : "co.elastic.apm" ,
147
+ Name : "apm-agent-cached-lookup-key" ,
148
+ Version : "1.36.0" ,
165
149
},
166
150
BOMRef :
"pkg:maven/co.elastic.apm/[email protected] " ,
167
151
},
@@ -187,12 +171,10 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
187
171
Version : "3.7.1" ,
188
172
Licenses : []string {"MIT" },
189
173
Identifier : types.PkgIdentifier {
190
- PURL : & types.PackageURL {
191
- PackageURL : packageurl.PackageURL {
192
- Type : packageurl .TypeBitnami ,
193
- Name : "gdal" ,
194
- Version : "3.7.1" ,
195
- },
174
+ PURL : & packageurl.PackageURL {
175
+ Type : packageurl .TypeBitnami ,
176
+ Name : "gdal" ,
177
+ Version : "3.7.1" ,
196
178
},
197
179
},
198
180
},
@@ -201,12 +183,10 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
201
183
Version : "3.8.3" ,
202
184
Licenses : []string {"LGPL-2.1-only" },
203
185
Identifier : types.PkgIdentifier {
204
- PURL : & types.PackageURL {
205
- PackageURL : packageurl.PackageURL {
206
- Type : packageurl .TypeBitnami ,
207
- Name : "geos" ,
208
- Version : "3.8.3" ,
209
- },
186
+ PURL : & packageurl.PackageURL {
187
+ Type : packageurl .TypeBitnami ,
188
+ Name : "geos" ,
189
+ Version : "3.8.3" ,
210
190
},
211
191
},
212
192
},
@@ -215,12 +195,10 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
215
195
Version : "15.3.0" ,
216
196
Licenses : []string {"PostgreSQL" },
217
197
Identifier : types.PkgIdentifier {
218
- PURL : & types.PackageURL {
219
- PackageURL : packageurl.PackageURL {
220
- Type : packageurl .TypeBitnami ,
221
- Name : "postgresql" ,
222
- Version : "15.3.0" ,
223
- },
198
+ PURL : & packageurl.PackageURL {
199
+ Type : packageurl .TypeBitnami ,
200
+ Name : "postgresql" ,
201
+ Version : "15.3.0" ,
224
202
},
225
203
},
226
204
},
@@ -229,12 +207,10 @@ func Test_sbomAnalyzer_Analyze(t *testing.T) {
229
207
Version : "6.3.2" ,
230
208
Licenses : []string {"MIT" },
231
209
Identifier : types.PkgIdentifier {
232
- PURL : & types.PackageURL {
233
- PackageURL : packageurl.PackageURL {
234
- Type : packageurl .TypeBitnami ,
235
- Name : "proj" ,
236
- Version : "6.3.2" ,
237
- },
210
+ PURL : & packageurl.PackageURL {
211
+ Type : packageurl .TypeBitnami ,
212
+ Name : "proj" ,
213
+ Version : "6.3.2" ,
238
214
},
239
215
},
240
216
},
0 commit comments