This repository includes tests for evaluating the functionality of PidginHost Cloud, along with SSH tests.
pytest
selenium
webdriver-manager
softest
openpyxl
ddt
pytest-html
bs4
paramiko
-
Create an SSH key pair and add the private key to the file private_key.txt.
-
Add the public key to the file public_key.txt.
-
Populate the test data in the Excel file testdata.xlsx.
Note
Test outbound ports limited to Ubuntu packages only.
Test Data Format:
user | user_password | cloud_package | operating_system |
---|---|---|---|
username@emaildomain.com | i7MnuS*o | CloudV 0 (1 vCPU, 0.5 GB RAM, 20 GB SSD) | Ubuntu 22.04 |
username@emaildomain.com | i7MnuS*o | CloudV 1 (1 vCPU, 1 GB RAM, 32 GB SSD) | Ubuntu 22.04 |
Execute the following command to start the tests with the specified browser version:
pytest -v --browser firefox --url https://www.pidginhost.com/panel/account/login --html=report.html
Supported Browser Versions:
- Edge
- Chrome
- Firefox
-
Login Functionality
- Ensure the login process is efficient and properly handles authentication.
-
Cloud Navigation
- Check the responsiveness of the Cloud navbar button click.
-
Package Assertions
- Verify the package selected matches expectations.
-
OS Selection
- Validate the functionality to select the operating system.
-
Hostname Addition
- Implement a secure and efficient way to add the hostname.
-
Public Key Handling
- Utilize secure methods for adding and handling public keys.
-
Password Addition
- Implement secure password handling mechanisms.
-
Network Interface Configuration
- Verify the public network interface enable process.
-
IPv4 and IPv6 Configuration
- Ensure proper handling and validation of IPv4 and IPv6 addresses.
-
Extra Volume Addition
- Efficiently handle the addition of extra volume.
-
Cloud Creation Verification
- Confirm the cloud creation process is successful.
-
Details Display
- Verify details button functionality and information displayed.
-
Cloud IP Retrieval
- Implement a reliable method to retrieve the cloud IP.
-
Cloud User Retrieval
- Ensure the cloud user information retrieval is accurate.
-
SSH Connection Testing
- Efficiently test SSH connection functionality.
-
Port Testing
- Verify outbound and inbound port configurations.
-
Extra Volume Availability Check
- Ensure proper validation for the availability of extra volume.
-
Server Destruction
- Implement a secure and efficient process to destroy servers when needed.
Note
The plugin will generate an HTML report for all tests in report.html and an automation log in automation.log.