Commit Graph

845 Commits

Author SHA1 Message Date
Abhinandan Prateek 1b2b58fe35 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-16 15:36:37 +05:30
Abhinandan Prateek 1010702f3f Revert "fixed build_asf.sh so that the xapi version is not affected"
This reverts commit 2b34dc509a.
2013-12-16 15:10:14 +05:30
Abhinandan Prateek 2bdd288605 Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit cc662445a5.
2013-12-13 11:53:40 +05:30
Abhinandan Prateek cc662445a5 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-13 11:46:08 +05:30
Abhinandan Prateek 2b34dc509a fixed build_asf.sh so that the xapi version is not affected 2013-12-13 11:35:48 +05:30
Santhosh Edukulla c494064c0d CLOUDSTACK-5443: Fixed the issue. 2013-12-11 19:43:12 +05:30
Girish Shilamkar dcc9fa304f CLOUDSTACK-5405: Changed marvin to create sg in account into which vm is deployed 2013-12-11 13:55:49 +05:30
Santhosh Edukulla c2a41b565a CLOUDSTACK-5423: Fixed 5423
Conflicts:
	tools/marvin/marvin/deployAndRun.py
2013-12-11 12:06:35 +05:30
Santhosh Edukulla 55c56b6cc2 Fixed CLOUDSTACK-5436
Fixed few RAT issues reported for new additions of files to repo.
Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-10 18:05:02 +05:30
Santhosh Edukulla 275682d31c CLOUDSTACK-5413: Fixed bug CLOUDSTACK-5413 2013-12-09 19:47:13 +05:30
Santhosh Edukulla 2597dad20a CLOUDSTACK-5269: Fix nose failures. 2013-12-09 19:42:14 +05:30
Santhosh Edukulla 1e4bbf8a4d Moving build scripts maintained in separate repo to cloudstack repo 2013-12-09 19:30:59 +05:30
Santhosh Edukulla 1190abd4ca Enhanced few features under Marvin
Added few enhancements to marvin.
Added new module for Logging Facility to marvin.
Added new Init facility to marvin.
Currently, there are multiple ways we are doing logging
Removed few unwanted logging cases.
Removed few command line switch options for logging.
The new way of logging now provides consolidated logging
under one single folder timestamped under the configured
folder path.
Removed parsing configuration from deploydata center
Added parsing,start logging and deploy as part of init
Added new error handling facility to catch unknown exception from
test cases. Currently, lot of scripts are throwing unknown
exceptions, add a handler to plugin to dump them to a file

ToDO:
Will do clean up in phase2 for this patch.
Separate deployDatacenter from creating test client.
Clean up configGenerator

Conflicts:
	tools/marvin/marvin/deployDataCenter.py
	tools/marvin/marvin/marvinPlugin.py
2013-12-07 13:38:45 +05:30
Abhinandan Prateek 3c561c6d79 Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 6ba071b159.
2013-12-03 17:46:18 +05:30
Abhinandan Prateek 6ba071b159 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-03 17:41:35 +05:30
Abhinandan Prateek 92254a5a2f Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 7fb9dcb131e1d2d5a7c87e0aab2929b772bcd008.
2013-12-03 17:16:18 +05:30
Abhinandan Prateek e8c3c650a7 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-03 17:16:17 +05:30
Girish Shilamkar cf1eaad846 CLOUDSTACK-5337: Trimming account name (username) to 99 characters 2013-12-03 16:02:30 +05:30
Girish Shilamkar b21030b851 Fixed a missing hunk from this commit aeb5ec07 2013-11-25 11:44:10 +05:30
Gaurav Aradhye 631743b44a CLOUDSTACK-5215: Correcting and refactoring code related to
getting free vlan
2013-11-21 11:00:15 +05:30
Girish Shilamkar 454d9b04c4 Fix marvin to refer to correct random_gen() function 2013-11-15 17:10:40 +05:30
Gaurav Aradhye a95bea08e4 CLOUDSTACK-5180: Increasing the timeout for uploading volume 2013-11-15 16:20:46 +05:30
Ashutosh K d8fd962a73 Including tests for VPC VM Lifecycle on Tagged hosts 2013-11-13 21:54:35 +05:30
Abhinandan Prateek 4cb311530c Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 0b9eadaf14.
2013-11-12 21:17:27 +05:30
Abhinandan Prateek 0b9eadaf14 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-11-12 21:15:01 +05:30
Santhosh Edukulla 7d02c71ff7 Fixed a connection issue under asyncmgr.
Fixed a connection issue under asyncmgr.
Added __init__.py files to directory to make it
a package.This file was missing under few directories and
so not appearing as packages while refactoring.
Adding one None Check

