Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25877

Fix test configuration files used by ServicePropertiesTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0
    • ambari-server
    • None

    Description

      Currently, ServicePropertiesTest fails because some of configuration files are incomplete or invalid. For example:

      $ mvn clean test -Dtest=ServicePropertiesTest -f ambari-server/pom.xml
      
      ...
      
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.ambari.server.state.ServicePropertiesTest
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.198 s <<< FAILURE! - in org.apache.ambari.server.state.ServicePropertiesTest
      [ERROR] validatePropertySchemaOfServiceXMLs(org.apache.ambari.server.state.ServicePropertiesTest)  Time elapsed: 0.183 s  <<< ERROR!
      org.apache.ambari.server.AmbariException: File /home/sekikn/repos/ambari/ambari-server/target/test-classes/TestAmbaryServer.samples/../../../src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/configuration/hive-site.xml didn't pass the validation. Error message is : cvc-complex-type.2.4.b: The content of element 'property' is not complete. One of '{display-name, filename, deleted, final, on-ambari-upgrade, supported-refresh-commands, on-stack-upgrade, property-type, value-attributes, depends-on, property_depended_by, used-by}' is expected.
      	at org.apache.ambari.server.state.ServicePropertiesTest.validatePropertySchemaOfServiceXMLs(ServicePropertiesTest.java:51)
      
      [INFO] 
      [INFO] Results:
      [INFO] 
      [ERROR] Errors: 
      [ERROR]   ServicePropertiesTest.validatePropertySchemaOfServiceXMLs:51 ยป Ambari File /ho...
      [INFO] 
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  40.233 s
      [INFO] Finished at: 2023-02-28T10:28:45+09:00
      [INFO] ------------------------------------------------------------------------
      

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m