<?xml version="1.0" encoding="UTF-8"?>
<con:testCase id="f77d5949-aace-4baa-aa01-9f8bc9572b5a" discardOkResults="false" failOnError="true" failTestCaseOnErrors="true" keepSession="false" name="HighAvailability" searchProperties="true" timeout="0" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="f77d5949-aace-4baa-aa01-9f8bc9572b5afileName">HighAvailability</con:setting>
  </con:settings>
  <con:testStep type="restrequest" name="U1-Login" id="42664d10-2a43-4d93-943b-3687e3d23e42">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/user/login" methodName="POST" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="U1-Login" id="1462dff4-0950-4f59-a435-496c868230e2" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting>
        </con:settings>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request>{
  "userName" : "admin",
  "userPassword" : "admin"
}</con:request>
        <con:originalUri>http://172.16.4.134/api/v1/user/login</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="155fd46f-3811-4c1a-b5f4-be86f7253481" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="DataAndMetadataAssertion" id="3c253c5c-ef63-4bf5-b26e-8afdf33de283" name="Smart Assertion">
          <con:configuration xsi:type="con:DataAndMetadataAssertion">
            <con:mode>Received Data</con:mode>
            <con:elements>
              <con:path>$['code']</con:path>
              <con:element>code</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>0</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['message']</con:path>
              <con:element>message</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>OK</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['token']</con:path>
              <con:element>token</con:element>
              <con:operatorId>9</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>52f4d48f-3c2d-47ee-bd5e-f486b2bef208</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['userId']</con:path>
              <con:element>userId</con:element>
              <con:operatorId>9</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>yD8pMBfUR4e8SV2TqPtRZQ</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['tenantId']</con:path>
              <con:element>tenantId</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>admin</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:originalMessage>{"code":0,"message":"OK","data":{"token":"52f4d48f-3c2d-47ee-bd5e-f486b2bef208","userId":"yD8pMBfUR4e8SV2TqPtRZQ","tenantId":"admin"}}</con:originalMessage>
          </con:configuration>
        </con:assertion>
        <con:credentials>
          <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
          <con:authType>No Authorization</con:authType>
        </con:credentials>
        <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
        <con:parameters/>
        <con:environmentSpec>
          <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
          <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
        </con:environmentSpec>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="datagen" name="RandomDelay1" id="36d18959-5259-4ac9-a261-d734c26de734">
    <con:settings/>
    <con:config xsi:type="con:DataGeneratorStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:property type="Number">
        <con:configuration>
          <start>0</start>
          <end>10000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random10s</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>0</start>
          <end>20000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random20s</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>0</start>
          <end>30000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random30s</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>0</start>
          <end>60000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random1m</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>0</start>
          <end>120000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random2m</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>0</start>
          <end>180000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random3m</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>0</start>
          <end>300000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random5m</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>180000</start>
          <end>300000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random3-5m</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
      <con:property type="Number">
        <con:configuration>
          <start>10000</start>
          <end>20000</end>
          <step/>
          <pattern/>
          <random>true</random>
          <persist>false</persist>
        </con:configuration>
        <con:name>Random10-20s</con:name>
        <con:mode>STEP</con:mode>
        <con:shared>false</con:shared>
      </con:property>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="U1-Create-C1" id="f76754e7-d47f-4445-b61c-d781b0ef18fc">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/clusters/" methodName="POST" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="U1-Create-C1" id="7dd24763-b143-40ea-b13a-c914b934cc8b" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${U1-Login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request>{
  "clusterName": "testSource",
  "clusterType": "TiDB",
  "clusterVersion": "v5.2.2",
  "copies": 1,
  "cpuArchitecture": "X86_64",
  "dbPassword": "12121212",
  "exclusive": false,
  "parameterGroupID": "",
  "vendor": "Local",
  "region": "Region1",
  "resourceParameters": {
    "instanceResource": [
      {
        "componentType": "TiDB",
        "resource": [
          {
            "count": 1,
            "specCode": "4C8G",
            "zoneCode": "Region1,Zone1_1"
          }
        ],
        "totalNodeCount": 1
      },
      {
        "componentType": "TiKV",
        "resource": [
          {
            "count": 1,
            "specCode": "4C8G",
            "zoneCode": "Region1,Zone1_1"
          }
        ],
        "totalNodeCount": 1
      },
      {
        "componentType": "PD",
        "resource": [
          {
            "count": 1,
            "specCode": "4C8G",
            "zoneCode": "Region1,Zone1_1"
          }
        ],
        "totalNodeCount": 1
      },
      {
        "componentType": "CDC",
        "resource": [
          {
            "count": 1,
            "specCode": "4C8G",
            "zoneCode": "Region1,Zone1_1"
          }
        ],
        "totalNodeCount": 1
      }
    ]
  },
  "tags": [
    "tag1"
  ]
}</con:request>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="253804b1-9a82-4def-bd81-00c3e87323d4" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="DataAndMetadataAssertion" id="e77da43e-2e97-4f7d-b505-c4eeaa8d82c2" name="Smart Assertion">
          <con:configuration xsi:type="con:DataAndMetadataAssertion">
            <con:mode>Received Data</con:mode>
            <con:elements>
              <con:path>$['code']</con:path>
              <con:element>code</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>0</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['message']</con:path>
              <con:element>message</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>OK</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['workFlowId']</con:path>
              <con:element>workFlowId</con:element>
              <con:operatorId>12</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>KjGHu0cKQt2AqOmh9iJLdw</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusterId']</con:path>
              <con:element>clusterId</con:element>
              <con:operatorId>12</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>Vp5wW4CZSK-xb9vxh9ejXg</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:originalMessage>{"code":0,"message":"OK","data":{"workFlowId":"KjGHu0cKQt2AqOmh9iJLdw","clusterId":"Vp5wW4CZSK-xb9vxh9ejXg"}}</con:originalMessage>
          </con:configuration>
        </con:assertion>
        <con:credentials>
          <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
          <con:authType>No Authorization</con:authType>
        </con:credentials>
        <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
        <con:parameters/>
        <con:environmentSpec>
          <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
          <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
        </con:environmentSpec>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="waitCreateC1" id="8036ee4c-421c-4ef0-ad4a-19f3ff09832c">
    <con:settings/>
    <con:config>
      <delay>64524</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="delayRandom" id="bb964f9d-e3bb-4029-9b96-b5cef461d1ed">
    <con:settings/>
    <con:config>
      <delay>${RandomDelay1#Random3-5m}</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="U1-Clone-C3" id="eb05afc6-e4fb-49ad-8ad2-92f380bce4a2">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/clusters/clone" methodName="POST" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="U1-Clone-C3" id="f4abbc73-c418-4a76-8268-c037ddc60e3c" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${U1-Login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:endpoint>http://172.16.4.134:4116</con:endpoint>
        <con:request>{
   "clusterName" : "testTarget",
   "clusterType" : "TiDB",
   "clusterVersion" : "v5.2.2",
   "copies" : 1,
   "cpuArchitecture" : "X86_64",
   "dbPassword" : "mypassword",
   "dbUser" : "",
   "exclusive" : false,
   "parameterGroupID" : "",
   "region" : "Region1",
   "tags" : [
      "tag2"
   ],
   "resourceParameters" : {
      "instanceResource" : [
         {
            "componentType" : "TiDB",
            "resource" : [
               {
                  "count" : 1,
                  "diskCapacity" : 0,
                  "diskType" : "SATA",
                  "specCode" : "4C8G",
                  "zoneCode" : "Zone1_1"
               }
            ],
            "totalNodeCount" : 1
         },
         {
            "componentType" : "TiKV",
            "resource" : [
               {
                  "count" : 1,
                  "diskCapacity" : 0,
                  "diskType" : "SATA",
                  "specCode" : "4C8G",
                  "zoneCode" : "Zone1_1"
               }
            ],
            "totalNodeCount" : 1
         },
         {
            "componentType" : "PD",
            "resource" : [
               {
                  "count" : 1,
                  "diskCapacity" : 0,
                  "diskType" : "SATA",
                  "specCode" : "4C8G",
                  "zoneCode" : "Zone1_1"
               }
            ],
            "totalNodeCount" : 1
         },
      {
        "componentType": "CDC",
        "resource": [
          {
            "count": 1,
            "specCode": "4C8G",
            "zoneCode": "Region1,Zone1_1"
          }
        ],
        "totalNodeCount": 1
      }
      ]
   },
   "tls" : false,
   "vendor" : "Local",
   "cloneStrategy" : "CDCSync",
   "sourceClusterId" : "${U1-Create-C1#Response#$['data']['clusterId']}"
}</con:request>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/clone</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="1e422b77-fd02-4827-bacf-5e6f9937bf6b" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="Response SLA Assertion" id="5f8cac39-fd09-4206-95f8-af280abd2275" name="Response SLA">
          <con:configuration>
            <SLA>400</SLA>
          </con:configuration>
        </con:assertion>
        <con:assertion type="DataAndMetadataAssertion" id="df1f1883-2772-40fc-a335-0d38d11b422c" name="Smart Assertion">
          <con:configuration xsi:type="con:DataAndMetadataAssertion">
            <con:mode>Received Data</con:mode>
            <con:elements>
              <con:path>$['code']</con:path>
              <con:element>code</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>0</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['message']</con:path>
              <con:element>message</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>[21301]	cluster HK_p7MZyQvCexMWEblCV4w version must be greater than or equal to v5.2.2</con:expectedValue>
              <con:caseSensitive>false</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']</con:path>
              <con:element>data</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>{}</con:expectedValue>
              <con:caseSensitive>false</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>4</con:expectedDataType>
            </con:elements>
            <con:originalMessage>{"code":21301,"message":"[21301]\tcluster HK_p7MZyQvCexMWEblCV4w version must be greater than or equal to v5.2.2","data":{}}</con:originalMessage>
          </con:configuration>
        </con:assertion>
        <con:credentials>
          <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
          <con:authType>No Authorization</con:authType>
        </con:credentials>
        <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
        <con:parameters/>
        <con:environmentSpec>
          <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
          <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
        </con:environmentSpec>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="delayRandom 2" id="8676d892-e329-4964-8641-66a01c7b9b8a">
    <con:settings/>
    <con:config>
      <delay>${RandomDelay1#Random1m}</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="delayRandom 2 2" id="bbf3687f-8220-46d6-aa1a-282cc58da088">
    <con:settings/>
    <con:config>
      <delay>${RandomDelay1#Random1m}</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="waitCloneC3" id="daf4148f-2f3b-4599-8443-f0a055a23181">
    <con:settings/>
    <con:config>
      <delay>300000</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="U1-Switchover-C1C3" id="0f7f0acf-1335-4189-b2bd-12c02bd583b6">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/clusters/switchover" methodName="POST" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="U1-Switchover-C1C3" id="ffdf4c43-3686-4b57-9685-ba610db71ae4" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${U1-Login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request>{
   "sourceClusterId" : "${U1-Create-C1#Response#$['data']['clusterId']}",
   "targetClusterID" : "${U1-Clone-C3#Response#$['data']['clusterId']}",
   "force" : false
}</con:request>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/switchover</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="538d116a-7ad2-4bdd-96fc-e96b1bb5f4da" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:credentials>
          <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
          <con:authType>No Authorization</con:authType>
        </con:credentials>
        <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
        <con:parameters/>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="delayRandom 2 3" id="32ab2d48-7798-423a-9d10-2930eff8fb1e">
    <con:settings/>
    <con:config>
      <delay>${RandomDelay1#Random1m}</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="waitSwitchoverC1C3" id="2f90e456-b5f7-4894-b684-7819be6e01a7">
    <con:settings/>
    <con:config>
      <delay>60000</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="delayRandom 3" id="9f0e4502-c5d0-44fa-887e-f51357ebcff6">
    <con:settings/>
    <con:config>
      <delay>${RandomDelay1#Random20s}</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="U1-Switchover-C3C1" id="08d43dbd-b3b7-418b-92a5-61d72be4a2fb">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/clusters/switchover" methodName="POST" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="U1-Switchover-C3C1" id="ffdf4c43-3686-4b57-9685-ba610db71ae4" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${U1-Login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request>{
   "sourceClusterId" : "${U1-Clone-C3#Response#$['data']['clusterId']}",
   "targetClusterID" : "${U1-Create-C1#Response#$['data']['clusterId']}",
   "force" : false
}</con:request>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/switchover</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="538d116a-7ad2-4bdd-96fc-e96b1bb5f4da" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:credentials>
          <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
          <con:authType>No Authorization</con:authType>
        </con:credentials>
        <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
        <con:parameters/>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="delayRandom 2 4" id="67d1049e-0070-4a75-a4d1-4fb26b87721a">
    <con:settings/>
    <con:config>
      <delay>${RandomDelay1#Random1m}</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="waitSwitchoverC3C1" id="5e6dce47-ec08-4e25-919f-5449dd500b0d">
    <con:settings/>
    <con:config>
      <delay>60000</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="delayRandom 4" id="5fb45b3d-ce52-4173-bb43-6f68b7550be3">
    <con:settings/>
    <con:config>
      <delay>${RandomDelay1#Random20s}</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="U1-Delete-C3" id="d5c24670-f64a-4df0-9324-3e8927cdf93d">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/clusters/{clusterId}" methodName="DELETE" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="U1-Delete-C3" id="aba0fb8b-8115-4c9f-a9ec-7c3cb5cc6253" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${U1-Login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request>{
  "autoBackup" : false,
  "keepHistoryBackupRecords" : true
}</con:request>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Vp5wW4CZSK-xb9vxh9ejXg</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="479f2ac0-5eaa-4619-abb2-a868f4774e2b" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="DataAndMetadataAssertion" id="d317d848-0573-4e38-8409-235803f2494b" name="Smart Assertion">
          <con:configuration xsi:type="con:DataAndMetadataAssertion">
            <con:mode>Received Data</con:mode>
            <con:elements>
              <con:path>$['code']</con:path>
              <con:element>code</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>0</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['message']</con:path>
              <con:element>message</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>OK</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['workFlowId']</con:path>
              <con:element>workFlowId</con:element>
              <con:operatorId>12</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>ZtQSiyn1Qi6sl1d5NZv0iA</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusterID']</con:path>
              <con:element>clusterID</con:element>
              <con:operatorId>12</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>Vp5wW4CZSK-xb9vxh9ejXg</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:originalMessage>{"code":0,"message":"OK","data":{"workFlowId":"ZtQSiyn1Qi6sl1d5NZv0iA","clusterID":"Vp5wW4CZSK-xb9vxh9ejXg"}}</con:originalMessage>
          </con:configuration>
        </con:assertion>
        <con:credentials>
          <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
          <con:authType>No Authorization</con:authType>
        </con:credentials>
        <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
        <con:parameters>
          <con:entry key="clusterId" value="${U1-Clone-C3#Response#$['data']['clusterId']}"/>
        </con:parameters>
        <con:environmentSpec>
          <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
          <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
        </con:environmentSpec>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="waitDeleteC3" id="e72a987e-bf7c-43d5-9a3a-a037a84ffae3">
    <con:settings/>
    <con:config>
      <delay>60000</delay>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="U1-Delete-C1" id="02e963c2-6898-4652-8a8d-9717bfcd47b7">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/clusters/{clusterId}" methodName="DELETE" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="U1-Delete-C1" id="aba0fb8b-8115-4c9f-a9ec-7c3cb5cc6253" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${U1-Login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request>{
  "autoBackup" : false,
  "keepHistoryBackupRecords" : true
}</con:request>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Vp5wW4CZSK-xb9vxh9ejXg</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="479f2ac0-5eaa-4619-abb2-a868f4774e2b" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="DataAndMetadataAssertion" id="d317d848-0573-4e38-8409-235803f2494b" name="Smart Assertion">
          <con:configuration xsi:type="con:DataAndMetadataAssertion">
            <con:mode>Received Data</con:mode>
            <con:elements>
              <con:path>$['code']</con:path>
              <con:element>code</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>0</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['message']</con:path>
              <con:element>message</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>OK</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['workFlowId']</con:path>
              <con:element>workFlowId</con:element>
              <con:operatorId>12</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>ZtQSiyn1Qi6sl1d5NZv0iA</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusterID']</con:path>
              <con:element>clusterID</con:element>
              <con:operatorId>12</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>Vp5wW4CZSK-xb9vxh9ejXg</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:originalMessage>{"code":0,"message":"OK","data":{"workFlowId":"ZtQSiyn1Qi6sl1d5NZv0iA","clusterID":"Vp5wW4CZSK-xb9vxh9ejXg"}}</con:originalMessage>
          </con:configuration>
        </con:assertion>
        <con:credentials>
          <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
          <con:authType>No Authorization</con:authType>
        </con:credentials>
        <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
        <con:parameters>
          <con:entry key="clusterId" value="${U1-Create-C1#Response#$['data']['clusterId']}"/>
        </con:parameters>
        <con:environmentSpec>
          <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
          <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
            <con:authProfile>Inherit From Parent</con:authProfile>
          </con:entry>
        </con:environmentSpec>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="delay" name="waitDeleteC1" id="41d71769-3f66-4f5c-88bc-8fcf97b2e1cb">
    <con:settings/>
    <con:config>
      <delay>60000</delay>
    </con:config>
  </con:testStep>
  <con:properties/>
  <con:reportParameters/>
</con:testCase>
