Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1909

Behave tests on Kogito images fails when non native build and no runtime image is used.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 0.9.1, 0.10.0
    • None
    • None
    • None

    Description

      while creating a new scenario, a issue happens when submiting requests to the running quarkus app, the example used was * rules-quarkus-helloworld*

      and the behave test added:

        Scenario: Verify if the s2i build is finished as expected with non native build
          Given s2i build https://github.com/kiegroup/kogito-examples.git from rules-quarkus-helloworld using 0.9.x
            | variable | value |
            | NATIVE   | false |
          Then check that page is served
            | property        | value                 |
            | port            | 8080                  |
            | path            | /hello                |
            | request_method  | POST                  |
            | content_type    | application/json      |
            | request_body    | {"strings":["hello"]} |
            | wait            | 80                    |
            | expected_phrase | ["hello","world"]     |
          And file /home/kogito/bin/rules-quarkus-helloworld-runner.jar should exist
          And file /home/kogito/ssl-libs/libsunec.so should exist
          And file /home/kogito/cacerts should exist
      

      On the request scenario step, it returned a http 500 and the logs shows:
      Caused by: java.nio.file.AccessDeniedException: ./proc/tty/driver

      To fix it just need to set the working dir on the builder image.

      Attachments

        Activity

          People

            rhn-support-fspolti Filippe Spolti
            rhn-support-fspolti Filippe Spolti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: