The example requires these preconditions to be run:
Three steps are needed to configure the plugin to work:
This example extends the last step of the basic example by adding some new test cases.
For information about how to define resource, credentials and modules refer to the plugin usage page.
Open the model file for the target environment and add the test case:
<?xml version="1.0" encoding="UTF-8"?>
<mmd:models xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mmd="http://pineapple.dev.java.net/ns/module_model_1_0"
xmlns:itp="http://pineapple.dev.java.net/ns/plugin/infrastructure_1_0" >
<mmd:model target-resource="infrastructure-test">
<mmd:content>
<itp:infrastructure>
<itp:http-configuration id="default-http-config" description="My default HTTP configuration" >
<itp:proxy host="bigbossproxy" port="8080"/>
</itp:http-configuration>
<itp:test-load-balancing description="session-stickyness-test for..." requests="5" http-configuration-ref="default-http-config" >
<itp:urls>
<itp:url>http://www.myhost.com</itp:url>
<itp:url>http://www.myhost.com/login</itp:url>
</itp:urls>
<itp:assert>
<itp:properties>
<itp:property name="host" value="null" />
<itp:property name="environment" value="null" />
<itp:property name="location" value="null" />
</itp:properties>
<itp:servers>
<itp:server>qaserver1</itp:server>
<itp:server>qaserver2</itp:server>
<itp:server>qaserver3</itp:server>
</itp:servers>
</itp:assert>
</itp:test-load-balancing>
</itp:infrastructure>
</mmd:content>
</mmd:model>
</mmd:models>