Skip to content

Regression

org.appng.application.manager.business.SitesTest.testShowSites

Failing for the past 1 build (Since Failed#3 )
Took 0.38 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected presence of child nodes to be 'true' but was 'false' - comparing <linkpanel...> at /datasource[1]/config[1]/linkpanel[1] to <linkpanel...> at /datasource[1]/config[1]/linkpanel[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="sites">
    <config>
        <title id="sites">Sites</title>
        <permissions>
            <permission ref="site.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="name"/>
            <param name="domain"/>
            <param name="active"/>
        </params>
        <meta-data bindClass="org.appng.api.model.Site">
            <field name="name" type="text" binding="name">
                <sort/>
                <label id="name">Name</label>
            </field>
            <field name="host" type="text" binding="host">
                <sort/>
                <label id="host">Host</label>
            </field>
            <field name="domain" type="text" binding="domain">
                <sort/>
                <label id="domain">Domain</label>
            </field>
            <field name="description" type="text" binding="description">
                <label id="description">Description</label>
            </field>
            <field name="active" type="image" binding="active">
                <sort/>
                <label id="active">Active</label>
                <icon condition="${current.active}">led_green</icon>
                <icon condition="${!current.active}">led_red</icon>
            </field>
            <field name="running" type="image" binding="running">
                <label id="running">Running</label>
                <icon condition="${current.running}">led_green</icon>
                <icon condition="${!current.running}">led_red</icon>
            </field>
            <field name="startupTime" type="date" format="yyyy-MM-dd HH:mm:ss" binding="startupTime">
                <label id="startupTime">Startup time</label>
            </field>
            <field name="actions" type="linkpanel" binding="actions">
                <label id="actions">Actions</label>
            </field>
        </meta-data>
        <linkpanel id="other" location="both"/>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/sites?act=start&amp;siteid=${current.id}">
                <condition expression="${current.active and current.state.name() eq 'STOPPED'}"/>
                <permissions>
                    <permission ref="site.reload" mode="set"></permission>
                </permissions>
                <label id="site.start">Start</label>
                <icon>activate</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/sites?act=stop&amp;siteid=${current.id}">
                <condition expression="${current.state.name() eq 'STARTED'}"/>
                <permissions>
                    <permission ref="site.reload" mode="set"></permission>
                </permissions>
                <label id="site.stop">Stop</label>
                <icon>deactivate</icon>
                <confirmation id="site.stop.confirm" params="#{name}">Stop site #{name}?</confirmation>
            </link>
            <link id="actions[3]" mode="intern" target="/sites/update/${current.id}" default="true">
                <permissions>
                    <permission ref="site.edit" mode="set"></permission>
                </permissions>
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
        </linkpanel>
    </config>
    <data>
        <selectionGroup>
            <selection id="f_sn" type="text">
                <title id="name">Name</title>
                <option value="" name="f_sn"/>
            </selection>
            <selection id="f_sd" type="text">
                <title id="domain">Domain</title>
                <option value="" name="f_sd"/>
            </selection>
            <selection id="f_sa" type="radio">
                <title id="active">Active</title>
                <option value="all" name="all" selected="true"/>
                <option value="true" name="yes" selected="false"/>
                <option value="false" name="no" selected="false"/>
            </selection>
        </selectionGroup>
        <resultset chunk="0" chunkname="sites" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="2">
            <result>
                <field name="name" type="text">
                    <value>localhost</value>
                </field>
                <field name="host" type="text">
                    <value>localhost</value>
                </field>
                <field name="domain" type="text">
                    <value>localhost</value>
                </field>
                <field name="description" type="text">
                    <value></value>
                </field>
                <field name="active" type="image">
                    <value>true</value>
                    <icon type="class">led_green</icon>
                </field>
                <field name="running" type="image">
                    <value>true</value>
                    <icon type="class">led_green</icon>
                </field>
                <field name="startupTime" type="date">
                    <value></value>
                </field>
                <linkpanel id="actions" location="inline">
                    <link id="actions[2]" mode="intern" target="/sites?act=stop&amp;siteid=1">
                        <label id="site.stop">Stop</label>
                        <icon>deactivate</icon>
                        <confirmation id="site.stop.confirm" params="#{name}">Stop site localhost?</confirmation>
                    </link>
                    <link id="actions[3]" mode="intern" target="/sites/update/1" default="true">
                        <label id="edit">Edit</label>
                        <icon>edit</icon>
                    </link>
                </linkpanel>
            </result>
            <result>
                <field name="name" type="text">
                    <value>site2</value>
                </field>
                <field name="host" type="text">
                    <value>example.com</value>
                </field>
                <field name="domain" type="text">
                    <value>example.com</value>
                </field>
                <field name="description" type="text">
                    <value>a description</value>
                </field>
                <field name="active" type="image">
                    <value>true</value>
                    <icon type="class">led_green</icon>
                </field>
                <field name="running" type="image">
                    <value>false</value>
                    <icon type="class">led_red</icon>
                </field>
                <field name="startupTime" type="date">
                    <value></value>
                </field>
                <linkpanel id="actions" location="inline">
                    <link id="actions[1]" mode="intern" target="/sites?act=start&amp;siteid=3">
                        <label id="site.start">Start</label>
                        <icon>activate</icon>
                    </link>
                    <link id="actions[3]" mode="intern" target="/sites/update/3" default="true">
                        <label id="edit">Edit</label>
                        <icon>edit</icon>
                    </link>
                </linkpanel>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected presence of child nodes to be 'true' but was 'false' - comparing <linkpanel...> at /datasource[1]/config[1]/linkpanel[1] to <linkpanel...> at /datasource[1]/config[1]/linkpanel[1]

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected presence of child nodes to be 'true' but was 'false' - comparing <linkpanel...> at /datasource[1]/config[1]/linkpanel[1] to <linkpanel...> at /datasource[1]/config[1]/linkpanel[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="sites">
    <config>
        <title id="sites">Sites</title>
        <permissions>
            <permission ref="site.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="name"/>
            <param name="domain"/>
            <param name="active"/>
        </params>
        <meta-data bindClass="org.appng.api.model.Site">
            <field name="name" type="text" binding="name">
                <sort/>
                <label id="name">Name</label>
            </field>
            <field name="host" type="text" binding="host">
                <sort/>
                <label id="host">Host</label>
            </field>
            <field name="domain" type="text" binding="domain">
                <sort/>
                <label id="domain">Domain</label>
            </field>
            <field name="description" type="text" binding="description">
                <label id="description">Description</label>
            </field>
            <field name="active" type="image" binding="active">
                <sort/>
                <label id="active">Active</label>
                <icon condition="${current.active}">led_green</icon>
                <icon condition="${!current.active}">led_red</icon>
            </field>
            <field name="running" type="image" binding="running">
                <label id="running">Running</label>
                <icon condition="${current.running}">led_green</icon>
                <icon condition="${!current.running}">led_red</icon>
            </field>
            <field name="startupTime" type="date" format="yyyy-MM-dd HH:mm:ss" binding="startupTime">
                <label id="startupTime">Startup time</label>
            </field>
            <field name="actions" type="linkpanel" binding="actions">
                <label id="actions">Actions</label>
            </field>
        </meta-data>
        <linkpanel id="other" location="both"/>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/sites?act=start&amp;siteid=${current.id}">
                <condition expression="${current.active and current.state.name() eq 'STOPPED'}"/>
                <permissions>
                    <permission ref="site.reload" mode="set"></permission>
                </permissions>
                <label id="site.start">Start</label>
                <icon>activate</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/sites?act=stop&amp;siteid=${current.id}">
                <condition expression="${current.state.name() eq 'STARTED'}"/>
                <permissions>
                    <permission ref="site.reload" mode="set"></permission>
                </permissions>
                <label id="site.stop">Stop</label>
                <icon>deactivate</icon>
                <confirmation id="site.stop.confirm" params="#{name}">Stop site #{name}?</confirmation>
            </link>
            <link id="actions[3]" mode="intern" target="/sites/update/${current.id}" default="true">
                <permissions>
                    <permission ref="site.edit" mode="set"></permission>
                </permissions>
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
        </linkpanel>
    </config>
    <data>
        <selectionGroup>
            <selection id="f_sn" type="text">
                <title id="name">Name</title>
                <option value="" name="f_sn"/>
            </selection>
            <selection id="f_sd" type="text">
                <title id="domain">Domain</title>
                <option value="" name="f_sd"/>
            </selection>
            <selection id="f_sa" type="radio">
                <title id="active">Active</title>
                <option value="all" name="all" selected="true"/>
                <option value="true" name="yes" selected="false"/>
                <option value="false" name="no" selected="false"/>
            </selection>
        </selectionGroup>
        <resultset chunk="0" chunkname="sites" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="2">
            <result>
                <field name="name" type="text">
                    <value>localhost</value>
                </field>
                <field name="host" type="text">
                    <value>localhost</value>
                </field>
                <field name="domain" type="text">
                    <value>localhost</value>
                </field>
                <field name="description" type="text">
                    <value></value>
                </field>
                <field name="active" type="image">
                    <value>true</value>
                    <icon type="class">led_green</icon>
                </field>
                <field name="running" type="image">
                    <value>true</value>
                    <icon type="class">led_green</icon>
                </field>
                <field name="startupTime" type="date">
                    <value></value>
                </field>
                <linkpanel id="actions" location="inline">
                    <link id="actions[2]" mode="intern" target="/sites?act=stop&amp;siteid=1">
                        <label id="site.stop">Stop</label>
                        <icon>deactivate</icon>
                        <confirmation id="site.stop.confirm" params="#{name}">Stop site localhost?</confirmation>
                    </link>
                    <link id="actions[3]" mode="intern" target="/sites/update/1" default="true">
                        <label id="edit">Edit</label>
                        <icon>edit</icon>
                    </link>
                </linkpanel>
            </result>
            <result>
                <field name="name" type="text">
                    <value>site2</value>
                </field>
                <field name="host" type="text">
                    <value>example.com</value>
                </field>
                <field name="domain" type="text">
                    <value>example.com</value>
                </field>
                <field name="description" type="text">
                    <value>a description</value>
                </field>
                <field name="active" type="image">
                    <value>true</value>
                    <icon type="class">led_green</icon>
                </field>
                <field name="running" type="image">
                    <value>false</value>
                    <icon type="class">led_red</icon>
                </field>
                <field name="startupTime" type="date">
                    <value></value>
                </field>
                <linkpanel id="actions" location="inline">
                    <link id="actions[1]" mode="intern" target="/sites?act=start&amp;siteid=3">
                        <label id="site.start">Start</label>
                        <icon>activate</icon>
                    </link>
                    <link id="actions[3]" mode="intern" target="/sites/update/3" default="true">
                        <label id="edit">Edit</label>
                        <icon>edit</icon>
                    </link>
                </linkpanel>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected presence of child nodes to be 'true' but was 'false' - comparing <linkpanel...> at /datasource[1]/config[1]/linkpanel[1] to <linkpanel...> at /datasource[1]/config[1]/linkpanel[1]

	at org.appng.application.manager.business.SitesTest.testShowSites(SitesTest.java:139)

Standard Output

2022-07-11 14:06:00,585 INFO  [main] org.appng.api.support.SiteClassLoader: SiteClassLoader#1902135910 for site localhost with parent sun.misc.Launcher$AppClassLoader#1028566121 created
2022-07-11 14:06:00,749 INFO  [main] org.appng.core.domain.PlatformEventListener: Created entry null CREATE appNG testsupport Site site2