<?xml version="1.0" encoding="UTF-8"?>
<con:testCase id="2707951b-7fdb-4d4e-80e9-52fe5a073dd4" discardOkResults="false" failOnError="true" failTestCaseOnErrors="true" keepSession="false" name="QueryClusterLog" searchProperties="true" timeout="0" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="2707951b-7fdb-4d4e-80e9-52fe5a073dd4fileName">QueryClusterLog</con:setting>
  </con:settings>
  <con:testStep type="restrequest" name="login" id="f9f1babb-ba8a-49f5-85e1-d3eabb4c5b83">
    <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="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="f219f80f-00a7-4185-a2f8-829c0dff9552" 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>e0e398e1-80e9-48a8-a5fe-eaf067a58e56</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>A7q4Z1P6SEyH9MGyVFMhkA</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":"e0e398e1-80e9-48a8-a5fe-eaf067a58e56","userId":"A7q4Z1P6SEyH9MGyVFMhkA","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="restrequest" name="cluster" id="34d62e04-ee51-45b2-b1ac-f1e45681a766">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/clusters/" methodName="GET" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="cluster" id="f985b04d-12b3-4c64-8a6f-5def9b90bb6e" mediaType="application/json">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${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/>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="bd829bab-2de5-44c4-9df8-59be59877fd4" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="DataAndMetadataAssertion" id="8d25e5b7-71e8-472a-a086-b5afc76c9087" 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>false</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>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']['clusters'][0]['clusterId']</con:path>
              <con:element>clusterId</con:element>
              <con:operatorId>9</con:operatorId>
              <con:enabled>true</con:enabled>
              <con:expectedValue>dNP4olKcQ721S6gk1eX9pw</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['tags'][0]</con:path>
              <con:element>0</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>tag1</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['tls']</con:path>
              <con:element>tls</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>false</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>3</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['status']</con:path>
              <con:element>status</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>Running</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['role']</con:path>
              <con:element>role</con:element>
              <con:operatorId>9</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue xsi:nil="true"/>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['copies']</con:path>
              <con:element>copies</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</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>$['data']['clusters'][0]['exclusive']</con:path>
              <con:element>exclusive</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>false</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>3</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['cpuArchitecture']</con:path>
              <con:element>cpuArchitecture</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>X86_64</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['alertUrl']</con:path>
              <con:element>alertUrl</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>172.16.6.104:10044</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['grafanaUrl']</con:path>
              <con:element>grafanaUrl</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>172.16.6.104:10043</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['maintainStatus']</con:path>
              <con:element>maintainStatus</con:element>
              <con:operatorId>9</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue xsi:nil="true"/>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['maintainWindow']</con:path>
              <con:element>maintainWindow</con:element>
              <con:operatorId>9</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue xsi:nil="true"/>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['intranetConnectAddresses'][0]</con:path>
              <con:element>0</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>172.16.6.102:10000</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['extranetConnectAddresses'][0]</con:path>
              <con:element>0</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>172.16.6.102:10000</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['whitelist']</con:path>
              <con:element>whitelist</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>[]</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>4</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['cpuUsage']['total']</con:path>
              <con:element>total</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>100</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['cpuUsage']['used']</con:path>
              <con:element>used</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>50</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['cpuUsage']['usageRate']</con:path>
              <con:element>usageRate</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>0.5</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['memoryUsage']['total']</con:path>
              <con:element>total</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>100</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['memoryUsage']['used']</con:path>
              <con:element>used</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>50</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['memoryUsage']['usageRate']</con:path>
              <con:element>usageRate</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>0.5</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['storageUsage']['total']</con:path>
              <con:element>total</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>100</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['storageUsage']['used']</con:path>
              <con:element>used</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>50</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['storageUsage']['usageRate']</con:path>
              <con:element>usageRate</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>0.5</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['backupFileUsage']['total']</con:path>
              <con:element>total</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>100</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['backupFileUsage']['used']</con:path>
              <con:element>used</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>50</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['backupFileUsage']['usageRate']</con:path>
              <con:element>usageRate</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>0.5</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['createTime']</con:path>
              <con:element>createTime</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>2021-12-21T12:50:40.177528916+08:00</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['updateTime']</con:path>
              <con:element>updateTime</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>2021-12-21T12:51:25.360098316+08:00</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['deleteTime']</con:path>
              <con:element>deleteTime</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>0001-01-01T00:00:00Z</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['page']['page']</con:path>
              <con:element>page</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</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>$['page']['pageSize']</con:path>
              <con:element>pageSize</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</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>$['page']['total']</con:path>
              <con:element>total</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>1</con:expectedValue>
              <con:caseSensitive>true</con:caseSensitive>
              <con:numberType>true</con:numberType>
              <con:expectedDataType>2</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['userId']</con:path>
              <con:element>userId</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>l_CfTmx3ScOPXTQqr3mLeg</con:expectedValue>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['clusterName']</con:path>
              <con:element>clusterName</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>tidb-test</con:expectedValue>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['clusterType']</con:path>
              <con:element>clusterType</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>TiDB</con:expectedValue>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['clusterVersion']</con:path>
              <con:element>clusterVersion</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>v4.0.12</con:expectedValue>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:elements>
              <con:path>$['data']['clusters'][0]['dbUser']</con:path>
              <con:element>dbUser</con:element>
              <con:operatorId>1</con:operatorId>
              <con:enabled>false</con:enabled>
              <con:expectedValue>root</con:expectedValue>
              <con:numberType>false</con:numberType>
              <con:expectedDataType>1</con:expectedDataType>
            </con:elements>
            <con:originalMessage>{"code":0,"message":"OK","data":{"clusters":[{"clusterId":"dNP4olKcQ721S6gk1eX9pw","userId":"l_CfTmx3ScOPXTQqr3mLeg","clusterName":"tidb-test","clusterType":"TiDB","clusterVersion":"v4.0.12","dbUser":"root","tags":["tag1"],"tls":false,"status":"Running","role":"","copies":0,"exclusive":false,"cpuArchitecture":"X86_64","alertUrl":"172.16.6.104:10044","grafanaUrl":"172.16.6.104:10043","maintainStatus":"","maintainWindow":"","intranetConnectAddresses":["172.16.6.102:10000"],"extranetConnectAddresses":["172.16.6.102:10000"],"whitelist":[],"cpuUsage":{"total":100,"used":50,"usageRate":0.5},"memoryUsage":{"total":100,"used":50,"usageRate":0.5},"storageUsage":{"total":100,"used":50,"usageRate":0.5},"backupFileUsage":{"total":100,"used":50,"usageRate":0.5},"createTime":"2021-12-21T12:50:40.177528916+08:00","updateTime":"2021-12-21T12:51:25.360098316+08:00","deleteTime":"0001-01-01T00:00:00Z"}]},"page":{"page":0,"pageSize":0,"total":1}}</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="clusterType" value=""/>
          <con:entry key="clusterTag" value=""/>
          <con:entry key="clusterName" value="tidb-test"/>
          <con:entry key="pageSize" value="10"/>
          <con:entry key="page" value="1"/>
          <con:entry key="clusterId" value=""/>
          <con:entry key="clusterStatus" value=""/>
        </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="restrequest" name="queryLog" id="dedbc7bd-eda2-4421-880f-fc458c0ded17">
    <con:settings/>
    <con:config service="TiEM UI API" methodName="GET" resourcePath="/api/v1/clusters/{clusterId}/log" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="queryLog" id="92393ab0-84b6-407a-9f7e-afba193cb0b5" mediaType="application/json">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:encoding>UTF-8</con:encoding>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request/>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Q1Mb3YqaRAmjfUvjqjt9Uw/log</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="1e2f06c5-1c28-4a4f-a1f7-0410be248f34" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="JsonPath Match" id="8bd7afab-4056-4e84-a815-ffbb29e8a82b" name="JSONPath Match">
          <con:configuration>
            <path>$['data']['results'][0]['clusterId']</path>
            <content>${queryLog#clusterId}</content>
            <allowWildcards>false</allowWildcards>
            <ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
            <ignoreComments>false</ignoreComments>
          </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="level" value=""/>
          <con:entry key="ip" value=""/>
          <con:entry key="module" value=""/>
          <con:entry key="pageSize" value="10"/>
          <con:entry key="startTime" value=""/>
          <con:entry key="clusterId" value="${cluster#Response#$['data']['clusters'][0]['clusterId']}"/>
          <con:entry key="page" value="1"/>
          <con:entry key="endTime" value=""/>
          <con:entry key="message" value=""/>
        </con:parameters>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="queryLogByLevel" id="a5299836-0a98-447f-a27a-c42b2a4fcd08">
    <con:settings/>
    <con:config service="TiEM UI API" methodName="GET" resourcePath="/api/v1/clusters/{clusterId}/log" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="queryLogByLevel" id="92393ab0-84b6-407a-9f7e-afba193cb0b5" mediaType="application/json">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:encoding>UTF-8</con:encoding>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request/>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Q1Mb3YqaRAmjfUvjqjt9Uw/log</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="1e2f06c5-1c28-4a4f-a1f7-0410be248f34" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="JsonPath Existence Match" id="3e70163f-3310-457a-9e4a-41e6d4975737" name="JSONPath Existence Match">
          <con:configuration>
            <path>$['data']['results'][0]['level']</path>
            <content>true</content>
            <allowWildcards>false</allowWildcards>
            <ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
            <ignoreComments>false</ignoreComments>
          </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="level" value="${queryLog#Response#$['data']['results'][0]['level']}"/>
          <con:entry key="ip" value=""/>
          <con:entry key="module" value=""/>
          <con:entry key="pageSize" value="10"/>
          <con:entry key="startTime" value=""/>
          <con:entry key="clusterId" value="${cluster#Response#$['data']['clusters'][0]['clusterId']}"/>
          <con:entry key="page" value="1"/>
          <con:entry key="endTime" value=""/>
          <con:entry key="message" value=""/>
        </con:parameters>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="queryLogByModule" id="35ef662f-3fa5-4d6d-b718-b894fd34e553">
    <con:settings/>
    <con:config service="TiEM UI API" methodName="GET" resourcePath="/api/v1/clusters/{clusterId}/log" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="queryLogByModule" id="92393ab0-84b6-407a-9f7e-afba193cb0b5" mediaType="application/json">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:encoding>UTF-8</con:encoding>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request/>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Q1Mb3YqaRAmjfUvjqjt9Uw/log</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="1e2f06c5-1c28-4a4f-a1f7-0410be248f34" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="JsonPath Existence Match" id="b7e1f477-c8a3-483c-92a6-750845ebf190" name="JSONPath Existence Match">
          <con:configuration>
            <path>$['data']['results'][0]['module']</path>
            <content>true</content>
            <allowWildcards>false</allowWildcards>
            <ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
            <ignoreComments>false</ignoreComments>
          </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="level" value=""/>
          <con:entry key="module" value="${queryLog#Response#$['data']['results'][0]['module']}"/>
          <con:entry key="ip" value=""/>
          <con:entry key="pageSize" value="10"/>
          <con:entry key="startTime" value=""/>
          <con:entry key="clusterId" value="${cluster#Response#$['data']['clusters'][0]['clusterId']}"/>
          <con:entry key="page" value="1"/>
          <con:entry key="endTime" value=""/>
          <con:entry key="message" value=""/>
        </con:parameters>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="queryLogByMessage" id="8c01cc45-e221-41d9-a852-d6248788fd4e">
    <con:settings/>
    <con:config service="TiEM UI API" methodName="GET" resourcePath="/api/v1/clusters/{clusterId}/log" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="queryLogByMessage" id="92393ab0-84b6-407a-9f7e-afba193cb0b5" mediaType="application/json">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:encoding>UTF-8</con:encoding>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request/>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Q1Mb3YqaRAmjfUvjqjt9Uw/log</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="1e2f06c5-1c28-4a4f-a1f7-0410be248f34" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="JsonPath Existence Match" id="ab7d3917-d8d6-4c6b-b424-12c36817fb0a" name="JSONPath Existence Match">
          <con:configuration>
            <path>$['data']['results'][0]['message']</path>
            <content>true</content>
            <allowWildcards>false</allowWildcards>
            <ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
            <ignoreComments>false</ignoreComments>
          </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="level" value=""/>
          <con:entry key="ip" value=""/>
          <con:entry key="module" value=""/>
          <con:entry key="pageSize" value="10"/>
          <con:entry key="startTime" value=""/>
          <con:entry key="clusterId" value="${cluster#Response#$['data']['clusters'][0]['clusterId']}"/>
          <con:entry key="page" value="1"/>
          <con:entry key="endTime" value=""/>
          <con:entry key="message" value="${queryLog#Response#$['data']['results'][0]['message']}"/>
        </con:parameters>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="queryLogByIp" id="995402a0-b673-41cf-a6ce-12f9439f4893">
    <con:settings/>
    <con:config service="TiEM UI API" methodName="GET" resourcePath="/api/v1/clusters/{clusterId}/log" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="queryLogByIp" id="92393ab0-84b6-407a-9f7e-afba193cb0b5" mediaType="application/json">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:encoding>UTF-8</con:encoding>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request/>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Q1Mb3YqaRAmjfUvjqjt9Uw/log</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="1e2f06c5-1c28-4a4f-a1f7-0410be248f34" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>200</codes>
          </con:configuration>
        </con:assertion>
        <con:assertion type="JsonPath Existence Match" id="e955b36e-0d36-4f8b-adef-379ae32917ed" name="JSONPath Existence Match">
          <con:configuration>
            <path>$['data']['results'][0]['ip']</path>
            <content>true</content>
            <allowWildcards>false</allowWildcards>
            <ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
            <ignoreComments>false</ignoreComments>
          </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="level" value=""/>
          <con:entry key="ip" value="${queryLog#Response#$['data']['results'][0]['ip']}"/>
          <con:entry key="module" value=""/>
          <con:entry key="pageSize" value="10"/>
          <con:entry key="startTime" value=""/>
          <con:entry key="clusterId" value="${cluster#Response#$['data']['clusters'][0]['clusterId']}"/>
          <con:entry key="page" value="1"/>
          <con:entry key="endTime" value=""/>
          <con:entry key="message" value=""/>
        </con:parameters>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="queryLogByClusterIdNotExists" id="29082791-4de8-4765-bfd1-ba5f170c9757">
    <con:settings/>
    <con:config service="TiEM UI API" methodName="GET" resourcePath="/api/v1/clusters/{clusterId}/log" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="queryLogByClusterIdNotExists" id="92393ab0-84b6-407a-9f7e-afba193cb0b5" mediaType="application/json">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${login#Response#$['data']['token']}" xmlns="http://eviware.com/soapui/config"/></con:setting>
        </con:settings>
        <con:encoding>UTF-8</con:encoding>
        <con:endpoint>http://172.16.4.134:4100</con:endpoint>
        <con:request/>
        <con:originalUri>http://172.16.4.134/api/v1/clusters/Q1Mb3YqaRAmjfUvjqjt9Uw/log</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="1e2f06c5-1c28-4a4f-a1f7-0410be248f34" name="Valid HTTP Status Codes">
          <con:settings/>
          <con:configuration>
            <codes>404</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:entry key="level" value=""/>
          <con:entry key="ip" value=""/>
          <con:entry key="module" value=""/>
          <con:entry key="pageSize" value="10"/>
          <con:entry key="startTime" value=""/>
          <con:entry key="clusterId" value="123"/>
          <con:entry key="page" value="1"/>
          <con:entry key="endTime" value=""/>
          <con:entry key="message" value=""/>
        </con:parameters>
      </con:restRequest>
    </con:config>
  </con:testStep>
  <con:testStep type="restrequest" name="logout" id="e0ec3ee5-75fe-4e18-8032-6f855411738d">
    <con:settings/>
    <con:config service="TiEM UI API" resourcePath="/api/v1/user/logout" methodName="POST" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <con:restRequest name="logout" id="46b09598-0eaf-485d-aabe-472863647844" mediaType="application/json" postQueryString="false">
        <con:settings>
          <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;entry key="Authorization" value="Bearer ${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/>
        <con:originalUri>http://172.16.4.134/api/v1/user/logout</con:originalUri>
        <con:assertion type="Valid HTTP Status Codes" id="94494498-3063-4a1b-9c8a-d8a302ffd330" 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: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:properties/>
  <con:reportParameters/>
</con:testCase>
