Uploaded image for project: 'KIE Cloud'
  1. KIE Cloud
  2. KIECLOUD-464

Fix smartrouter logger configuration test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.9.1.GA
    • None
    • RHPAM
    • None

      Current test is failing:

       

        Scenario: Verify if the logging properties is set correctly                                                                           # features/jboss-kie-modules/rhpam/smartrouter/rhpam-smartrouter.feature:154
          When container is started with env                                                                                                  # steps/container_steps.py:71 19.177s
            | variable          | value        |
            | SCRIPT_DEBUG      | true         |
            | LOG_LEVEL         | SEVERE       |
            | LOGGER_CATEGORIES | org.xyz=INFO |
          Then container log should match regex JAVA_OPTS_APPEND=' -Djava.util.logging.config.file=/opt/rhpam-smartrouter/logging.properties' # steps/container_steps.py:20
          Then container log should match regex JAVA_OPTS_APPEND=' -Djava.util.logging.config.file=/opt/rhpam-smartrouter/logging.properties' # steps/container_steps.py:20 0.065s
          And container log should match regex LOGGER_CATEGORIES=org.xyz=INFO                                                                 # steps/container_steps.py:20 30.044s
            Traceback (most recent call last):
              File "/home/spolti/cekit/lib/python3.7/site-packages/behave/model.py", line 1329, in run
                match.run(runner.context)
              File "/home/spolti/cekit/lib/python3.7/site-packages/behave/matchers.py", line 98, in run
                self.func(context, *args, **kwargs)
              File "steps/container_steps.py", line 23, in log_matches_regex
                raise Exception("Regex '%s' did not match the logs" % regex)
            Exception: Regex 'LOGGER_CATEGORIES=org.xyz=INFO' did not match the logs
      
      

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

              Created:
              Updated:
              Resolved: