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.
Pineapple includes a prefabricated version of this example in the default configuration. The example is named infrastructure-test-003-dns-resolution-localhost. The default configuration is created by starting Pineapple. The default configuration will also create the required resource in the local environment which is used to execute the test operation on the model.
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:ifp="http://pineapple.dev.java.net/ns/plugin/infrastructure_1_0" > <mmd:model target-resource="infrastructure-test"> <mmd:content> <itp:infrastructure> <itp:dns-resolution-test host="garuda" ip="10.20.30.1" description="host garuda resolves to IP 10.20.30.1 and back" /> </itp:infrastructure> </mmd:content> </mmd:model> </mmd:models>