Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3550

[cct_module] Update Jolokia agent's jar path in CCT tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Test Suite
    • None
    • Hide

      How Reproducible:
      Always

      Steps to Reproduce:
      Using the following test script:

      # cat run_jolokia_tests.sh 
      #!/usr/bin/env bash
      
      if [ "$#" -ne "1" ]
      then
        echo "Please provide ID of the image to test with!"
        exit 1
      else
        IMAGEID="$1"
      fi
      
      cekit test --image="${IMAGEID}" behave --name "Check if jolokia is configured correctly" --name "Check jolokia port is available" --name "test jolokia started"
      

      Current Result:
      The following tests are currently failing:

      ...
      Failing scenarios:
        features/cct_module/eap/eap_common.feature:59  Check if jolokia is configured correctly
        features/cct_module/sso/sso.feature:59  test jolokia started
        features/jboss-eap-modules/6/basic.feature:66  Check if jolokia is configured correctly
        features/jboss-eap-modules/7/basic.feature:75  Check if jolokia is configured correctly
      
      2 features passed, 4 failed, 56 skipped
      2 scenarios passed, 4 failed, 506 skipped
      10 steps passed, 4 failed, 2529 skipped, 0 undefined
      Took 2m10.055s
      2020-04-06 12:48:22,909 cekit        ERROR    Test execution failed, please consult output above
      2020-04-06 12:48:22,909 - cekit - ERROR - Test execution failed, please consult output above
      

      Expected Result:
      All available Jolokia CCT modules tests are passing.

      Show
      How Reproducible: Always Steps to Reproduce: Using the following test script: # cat run_jolokia_tests.sh #!/usr/bin/env bash if [ "$#" -ne "1" ] then echo "Please provide ID of the image to test with!" exit 1 else IMAGEID="$1" fi cekit test --image="${IMAGEID}" behave --name "Check if jolokia is configured correctly" --name "Check jolokia port is available" --name "test jolokia started" Current Result: The following tests are currently failing: ... Failing scenarios: features/cct_module/eap/eap_common.feature:59 Check if jolokia is configured correctly features/cct_module/sso/sso.feature:59 test jolokia started features/jboss-eap-modules/6/basic.feature:66 Check if jolokia is configured correctly features/jboss-eap-modules/7/basic.feature:75 Check if jolokia is configured correctly 2 features passed, 4 failed, 56 skipped 2 scenarios passed, 4 failed, 506 skipped 10 steps passed, 4 failed, 2529 skipped, 0 undefined Took 2m10.055s 2020-04-06 12:48:22,909 cekit ERROR Test execution failed, please consult output above 2020-04-06 12:48:22,909 - cekit - ERROR - Test execution failed, please consult output above Expected Result: All available Jolokia CCT modules tests are passing .

      [This change|3bee8b7baf313142bf63472e6626a091818d9925] changed the path of the Jolokia agent JAR from former "-javaagent:/opt/jboss/container/jolokia/jolokia.jar" to "-javaagent:/usr/share/java/jolokia-jvm-agent/jolokia-jvm.jar" causing the existing cct_modules' Jolokia tests to be currently failing (still expecting old location of the agent jar to be present in the pod log).

      Proposed fix:
      The path used in the tests needs to be updated too.

              rhn-jlieskov Ján Lieskovský (Inactive)
              rhn-jlieskov Ján Lieskovský (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: