From 1fae9b5eef82d6e71bc1f2392c5b166e7dd4edce Mon Sep 17 00:00:00 2001 From: Moe Basim Date: Tue, 10 Dec 2024 14:51:59 +0100 Subject: [PATCH] OCPBUGS-44257:fixing build s2i ruby test data inline with latest ruby version(>=3.0) The test data for s2i image creation with source type as binary has issues post base image upgrade to ruby 3.0 (test/extended/testdata/builds/test-env-build.json) This is because webrick server is removed from default ruby libraries from 3.0 version,hence a webserver should be installed externally.The test data is missing this causing permanant failure post ruby 3.0 upgrade. This fix is updating the test data with required dependencies to create a stable app to fulfill the testcase criteria. signed-off by : moebasim(mbasim@redhat.com) --- test/extended/testdata/bindata.go | 4 ++-- .../testdata/builds/s2i-environment-build-app/Gemfile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/extended/testdata/bindata.go b/test/extended/testdata/bindata.go index 66126d4d9b65..937db4fd5f08 100644 --- a/test/extended/testdata/bindata.go +++ b/test/extended/testdata/bindata.go @@ -19009,11 +19009,11 @@ func testExtendedTestdataBuildsS2iEnvironmentBuildAppS2iEnvironment() (*asset, e return a, nil } -var _testExtendedTestdataBuildsS2iEnvironmentBuildAppGemfile = []byte(`source "https://rubygems.org" +var _testExtendedTestdataBuildsS2iEnvironmentBuildAppGemfile = []byte(`source 'https://rubygems.org' gem "rack" gem "rackup" -`) +gem "webrick"`) func testExtendedTestdataBuildsS2iEnvironmentBuildAppGemfileBytes() ([]byte, error) { return _testExtendedTestdataBuildsS2iEnvironmentBuildAppGemfile, nil diff --git a/test/extended/testdata/builds/s2i-environment-build-app/Gemfile b/test/extended/testdata/builds/s2i-environment-build-app/Gemfile index cf02b01c86e6..f2d2ecd34491 100644 --- a/test/extended/testdata/builds/s2i-environment-build-app/Gemfile +++ b/test/extended/testdata/builds/s2i-environment-build-app/Gemfile @@ -1,4 +1,5 @@ -source "https://rubygems.org" +source 'https://rubygems.org' gem "rack" gem "rackup" +gem "webrick" \ No newline at end of file