Skip to content

Failed

org.appng.application.manager.business.LdapUsersTest.testSettings

Failing for the past 2 builds (Since Failed#151 )
Took 65 ms.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value '7' but was '8' - comparing <resultset chunksize="7"...> at /datasource[1]/data[1]/resultset[1]/@chunksize to <resultset chunksize="8"...> at /datasource[1]/data[1]/resultset[1]/@chunksize

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="ldapSettings">
    <config>
        <title id="ldap.settings">LDAP Settings</title>
        <meta-data bindClass="org.appng.api.model.SimpleProperty">
            <field name="name" type="text" binding="name">
                <label id="name">Name</label>
            </field>
            <field name="value" type="text" binding="value">
                <label id="value">Value</label>
            </field>
        </meta-data>
    </config>
    <data paginate="false">
        <resultset chunk="0" chunkname="ldapSettings" chunksize="8" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="8">
            <result>
                <field name="name" type="text">
                    <value>ldapHost</value>
                </field>
                <field name="value" type="text">
                    <value>ldap://localhost:389</value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapDisabled</value>
                </field>
                <field name="value" type="text">
                    <value>true</value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapDomain</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapGroupBaseDn</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapUser</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapIdAttribute</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapPrincipalScheme</value>
                </field>
                <field name="value" type="text">
                    <value>DN</value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapStartTls</value>
                </field>
                <field name="value" type="text">
                    <value>false</value>
                </field>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value '7' but was '8' - comparing <resultset chunksize="7"...> at /datasource[1]/data[1]/resultset[1]/@chunksize to <resultset chunksize="8"...> at /datasource[1]/data[1]/resultset[1]/@chunksize

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value '7' but was '8' - comparing <resultset chunksize="7"...> at /datasource[1]/data[1]/resultset[1]/@chunksize to <resultset chunksize="8"...> at /datasource[1]/data[1]/resultset[1]/@chunksize

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="ldapSettings">
    <config>
        <title id="ldap.settings">LDAP Settings</title>
        <meta-data bindClass="org.appng.api.model.SimpleProperty">
            <field name="name" type="text" binding="name">
                <label id="name">Name</label>
            </field>
            <field name="value" type="text" binding="value">
                <label id="value">Value</label>
            </field>
        </meta-data>
    </config>
    <data paginate="false">
        <resultset chunk="0" chunkname="ldapSettings" chunksize="8" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="8">
            <result>
                <field name="name" type="text">
                    <value>ldapHost</value>
                </field>
                <field name="value" type="text">
                    <value>ldap://localhost:389</value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapDisabled</value>
                </field>
                <field name="value" type="text">
                    <value>true</value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapDomain</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapGroupBaseDn</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapUser</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapIdAttribute</value>
                </field>
                <field name="value" type="text">
                    <value></value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapPrincipalScheme</value>
                </field>
                <field name="value" type="text">
                    <value>DN</value>
                </field>
            </result>
            <result>
                <field name="name" type="text">
                    <value>ldapStartTls</value>
                </field>
                <field name="value" type="text">
                    <value>false</value>
                </field>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value '7' but was '8' - comparing <resultset chunksize="7"...> at /datasource[1]/data[1]/resultset[1]/@chunksize to <resultset chunksize="8"...> at /datasource[1]/data[1]/resultset[1]/@chunksize

	at org.appng.application.manager.business.LdapUsersTest.testSettings(LdapUsersTest.java:47)

Standard Output

2021-06-24 13:51:11,437 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2021-06-24 13:51:11,437 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@5262d2c, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@1ae1142e, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@790c260b, org.springframework.test.context.support.DirtiesContextTestExecutionListener@109d4f88, org.springframework.test.context.transaction.TransactionalTestExecutionListener@24665ffa, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@36347f3c]
2021-06-24 13:51:11,448 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:application-home/beans.xml]
2021-06-24 13:51:11,484 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2021-06-24 13:51:11,492 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-core.xml]
2021-06-24 13:51:11,522 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-jpa.xml]
2021-06-24 13:51:11,530 INFO  [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@548bd0ca: startup date [Thu Jun 24 13:51:11 CEST 2021]; root of context hierarchy
2021-06-24 13:51:11,559 WARN  [main] org.springframework.context.annotation.ConfigurationClassEnhancer: @Bean method ApplicationTestConfig.CustomScopeConfigurer is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.
2021-06-24 13:51:11,561 INFO  [main] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-06-24 13:51:11,691 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Building JPA container EntityManagerFactory for persistence unit 'default'
2021-06-24 13:51:11,691 INFO  [main] org.hibernate.jpa.internal.util.LogHelper: HHH000204: Processing PersistenceUnitInfo [name: default]
2021-06-24 13:51:11,861 INFO  [main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
2021-06-24 13:51:11,868 INFO  [main] org.hibernate.envers.boot.internal.EnversServiceImpl: Envers integration enabled? : true
2021-06-24 13:51:12,336 INFO  [main] org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-06-24 13:51:12,336 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-06-24 13:51:12,641 INFO  [main] org.appng.core.domain.PlatformEventListener: Using application context org.springframework.context.support.GenericApplicationContext@548bd0ca: startup date [Thu Jun 24 13:51:11 CEST 2021]; root of context hierarchy
2021-06-24 13:51:12,914 WARN  [main] org.appng.api.support.RequestFactoryBean: invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!