mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
test: update memcached to new generator pattern
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
parent
9099b986e7
commit
a782fd2cf7
@ -133,14 +133,14 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "positive-memcached-1.6.14",
|
||||
fixtureDir: "test-fixtures/classifiers/positive/memcached-1.6.14",
|
||||
name: "positive-memcached-1.6.18",
|
||||
fixtureDir: "test-fixtures/classifiers/positive/memcached-1.6.18",
|
||||
expected: pkg.Package{
|
||||
Name: "memcached",
|
||||
Version: "1.6.14",
|
||||
Version: "1.6.18",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/memcached@1.6.14",
|
||||
Locations: locations("memcached"),
|
||||
PURL: "pkg:generic/memcached@1.6.18",
|
||||
Locations: locations("memcached-1.6.18-176467412e0722ae1b2c1159555d33574653ebfa87e8591d88c1e6e416ab3019-19-100/memcached"),
|
||||
Metadata: metadata("memcached-binary"),
|
||||
},
|
||||
},
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
secs_since_last_cmd
|
||||
listen
|
||||
memcached 1.6.18
|
||||
udp-port
|
||||
memcached 1.6.18
|
||||
Failed to allocate memory
|
||||
%s,%s
|
||||
--
|
||||
bget
|
||||
flush_all
|
||||
VERSION 1.6.18
|
||||
quit
|
||||
BADCLASS invalid class id
|
||||
@ -0,0 +1,18 @@
|
||||
### generated by script get-fixture-snippet.sh at Tue Dec 19 11:36:59 EST 2023 ###
|
||||
# filename: memcached
|
||||
# sha256: 176467412e0722ae1b2c1159555d33574653ebfa87e8591d88c1e6e416ab3019
|
||||
# file info: ASCII text, with CRLF, LF line terminators
|
||||
# base64(search): MS42LjE4
|
||||
# start offset: 19
|
||||
# length: 100
|
||||
### start of binary snippet ###
|
||||
|
||||
listen
|
||||
memcached 1.6.18
|
||||
udp-port
|
||||
memcached 1.6.18
|
||||
Failed to allocate memory
|
||||
%s,%s
|
||||
--
|
||||
bget
|
||||
f
|
||||
Loading…
x
Reference in New Issue
Block a user