[ 
https://issues.apache.org/jira/browse/AMBARI-25877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kengo Seki updated AMBARI-25877:
--------------------------------
    Status: Patch Available  (was: Open)

> Fix test configuration files used by ServicePropertiesTest
> ----------------------------------------------------------
>
>                 Key: AMBARI-25877
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25877
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>            Reporter: Kengo Seki
>            Assignee: Kengo Seki
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently, ServicePropertiesTest fails because some of configuration files 
> are incomplete or invalid. For example:
> {code}
> $ 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] 
> ------------------------------------------------------------------------
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to