Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Perl Python C
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
artifacts
credentials
etc
fallback
input
lib
postrun
prerun
stage01
stage02
stage03
stage04
status
README.md
cleanup_test.pl
describe_lib.pl
neil_dns_test.conf
run_test.pl
share
update_lib.pl

README.md

neil_dns_test

Description

Check to make sure the Eucalyptus DNS functionality works

Procedure

  1. Check networking mode set managed bit
  2. Get list of emis parse it and add them to an array
  3. Grab the first keypair from the list
  4. Load the entire address pool into an array
  5. Grab a random IP
  6. Load all the groups
  7. Pick a group at random
  8. Load up 1 instance with these random values
  9. Check 20 every 30 seconds times that the insance came up and running and that it has an ip (ie not 0.0.0.0)
  10. Clean out any terminated instances
  11. Get running instance public and private ips
  12. Check that the DNS server properly returns an entry for the public ip
  13. Check that the DNS server properly returns an entry for the private ip
  14. Make a bucket
  15. Resolve the hostname of the bucket with the walrus
  16. Delete bucket

Eucalyptus Testunit Framework

Eucalyptus Testunit Framework is designed to run a list of test scripts written by Eucalyptus developers.

How to Set Up Testunit Environment

On Ubuntu Linux Distribution,

1. UPDATE THE IMAGE

apt-get -y update

2. BE SURE THAT THE CLOCK IS IN SYNC

apt-get -y install ntp

date

3. INSTALL DEPENDENCIES

YOUR TESTUNIT MIGHT NOT NEED ALL THE PACKAGES BELOW; CHECK THE TESTUNIT DESCRIPTION.

apt-get -y install git-core bzr gcc make ruby libopenssl-ruby curl rubygems swig help2man libssl-dev python-dev libright-aws-ruby nfs-common openjdk-6-jdk zip libdigest-hmac-perl libio-pty-perl libnet-ssh-perl euca2ools

4. CLONE test_share DIRECTORY FOR TESTUNIT

YOUR TESTUNIT MIGHT NOT NEED test_share DIRECTORY. CHECK THE TESTUNIT DESCRIPTION.

git clone git://github.com/eucalyptus-qa/test_share.git

4.1. CREATE /home/test-server/test_share DIRECTORY AND LINK IT TO THE CLONED test_share

mkdir -p /home/test-server

ln -s ~/test_share/ /home/test-server/.

5. CLONE TESTUNIT OF YOUR CHOICE

git clone git://github.com/eucalyptus-qa/testunit_of_your_choice

6. CHANGE DIRECTORY

cd ./testunit_of_your_choice

7. CREATE 2b_tested.lst FILE in ./input DIRECTORY

vim ./input/2b_tested.lst

7.1. TEMPLATE OF 2b_tested.lst, SEPARATED BY TAB

192.168.51.85 CENTOS 6.3 64 REPO [CC00 UI CLC SC00 WS]

192.168.51.86 CENTOS 6.3 64 REPO [NC00]

7.2. BE SURE THAT YOUR MACHINE's id_rsa.pub KEY IS INCLUDED THE CLC's authorized_keys LIST

ON YOUR TEST MACHINE:

cat ~/.ssh/id_rsa.pub

ON CLC MACHINE:

vim ~/.ssh/authorized_keys

8. RUN THE TEST

./run_test.pl testunit_of_your_choice.conf

How to Examine the Test Result

1. GO TO THE artifacts DIRECTORY

cd ./artifacts

2. CHECK OUT THE RESULT FILES

ls -l

How to Rerun the Testunit

1. CLEAN UP THE ARTIFACTS

./cleanup_test.pl

2. RERUN THE TEST

./run_test.pl testunit_of_your_choice.conf

Something went wrong with that request. Please try again.