Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viglesiasce/eucatest
Euca2ools wrapper with functional validation
https://github.com/viglesiasce/eucatest
Last synced: 5 days ago
JSON representation
Euca2ools wrapper with functional validation
- Host: GitHub
- URL: https://github.com/viglesiasce/eucatest
- Owner: viglesiasce
- Created: 2012-02-08T19:08:10.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-07-30T00:41:22.000Z (over 10 years ago)
- Last Synced: 2024-11-10T18:58:00.694Z (2 months ago)
- Language: Perl
- Homepage:
- Size: 457 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
eutester version 0.0.1
=====================eutester is an attempt to leverage existing test code to make test writing faster and standardized.
Design:
Eutester is designed to allow a user to quickly generate automated tests for testing a Eucalyptus cloud. There is a configuration file
associated with the library that describes a few things about the clouds configuration including the bare metal machine configuration and IPs.The configuration file has the following structure:
CENTOS 5.7 64 REPO [CC00 CLC SC00 WS]
VMWARE ESX-4.0 64 REPO [NC00]
VMWARE ESXI-4.1 64 REPO [NC00]Columns:
1. IP or hostname of machine
2. Distro installed on machine
3. Distro version on machine
4. Distro base architecture
5. List of components installed on this machine encapsulated in brackets []
- These components can be:
a. CLC - Cloud Controller
b. WS - Walrus
c. SC00 - Storage controller for cluster 00
d. CC00 - Cluster controller for cluster 00
e. NC00 - A node controller in cluster 00The basic constructor will:
1. Connect to the machine denoted as CLC in the cloud.conf
2. Pull down credentials from the CLC if the credpath has not been provided
3. Setup boto connections to both ec2 and walrus on the cloud
4. Leave the SSH connection to the CLC up for further useSAMPLE FIRST SCRIPT
from eutester import eutester
if __name__ == '__main__':
clc_session = eutester.eutester( credpath="eucarc-eucalyptus-admin", password="foobar")
### ACCESS THE CONNECTION TO EC2
print clc_session.ec2.get_all_images()
### ACCESS THE CONNECTION TO WALRUS
print clc_session.walrus.get_all_buckets()
### ACCESS THE SSH SESSION TO THE CLC
print clc_session.sys("free")
clc_session.do_exit()