Conflicts:
	tools/marvin/marvin/asyncJobMgr.py

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-11-11 16:58:44 +05:30
SrikanteswaraRao Talluri 3e3b1c86e1 Fixed missing checkin while merging from master
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-11 15:47:56 +05:30
Girish Shilamkar cff7e39339 Fixed few hunks which were incorrect.
While adding certain marvin related fixes from master to 4.2 branch
incorrect hunks were added. Fixed them.
2013-11-11 15:10:29 +05:30
Santhosh Edukulla e82fe01692 CLOUDSTACK-5121: There was one wrong initialization of cloudstackConnection.
The bug mentioned is causing test cases to fail.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:

	tools/marvin/marvin/cloudstackConnection.py
2013-11-10 17:28:32 -05:00
SrikanteswaraRao Talluri f893a80d1d Modified remoteSSHClient references to SshClient 2013-11-08 19:52:41 +05:30
SrikanteswaraRao Talluri 9d00bfeba2 fixed indentaion problem in utils.py :359 2013-11-08 18:00:55 +05:30
Santhosh Edukulla 91669ea627 CLOUDSTACK-5099: Utils.py-has-wrong-reference, cleaned it. As well added Uniform naming convention
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>

Conflicts:
	test/integration/component/test_portable_ip.py
2013-11-08 17:06:52 +05:30
Santhosh Edukulla 9495fbc873 Increasing the timeout values to 600 seconds from 300 seconds
Timeout for ssh related test cases is increased based upon
few test run observations where ssh is taking more time during
restart scenarios as an example. We have done few changes to streamline
ssh library. This is in addition to those to keep less ssh script issues

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-08 16:43:11 +05:30
Santhosh Edukulla cf7532e848 Added fix for bug 5056.
The fix contains fixes related to ssh library majorly.
Complete description should be available under bug
description.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-08 16:42:13 +05:30
Santhosh Edukulla c76da53123 CLOUDSTACK-5032 Provides custom assert facility to test features
Added assertElementInList to cloudstackTestCase.
Users can use this new custom addition to add
assertions, thus replacing current multiple assertions

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-11-08 15:37:26 +05:30
Santhosh Edukulla 87983e09e2 Added few changes related to bug 4920. Removed unwanted code
There were few unwanted calls as part of test client, did some clean up
Made the test client API uniform to accept both mgmt and dbsvr details
Did some minor bug fixes as well.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/cloudstackConnection.py
	tools/marvin/marvin/cloudstackTestClient.py
	tools/marvin/marvin/configGenerator.py
	tools/marvin/marvin/deployDataCenter.py
2013-11-08 15:29:53 +05:30
Santhosh Edukulla fba874120b Adding few changes and cleaning up the code
- Added few common naming conventions
- Cleanedup code
- Added a simple utility function

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/codes.py
	tools/marvin/marvin/integration/lib/utils.py
2013-11-08 14:40:58 +05:30
Santhosh Edukulla 6e1821f585 CLOUDSTACK-4832. Added support for https to marvin.
advanced.cfg: Contains three additional flags "useHttps,certCAPath,certPath"
for https usage in marvin for establishing cs connection. We will use the
configuraiton under advanced.cfg provided by user to establish connection over
https. If establishing the connection over https failed, then the default certs
will be used.  or else raise the exception, the existing http will work as it
is when useHttps flag set to "False"

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>

Conflicts:
	tools/marvin/marvin/cloudstackConnection.py
