Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2135

Documents dependencies for fonts and locales tests on systems with C.UTF-8 default locale

XMLWordPrintable

      These tests in the TS require additional system packages. It might not be apparent on a full fledged desktop Linux, but it shows on a barebone system, e.g. on a RHEL 9 minimal installation.

      Thinking about GH issues, JIRA, Knowledge Base, asciidoc documentation, web pages....I believe the best place to preserve the information is right here, in those actual test cases.

      e.g.
      ```
      $ ./mvnw verify -Dnative -pl integration-tests/main -Dtest=RestClientTestCase#testEmojis
      ...
      [ERROR] Failures:
      [ERROR] RestClientTestCase.testEmojis:54 1 expectation failed.
      Response body doesn't match expectation.
      Expected: is "????????"
      Actual: ????????????????????????????????
      ```
      To fix:
      ```
      sudo dnf install glibc-all-langpacks
      ```
      Works fine now.

      Locales tests need the language pack too:

      Before:
      ```
      [ERROR] Failures:
      [ERROR] LocalesIT.testCurrencies:53 1 expectation failed.
      Response body doesn't match expectation.
      Expected: is "?esk? koruna"
      Actual: esk koruna
      ```
      After:
      ```
      HTTP/1.1 200 OK
      Content-Type: application/octet-stream
      content-length: 14

      česká koruna
      ```

            Unassigned Unassigned
            probinso_jira Quarkus JIRA Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: