From d1f3d1197bbc9cc5804ac5a9ba8eca5a8ff3c464 Mon Sep 17 00:00:00 2001 From: Christopher Phillips Date: Tue, 19 Dec 2023 11:59:17 -0500 Subject: [PATCH] test: migrate bash fixture to new snippet workflow Signed-off-by: Christopher Phillips --- syft/pkg/cataloger/binary/cataloger_test.go | 10 +++++----- .../bash | Bin 0 -> 618 bytes .../classifiers/positive/bash-5.2.15/bash | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/bash-5.1.16/bash-5.1.16-2c336c63e26881d2f02f34379024e7c314bce572c08cbaa319bacbbec29f93ed-1210190-100/bash delete mode 100644 syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/bash-5.2.15/bash diff --git a/syft/pkg/cataloger/binary/cataloger_test.go b/syft/pkg/cataloger/binary/cataloger_test.go index 7fde32a5e..d1540a3e3 100644 --- a/syft/pkg/cataloger/binary/cataloger_test.go +++ b/syft/pkg/cataloger/binary/cataloger_test.go @@ -752,14 +752,14 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) { }, }, { - name: "positive-bash-5.2.15", - fixtureDir: "test-fixtures/classifiers/positive/bash-5.2.15", + name: "positive-bash-5.1.16", + fixtureDir: "test-fixtures/classifiers/positive/bash-5.1.16", expected: pkg.Package{ Name: "bash", - Version: "5.2.15", + Version: "5.1.16", Type: "binary", - PURL: "pkg:generic/bash@5.2.15", - Locations: locations("bash"), + PURL: "pkg:generic/bash@5.1.16", + Locations: locations("bash-5.1.16-2c336c63e26881d2f02f34379024e7c314bce572c08cbaa319bacbbec29f93ed-1210190-100/bash"), Metadata: metadata("bash-binary"), }, }, diff --git a/syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/bash-5.1.16/bash-5.1.16-2c336c63e26881d2f02f34379024e7c314bce572c08cbaa319bacbbec29f93ed-1210190-100/bash b/syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/bash-5.1.16/bash-5.1.16-2c336c63e26881d2f02f34379024e7c314bce572c08cbaa319bacbbec29f93ed-1210190-100/bash new file mode 100644 index 0000000000000000000000000000000000000000..0fb07cbeac7d2bdcf94f5125c3a5796a3aeb3670 GIT binary patch literal 618 zcmYLG!HU~35Y4$?G2lxAwqr@QBL@mg*t8VFUa~EeQm7=4)@ohH$Vy3W`zigvLiYzk zI!@A7FdFejdYXAJiXwQz4!sIkgFeDwyz2vDA+hcd_8ya=bA68?9U4#p9`^|MXn<9~ z*s>^>qJs7I5qQQ0L{aoA0_$4r)OTFMb!jy;1P_hkbpHkda3e%%N`btTlGWU1+=^T* zs*LBjFoNaUV6osPlSV5gSf!QG8V#>(C9uBz1g^8Y8|!-W2Fg6qF2H8Hg5DwE0nI)r z-C_&}Stey3!w>X>+jYQTy8XEQFpHr+Qp3)uwmm}Yx^Gy=#2e7}9%+Yp>vWmV+d84@ z{*YXm(qWhK7*>1N*6;2=(SYppYavuo6nQ3ci<&DdBucX=rX$_3%%=k?Z<^T>9=7>m^L5QfErap_cGeCU#@QKX8LKj? zkn~TX`L8m|2ql;Qz5wky<;m!)s~5`*jX1fiyJ<9AkzM~JDpHoRa>{1lu|;ZV?07PH demR|Aex1%=DBn>4#n0cT^E1T-zvc0KjX$px&dvY; literal 0 HcmV?d00001 diff --git a/syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/bash-5.2.15/bash b/syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/bash-5.2.15/bash deleted file mode 100644 index 17c8fc2a0..000000000 --- a/syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/bash-5.2.15/bash +++ /dev/null @@ -1 +0,0 @@ -@(#)Bash version 5.2.15(1) release GNU