зеркало из https://github.com/microsoft/lisa.git
Update project summary
This commit is contained in:
Родитель
223d5d73b9
Коммит
cd8e97aacc
115
README.md
115
README.md
|
@ -1,37 +1,35 @@
|
|||
# Test Automation for Microsoft Linux on Azure & Hyper-V
|
||||
# Linux Integration Services Automation (LISA), version 2
|
||||
|
||||
Automation platform for Linux images testing on Microsoft Azure & Hyper-V
|
||||
May 2018
|
||||
|
||||
## Overview
|
||||
|
||||
LISAv2 (Linux Integrated Service Automation) is the One-stop automation solution for Linux images/kernel testing on Microsoft Azure and Hyper-V. LISA-v2 supports both Microsoft Azure and Hyper-V automation, and they use PowerShell, BASH and python scripts. It includes feature, performance, stress and regression tests about new Linux Operating Systems and Kernels. The test suite provides Build Verification Tests (BVTs), Azure VNET Tests and Network tests also.
|
||||
LISAv2 is the one-stop automation solution implemented by PowerShell scripts, Linux BASH scripts and Python scripts for verifying Linux image/kernel on below platforms:
|
||||
* Microsoft Azure
|
||||
* Microsoft Azure Stack
|
||||
* Microsoft Hyper-V
|
||||
|
||||
LISAv2 includes below test suite categories:
|
||||
* BVT tests
|
||||
* Smoke tests
|
||||
* Functional tests
|
||||
* Performance tests
|
||||
* Test suites developed by Open Source communities
|
||||
|
||||
### Prerequisite
|
||||
|
||||
1. You must have a Windows Machine with PowerShell. Tested Platforms:
|
||||
|
||||
a. Windows 8x64
|
||||
b. Windows 10x64
|
||||
c. Server 2012
|
||||
d. Server 2012 R2
|
||||
e. Server 2016
|
||||
1. You must have a Windows Machine with PowerShell (v5.0 and above) as test driver.
|
||||
|
||||
2. You must be connected to Internet.
|
||||
|
||||
3. You must have a valid Windows Azure Subscription.
|
||||
|
||||
a. Subscription Name
|
||||
b. Subscription ID
|
||||
|
||||
### Download Latest Automation Code
|
||||
|
||||
1. Checkout from https://github.com/LIS/LISAv2.git to your local storage or folk to your GitHub account.
|
||||
|
||||
### Download Latest Azure PowerShell
|
||||
|
||||
1. Download Web Platform Installer from [here](http://go.microsoft.com/fwlink/p/?linkid=320376&clcid=0x409)
|
||||
2. Start Web Platform Installer and select Azure PowerShell (Recommend 6.0.0 or above) and proceed for Azure PowerShell Installation.
|
||||
|
||||
### Authenticate Your Machine with Your Azure Subscription
|
||||
### Authenticate Your Test Driver Machine with Your Azure Subscription
|
||||
|
||||
1. Azure AD method
|
||||
|
||||
|
@ -41,11 +39,26 @@ LISAv2 (Linux Integrated Service Automation) is the One-stop automation solution
|
|||
|
||||
Refer to this URL [here](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal)
|
||||
|
||||
### Update GlobalConfigurations.xml file
|
||||
### Prepare VHD for Your Test
|
||||
|
||||
1. Setup Subscription details.
|
||||
`Applicable if you are uploading your own Linux VHD to Azure for test.`
|
||||
|
||||
Go to Global > Azure and update following fields :
|
||||
A VHD with Linux OS must be made compatible to work in HyperV environment. This includes:
|
||||
|
||||
* Linux Integration Services
|
||||
* Windows Azure Linux Agent (for testing in Azure environment only)
|
||||
|
||||
Please follow the steps mentioned at [here](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-generic)
|
||||
|
||||
#### Launch Test Suite
|
||||
|
||||
1. Clone this automation code to your test driver by:
|
||||
|
||||
git clone https://github.com/LIS/LISAv2.git
|
||||
|
||||
2. Update the GlobalConfigurations.xml file with your Azure subscription infomation:
|
||||
|
||||
Go to Global > Azure and update following fields :
|
||||
|
||||
a. SubscriptionID
|
||||
b. SubscriptionName
|
||||
|
@ -59,7 +72,7 @@ LISAv2 (Linux Integrated Service Automation) is the One-stop automation solution
|
|||
|
||||
<Azure>
|
||||
<Subscription>
|
||||
<SubscriptionID>2cd20493-fe97-42ef-9ace-ab95b63d82c4</SubscriptionID>
|
||||
<SubscriptionID>2cd20493-0000-1111-2222-0123456789ab</SubscriptionID>
|
||||
<SubscriptionName>YOUR_SUBSCRIPTION_NAME</SubscriptionName>
|
||||
<ManagementEndpoint>https://management.core.windows.net</ManagementEndpoint>
|
||||
<Environment>AzureCloud</Environment>
|
||||
|
@ -68,63 +81,7 @@ LISAv2 (Linux Integrated Service Automation) is the One-stop automation solution
|
|||
|
||||
```
|
||||
|
||||
2. Save files.
|
||||
|
||||
### Prepare VHD to work in Azure
|
||||
|
||||
`Applicable if you are uploading your own VHD with Linux OS to Azure.`
|
||||
|
||||
A VHD with Linux OS must be made compatible to work in Azure environment. This includes <20>
|
||||
|
||||
1. Installation of Linux Integration Services to Linux VM (if already not present)
|
||||
2. Installation of Windows Azure Linux Agent to Linux VM (if already not installed.)
|
||||
3. Installation of minimum required packages. (Applicable if you want to run Tests using Automation code)
|
||||
|
||||
Please follow the steps mentioned at [here](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-generic)
|
||||
|
||||
### Prepare VHD to work with Automation code
|
||||
|
||||
`Applicable if you are using already uploaded VHD / Platform Image to run automation.`
|
||||
|
||||
To run automation code successfully, below are the required packages in your Linux VHD.
|
||||
|
||||
1. iperf
|
||||
2. mysql-server
|
||||
3. mysql-client
|
||||
4. gcc
|
||||
5. gcc-c++
|
||||
6. bind
|
||||
7. bind-utils
|
||||
8. bind9
|
||||
9. python
|
||||
10. python-pyasn1
|
||||
11. python-argparse
|
||||
12. python-crypto
|
||||
13. python-paramiko
|
||||
14. libstdc++6
|
||||
15. psmisc
|
||||
16. nfs-utils
|
||||
17. nfs-common
|
||||
18. tcpdump
|
||||
|
||||
### How to Start Automation
|
||||
|
||||
Before starting Automation, make sure that you have completed steps in chapter [Prepare Your Machine for Automation Cycle](#prepare)
|
||||
|
||||
1. Start PowerShell with Administrator privileges
|
||||
2. Navigate to folder where automation code exists
|
||||
3. Issue automation command
|
||||
|
||||
#### Test Categories Available
|
||||
|
||||
1. BVT
|
||||
2. PERFORMANCE
|
||||
3. FUNCTIONAL
|
||||
4. COMMUNITY
|
||||
5. SMOKE
|
||||
|
||||
|
||||
#### Command to Start any of the Automation Cycle
|
||||
3. Run the test suite with below command:
|
||||
|
||||
.\RunTests.ps1 -TestPlatform "Azure" -TestLocation "<Region location>" -RGIdentifier "<Identifier of the resource group>" [-ARMImageName "<publisher offer SKU version>" | -OsVHD "<VHD from storage account>" ] [[-TestCategory "<Test Catogry from Jenkins pipeline>" | -TestArea "<Test Area from Jenkins pipeline>"]* | -TestTag "<A Tag from Jenkins pipeline>" | -TestNames "<Test cases separated by comma>"]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче