Giter VIP home page Giter VIP logo

vdx-wildfly-testsuite's People

Contributors

mnovak1 avatar rsvoboda avatar

Watchers

 avatar  avatar  avatar  avatar

vdx-wildfly-testsuite's Issues

Fix tests to pass on IBM JDK

Fix tests to pass on IBM JDK as there are some differences in exception messages.

For example different message prefix or no info about row and column in exception.

Enhance tests for invalid child elements

Enhance tests for invalid child elements

  • Child elements in wrong order - e.g. messaging subsystem is good candidate
  • Element does not contain required/mandatory fields/attributes - e.g. missing socket-binding in connector

Extend test coverage

Code coverage analysis identified few missing areas, add new tests to cover these scenarios.

Areas for improvement:

  • duplicate attribute
  • duplicate element
  • invalid attribute
  • missing attribute
  • missing element

Update dependencies - mvn versions:display-dependency-updates

mvn versions:display-dependency-updates suggests following updates:

[INFO] The following dependencies in Dependencies have newer versions:
[INFO]   org.jboss.arquillian.junit:arquillian-junit-container ...
[INFO]                                             1.1.11.Final -> 1.1.13.Final
[INFO]   org.jboss.logging:jboss-logging ...
[INFO]                                      3.3.0.Final -> 3.3.1.Final-redhat-1
[INFO]   org.projectodd.vdx:vdx-core ........................... 1.1.1 -> 1.1.6
[INFO]   org.wildfly.arquillian:wildfly-arquillian-container-domain-managed ...
[INFO]                                               1.0.2.Final -> 2.1.0.Final
[INFO]   org.wildfly.arquillian:wildfly-arquillian-container-managed ...
[INFO]                                               1.0.2.Final -> 2.1.0.Final
[INFO]   org.wildfly.extras.creaper:creaper-commands ........... 1.6.0 -> 1.6.1
[INFO]   org.wildfly.extras.creaper:creaper-core ............... 1.6.0 -> 1.6.1

Investigate and fix test InvalidCharactersTestCase.elementWithNationalCharacters

Issue: https://issues.jboss.org/browse/JBEAP-8539 with national characters is fixed but test is still failing. It seems to be test issue, investigate and fix the failure.

log seems to be correct, maybe test issue ?

Error Message

Input length = 1

Stacktrace

java.nio.charset.MalformedInputException: Input length = 1
	at org.wildfly.test.integration.vdx.standalone.InvalidCharactersTestCase.elementWithNationalCharacters(InvalidCharactersTestCase.java:170)

Standard Output

----------------------------------------- Start InvalidCharactersTestCase - elementWithNationalCharacters -----------------------------------------
23:19:39,930 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.0.Beta4-redhat-1
23:19:40,371 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1-redhat-1
23:19:40,508 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: JBoss EAP 7.1.0.Alpha1 (WildFly Core 3.0.0.Beta2-redhat-1) starting
23:19:40,705 INFO  [org.jboss.as.domain.management] (MSC service thread 1-1) WFLYDM0136: Registered OpenSSL provider
23:19:42,241 ERROR [org.jboss.as.controller] (Controller Boot Thread) 

OPVDX001: Validation error in standalone.xml -----------------------------------
|
|  491:     </endpoint-config>
|  492:     <client-config name="Standard-Client-Config"/>
|  493:     <řebříček>obecný</řebříček>
|           ^^^^ 'řebříček' isn't an allowed element here
|                
|                Elements allowed here are: 
|                  client-config           wsdl-path-rewrite-rule  
|                  endpoint-config         wsdl-port               
|                  modify-wsdl-address     wsdl-secure-port        
|                  wsdl-host               wsdl-uri-scheme         
|
|  494:   </subsystem>
|  495:   <subsystem xmlns="urn:jboss:domain:weld:4.0"/>
|  496: </profile>
|
| The primary underlying error message was:
| > ParseError at [row,col]:[493,7]
| > Message: WFLYCTL0198: Unexpected element
| >   '{urn:jboss:domain:webservices:2.0}řebříček' encountered
|
|-------------------------------------------------------------------------------

23:19:42,243 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143) [wildfly-controller-3.0.0.Beta2-redhat-1.jar:3.0.0.Beta2-redhat-1]
	at org.jboss.as.server.ServerService.boot(ServerService.java:373) [wildfly-server-3.0.0.Beta2-redhat-1.jar:3.0.0.Beta2-redhat-1]
	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:314) [wildfly-controller-3.0.0.Beta2-redhat-1.jar:3.0.0.Beta2-redhat-1]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_111]

23:19:42,245 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
23:19:42,262 INFO  [org.jboss.as] (MSC service thread 1-3) WFLYSRV0050: JBoss EAP 7.1.0.Alpha1 (WildFly Core 3.0.0.Beta2-redhat-1) stopped in 9ms
Start of the server failed. This is expected.
Restoring server configuration. Configuration to be restored @org.wildfly.test.integration.vdx.utils.server.ServerConfig(profileName=, subtreeName=, configuration=standalone.xml, hostConfig=host.xml, parameterName=foo, xmlTransformationGroovy=, parameterValue=bar, subsystemName=)
----------------------------------------- Stop InvalidCharactersTestCase - elementWithNationalCharacters -----------------------------------------

Enhance tests for missing closing tag

Enhance tests for missing closing tag:

  • There is missing closing tag (for example </subsystem> tag is missing)
  • Comments are removed but what happens if there is missing closing --> in <!-- comment here -->
  • Not expected closing tag - for example <subsystem ... /> ... </subsystem>

Enhance tests for invalid characters

Enhance tests for invalid characters:

  • There is bad character in xml (for example < is missing)
  • Add space before xml declaration - <space><?xml version='1.0' encoding='UTF-8'?>
  • There is missing last quote " in <element name="foobar>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.