2013-11-08 14:40:58 +05:30
Santhosh Edukulla b18e730108 Added a verifyElementInList utility function
The purpose is to verify a given element in list
at a given position with few error checks like
list type,empty list and position
Returns appropriate codes based upon the inputs.
Can be used under tests instead of multiple asserts

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/codes.py
2013-11-08 13:42:19 +05:30
Santhosh Edukulla e7b6ee10ed Fixed Bug: 4899
Added Configuration Support to Marvin.

1. It provides the basic configuration facilities to marvin.

2. User can just add configuration files for his tests, deployment
              etc, under one config folder before running their tests.
              cs/tools/marvin/marvin/config.
              They can remove all hard coded values from code and separate
              it out as config at this location.
              Either add this to the existing setup.cfg as separate section
              or add new configuration.
3. This will thus removes hard coded tests and separate
              data from tests.

4. This API is provided as an additional facility under
              cloudstackTestClient and users can get the
              configuration object as similar to apiclient,dbconnection
              etc to drive their test.

5. They just add their configuration for a test,
              setup etc,at one single place under configuration dir
              and use "getConfigParser" API of cloudstackTestClient
              It will give them "configObj".They can either pass their own
              config file for parsing to "getConfig" or it will use
              default config file @ config/setup.cfg.
6. They will then get the dictionary of parsed
              configuration and can use it further to drive their tests or
              config drive
7. Test features, can  drive their setups thus removing hard coded
          values. Configuration default file will be under config and as
              setup.cfg.
8. Users can use their own configuration file passed to
              "getConfig" API,once configObj is returned.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/cloudstackTestClient.py
	tools/marvin/marvin/integration/lib/utils.py
2013-11-08 13:31:52 +05:30
Santhosh Edukulla 3a31a7e65d Adding readable start and end time stamps
Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-11-08 13:04:38 +05:30
Santhosh Edukulla ae852adabb CLOUDSTACK-4885: basic timing profiler for tests
This will add time taken in seconds along with start and end timestamp
logging facility for test cases.Currently this is not
available for console logs

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-11-08 12:58:26 +05:30
Gaurav Aradhye b9547b07c0 CLOUDSTACK-4648: Fixed Snapshots test cases
Fixed following test cases:
1) test_01_volume_from_snapshot
2) test_03_snapshot_detachedDisk
3) test_07_template_from_snapshot

All three test cases are running successfully on XenServer but test cases (01 and 07) failing on KVM due to a common issue.
Product defect logged for this: https://issues.apache.org/jira/browse/CLOUDSTACK-5097

test_03 is running ok on KVM too, the problem was - disk was not getting detached because it was not unmounted before detaching. Added code to unmount the disk.

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-11-08 12:48:37 +05:30
Gaurav Aradhye c61c592677 CLOUDSTACK-4995: Fixed test_reset_ssh_keypair which checks the state of the VM
Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-10-31 21:55:32 +05:30
Ashutosh Kelkar e47dfb673c CLOUDSTACK-2243: Add automation tests for VMs base image update faclity
Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-10-31 15:02:03 +05:30
Santhosh Edukulla 4d7c66bdec The code module represents enum for constant comparison
This module provides facilitation to use uniform codes across various test
features. Users can import this  module and use these codes to maintain
readability and one point of change.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-10-31 14:59:53 +05:30
Abhinandan Prateek db880381d1 syncing 64 bit svm scripts 2013-10-24 18:50:34 +05:30
Gaurav Aradhye 0dabc6a651 CLOUDSTACK-4647: Fixed snapshot_gc test case and common util function is_snapshot_on_nfs
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 0bbe5684981cf21d30455de4f12dd1c2e58d94ea)
2013-10-15 13:36:45 +05:30
Anshul Gangwar 2ef566e9ea added support for ispersistent parameter for networkoffering
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 7b5daaea20)
2013-10-15 13:24:43 +05:30
Wei Zhou 2ebcfdb733 fix CS 4.2.1-SNAPSHOT apidocs build error 2013-10-08 13:59:36 +02:00