Commit Graph

1 Commits

Author SHA1 Message Date
Jun Aruga
7e3369a9b4 Fix test_provider.rb test_openssl_provider_names.
This commit fixes the following test failure of the
test_openssl_provider_names in the test/openssl/test_provider.rb.

```
159) Failure:
OpenSSL::TestProvider#test_openssl_provider_names [/builddir/build/BUILD/ruby-3.3.8/test/openssl/test_provider.rb:65]:
<2> expected but was
<3>.
```

Because the test_openssl_provider_names assumes the total number of the providers
calculating the number of the providers as a default status (1), adding the legacy
provider (1) is 2 at the following line.
https://github.com/ruby/ruby/blob/v3_3_8/test/openssl/test_provider.rb#L18

However, it is not the case on the current c10s. Because the number of the
providers as a default status is not 1 but 2 according the following result on
c10s mock environment. Therefore the total number of the providers adding the
one provider should be 3.

```
<mock-chroot> sh-5.2# rpm -q openssl openssl-libs oqsprovider
openssl-3.2.2-16.el10.x86_64
openssl-libs-3.2.2-16.el10.x86_64
oqsprovider-0.8.0-5.el10.x86_64

<mock-chroot> sh-5.2# openssl list -providers
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.2.2
    status: active
  oqsprovider
    name: OpenSSL OQS Provider
    version: 0.8.0
    status: active
```

The patch files fixes the test_openssl_provider_names, considering this case.

Related: RHEL-87342
2025-04-25 14:11:07 +02:00