From 1c51d8e6c04a49c470dabb8dfe2430c09b2e2dee Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Tue, 30 Jul 2024 14:43:56 +0200 Subject: [PATCH] fix(pkg/build): fixed centos kernels for tests. Signed-off-by: Federico Di Pierro --- pkg/build/build_test.go | 60 ++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/pkg/build/build_test.go b/pkg/build/build_test.go index 1b3337b..a9d3111 100644 --- a/pkg/build/build_test.go +++ b/pkg/build/build_test.go @@ -55,7 +55,7 @@ func TestBuild(t *testing.T) { RepoRoot: "./test", Target: root.Target{ Distro: "centos", - KernelRelease: "4.18.0-545.el8.x86_64", + KernelRelease: "4.18.0-552.el8.x86_64", KernelVersion: "1", }, }, @@ -64,15 +64,15 @@ func TestBuild(t *testing.T) { IgnoreErrors: false, }, expectedLocalObjects: []string{ - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, expectedBucketObjects: []string{ - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, shouldCreate: true, - name: "build 5.0.1+driver centos 4.18.0-545.el8.x86_64", + name: "build 5.0.1+driver centos 4.18.0-552.el8.x86_64", }, { opts: Options{ @@ -83,7 +83,7 @@ func TestBuild(t *testing.T) { RepoRoot: "./test", Target: root.Target{ Distro: "centos", - KernelRelease: "4.18.0-546.el8.x86_64", + KernelRelease: "4.18.0-553.6.1.el8.x86_64", KernelVersion: "1", }, }, @@ -92,17 +92,17 @@ func TestBuild(t *testing.T) { IgnoreErrors: false, }, expectedLocalObjects: []string{ - "falco_centos_4.18.0-546.el8.x86_64_1.ko", - "falco_centos_4.18.0-546.el8.x86_64_1.o", - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-553.6.1.el8.x86_64_1.ko", + "falco_centos_4.18.0-553.6.1.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, expectedBucketObjects: []string{ - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, shouldCreate: false, // since it is not publishing - name: "build 5.0.1+driver centos 4.18.0-546.el8.x86_64", + name: "build 5.0.1+driver centos 4.18.0-553.6.1.el8.x86_64", }, { opts: Options{ @@ -113,7 +113,7 @@ func TestBuild(t *testing.T) { RepoRoot: "./test", Target: root.Target{ Distro: "centos", - KernelRelease: "4.18.0-545.el8.x86_64", // try to rebuild same object. + KernelRelease: "4.18.0-552.el8.x86_64", // try to rebuild same object. KernelVersion: "1", }, }, @@ -122,17 +122,17 @@ func TestBuild(t *testing.T) { IgnoreErrors: false, }, expectedLocalObjects: []string{ - "falco_centos_4.18.0-546.el8.x86_64_1.ko", - "falco_centos_4.18.0-546.el8.x86_64_1.o", - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-553.6.1.el8.x86_64_1.ko", + "falco_centos_4.18.0-553.6.1.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, expectedBucketObjects: []string{ - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, shouldCreate: false, // since objects are already present, nothing should be created - name: "rebuild 5.0.1+driver centos 4.18.0-545.el8.x86_64", + name: "rebuild 5.0.1+driver centos 4.18.0-552.el8.x86_64", }, { opts: Options{ @@ -143,7 +143,7 @@ func TestBuild(t *testing.T) { RepoRoot: "./test", Target: root.Target{ Distro: "centos", - KernelRelease: "4.18.0-545.el8.x86_64", // try to rebuild same object. + KernelRelease: "4.18.0-552.el8.x86_64", // try to rebuild same object. KernelVersion: "1", }, }, @@ -152,17 +152,17 @@ func TestBuild(t *testing.T) { IgnoreErrors: false, }, expectedLocalObjects: []string{ - "falco_centos_4.18.0-546.el8.x86_64_1.ko", - "falco_centos_4.18.0-546.el8.x86_64_1.o", - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-553.6.1.el8.x86_64_1.ko", + "falco_centos_4.18.0-553.6.1.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, expectedBucketObjects: []string{ - "falco_centos_4.18.0-545.el8.x86_64_1.ko", - "falco_centos_4.18.0-545.el8.x86_64_1.o", + "falco_centos_4.18.0-552.el8.x86_64_1.ko", + "falco_centos_4.18.0-552.el8.x86_64_1.o", }, shouldCreate: true, - name: "rebuild and publish 5.0.1+driver centos 4.18.0-545.el8.x86_64", + name: "rebuild and publish 5.0.1+driver centos 4.18.0-552.el8.x86_64", }, }