azure-linux-automation/Documentation/Azure Network automation/NETWORK-IE-PING-NON-CONN-TW...

44 строки
1.7 KiB
Plaintext

Login on your Hyper-V server.
Start PowerShell with the Run As Administrator option.
Deploy VM's in Azure.
1. Create deployment of type : Internal Endpoint Two Hosted Services.
You will get Two VMs deployed in each hosted service.
VM alias : HS1VM1, HS1VM2, HS2VM1, HS2VM2
Hosted Service Alias : HS1, HS2
[please go through DEPLOYMENT-CONFIGURATIONS.txt for more information about deploy types.]
Execute Test :
1. Login to HS1VM1.
2. Try to ping HS2VM1 with DIP of HS2VM1.
Execute "ping <DIP of HS2VM1>"
3. Verify that ping is NOT successful.
4. Try to ping HS1VM2 with Hostname of HS2VM1.
Execute "ping <Hostname of HS2VM1>"
5. Verify that ping is NOT successful.
6. If ping is unsuccessful in DIP and Hostname scenarios, then mark test as PASS.
Cleanup the test VMs.
1. If test is PASS, delete all VMs under test.
2. If test is FAIL, collect the logs and preserve deployed VMs.
Add following test definition under "<testsDefinition>..</testsDefinition>" in XML file to drive the test:
<test>
<testName>NETWORK-IE-PING-NON-CONN-TWO-HS</testName>
<testScript></testScript>
<testScriptps1>NETWORK-IE-PING-NON-CONN-TWO-HS.ps1</testScriptps1>
<TestMode>VIP,URL</TestMode>
<SubtestValues></SubtestValues>
<files>remote-scripts\ping.py, remote-scripts\azuremodules.py</files>
<setupType>IEndpointTwoHS</setupType>
<TestType></TestType>
<TestFeature></TestFeature>
<TestID>AzureNetwork_INT_010</TestID>
<Priority>P0</Priority>
</test>
Run the tests defined in the .xml file.
From the PowerShell command line, issue the following command:
Run all NETWORK tests:
.\AzureAutomationManager.ps1 -xmlConfigFile azure_ica_all.xml -runtests -Distro CentOS -cycleName NETWORK