<?xml version="1.0" encoding="UTF-8"?>
<!--
    Linux on Hyper-V and Azure Test Code, ver. 1.0.0
    Copyright (c) Microsoft Corporation

    All rights reserved.
    Licensed under the Apache License, Version 2.0 (the ""License"");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
        http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
    OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
    ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR
    PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing
    permissions and limitations under the License.
-->
<config>
    <global>
        <logfileRootDir>TestResults</logfileRootDir>
        <defaultSnapshot>ICABase</defaultSnapshot>
        <LisaInitScript>
            <file>.\setupScripts\CreateVMs.ps1</file>
        </LisaInitScript>
    </global>
    <testSuites>
        <suite>
            <suiteName>FC</suiteName>
            <suiteTests>
                <suiteTest>FC_disks_detection</suiteTest>
                <suiteTest>FC_stressTest</suiteTest>
                <suiteTest>FC_SaveRestore_VM</suiteTest>
                <suiteTest>FC_disks_multipath_detection</suiteTest>
                <suiteTest>FC_WWN_basic</suiteTest>
            </suiteTests>
        </suite>
    </testSuites>
    <testCases>
        <test>
            <testName>FC_disks_detection</testName>
            <postTest>SetupScripts\GcovDataCollect.ps1</postTest>
            <testScript>FC_disks.sh</testScript>
            <files>remote-scripts\ica\FC_disks.sh</files>
            <setupScript>setupscripts\FC_AddFibreChannelHba.ps1</setupScript>
            <cleanupScript>setupScripts\FC_RemoveFibreChannelHba.ps1</cleanupScript>
            <timeout>3600</timeout>
            <onError>Continue</onError>
            <testParams>
                <param>TC_COVERED=FC-01,FC-02</param>
            </testParams>
        </test>
        <test>
            <testName>FC_stressTest</testName>
            <postTest>SetupScripts\GcovDataCollect.ps1</postTest>
            <testScript>FC_stressTest.sh</testScript>
            <files>remote-scripts\ica\FC_stressTest.sh</files>
            <files>Tools/iozone3_420.tar</files>
            <setupScript>setupscripts\FC_AddFibreChannelHba.ps1</setupScript>
            <cleanupScript>setupScripts\FC_RemoveFibreChannelHba.ps1</cleanupScript>
            <timeout>7200</timeout>
            <onError>Continue</onError>
            <testParams>
                <param>TC_COVERED=FC-04</param>
                <param>FILE_NAME=iozone3_420.tar</param>
            </testParams>
        </test>
        <test>
            <testName>FC_SaveRestore_VM</testName>
            <testScript>FC_disks.sh</testScript>
            <files>remote-scripts\ica\FC_disks.sh</files>
            <setupScript>setupscripts\FC_AddFibreChannelHba.ps1</setupScript>
            <posttest>
                <file>setupScripts\FC_SaveRestoreVM.ps1</file>
                <file>SetupScripts\GcovDataCollect.ps1</file>
            </posttest>
            <cleanupScript>setupScripts\FC_RemoveFibreChannelHba.ps1</cleanupScript>
            <timeout>7200</timeout>
            <onError>Continue</onError>
            <testParams>
                <param>TC_COVERED=FC-07</param>
            </testParams>
        </test>
        <test>
            <testName>FC_disks_multipath_detection</testName>
            <postTest>SetupScripts\GcovDataCollect.ps1</postTest>
            <testScript>setupscripts\FC_MultipathDetection.ps1</testScript>
            <setupScript>setupscripts\FC_AddFibreChannelHba.ps1</setupScript>
            <cleanupScript>setupScripts\FC_RemoveFibreChannelHba.ps1</cleanupScript>
            <files>remote-scripts\ica\utils.sh</files>
            <timeout>3600</timeout>
            <onError>Continue</onError>
            <testParams>
                <param>TC_COVERED=FC-08</param>
            </testParams>
        </test>
        <test>
            <testName>FC_WWN_basic</testName>
            <postTest>SetupScripts\GcovDataCollect.ps1</postTest>
            <testScript>setupScripts\FC_WWN.ps1</testScript>
            <files>remote-scripts\ica\fc_wwn.sh,remote-scripts/ica/utils.sh</files>
            <setupScript>setupscripts\FC_AddFibreChannelHba.ps1</setupScript>
            <cleanupScript>setupScripts\FC_RemoveFibreChannelHba.ps1</cleanupScript>
            <timeout>800</timeout>
            <onError>Continue</onError>
            <testParams>
                <param>TC_COVERED=FC-09</param>
            </testParams>
        </test>
    </testCases>
    <VMs>
        <vm>
            <hvServer>localhost</hvServer>
            <vmName>code-coverage-fiberchannel</vmName>
            <os>Linux</os>
            <ipv4 />
            <sshKey>rhel5_id_rsa.ppk</sshKey>
            <suite>FC</suite>
            <testParams>
                <param>WWNN=C003FF0000FFFF02,C003FF0000FFFF02</param>
                <param>WWPN=C003FF5C82B30241,C003FF5C82B30242</param>
                <param>vSANName=vFC2</param>
            </testParams>
            <hardware>
                <create>true</create>
                <numCPUs>4</numCPUs>
                <memSize>2048</memSize>
                <disableDiff>True</disableDiff>
                <generation>1</generation>
                <nic>VMBus,External</nic>
            </hardware>
        </vm>
    </VMs>
</config>