You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Kengo Seki (Jira)" <ji...@apache.org> on 2023/02/28 01:30:00 UTC

[jira] [Created] (AMBARI-25877) Fix test configuration files used by ServicePropertiesTest

Kengo Seki created AMBARI-25877:
-----------------------------------

             Summary: 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


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: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org