Commit Graph

93 Commits

Author SHA1 Message Date
Prasanna Santhanam d30effc0ad bug 14608: Async timeout counter does not get reset across tests
status 14608: resolved fixed
reviewed-by: Chirag Jog (chirag@clogeny.com)

Set the timeout countdown to start from beginning of each pollAsync instead
of setting it once for the entire run.
2012-04-04 16:36:06 +05:30
Chirag Jog 2bcc252699 Minor Fix. Ensure to "sync" contents. 2012-04-03 22:55:46 -07:00
Chirag Jog e6cabe217c Fix Previous Commit. 2012-04-02 10:05:55 -07:00
Chirag Jog f2371dc684 Fixes:
1. Replace fetch_api_client with Class object for HTTP Connections.
2. Fetch Host information instead of hard-coding.
3. Fix routers, snapshots tests with minor changes.
2012-04-02 09:59:11 -07:00
Prasanna Santhanam a0a0a9f813 Correcting the reported failure message
reviewed-by: Edison Su
2012-04-02 18:03:30 +05:30
Prasanna Santhanam 8a4d1c4fda bug 13234: unit test to test the user decorator
status 13234: resolved fixed

Uncomment each decorator to test
- tests run as existing admin
- tests run as new user in new domain
- tests run as new user in existing domain
- tests run as old user in existing domain
- tests run as new domain admin in new domain
2012-03-29 19:19:30 +05:30
Prasanna Santhanam af45d8207d bug 13234: run tests as a regular user on testClient
status 13234: resolved fixed
reviewed-by: unittest

When multiple tests in a user-decorator suite are run only the first
test runs successfully since the apiKey has been altered to that of a
regular user. Preventing failure of other tests by detecting user
context - user, admin, domain-admin.

@UserName decorator applies to a testSuite class not a testMethod
2012-03-29 19:19:08 +05:30
Edison Su 0268665670 bug 13234: add UserName decorator on testcase, in the form of (username, domainName, accountType). status 13234: resolved fixed. Reviewed-by: prasanna 2012-03-29 19:13:12 +05:30
Prasanna Santhanam f4f58091d8 reduce logging verbosity, set level to info
reviewed-by: Kishan
2012-03-24 09:54:22 +05:30
Prasanna Santhanam f91c681545 testCase level logger and testClient class attr
reviewed-by: Chirag Jog

Each testCase class will use its own logger to distinguish log
messages when multiple suites are run. This will aid debugging

Every cloudstackTestCase will also contiain a class level attr of the
testClient which was previously available only to setUp/tearDown. Now
even setUpClass/tearDownClass can use this attribute.
2012-03-24 09:54:22 +05:30
Prasanna Santhanam 61b7824db5 correcting the ip sequence
corrected the sequence in which private and public IPs of the pods are
generated. each 8bit mask should remain in 0-255 range.
2012-03-21 13:58:51 +05:30
Prasanna Santhanam 9cec7875de can't append str to logger message 2012-03-21 11:13:45 +05:30
Chirag Jog ce0700dbbc Fetch Domain-ids from list instead of picking up fixed values.
Fixed tests in Accounts against 2.2.14 build.
2012-03-18 23:03:31 -07:00
Prasanna Santhanam f4217babe6 adding more logging to router suite 2012-03-16 13:14:19 +05:30
Prasanna Santhanam 1fcb6ccd93 defaulting test script passwords 2012-03-15 16:28:14 +05:30
Chirag Jog e7e4c86533 Fixes based on Prasanna's change to testframework
Additional logs/checks around all API calls and SSH calls.
2012-03-06 09:24:59 -08:00
Prasanna Santhanam 929dd643ca adding logging with level and timestamp 2012-02-29 12:05:06 +05:30
Prasanna Santhanam 57bf98a0c8 adding retry logic, error handling, and urllib2 used for managing connections 2012-02-29 12:05:06 +05:30
Prasanna Santhanam 1f7c5e3b01 propagating changes from master 2012-02-29 12:05:06 +05:30
Chirag Jog 13ecccff66 Updated the BVT tests with the following changes:
1. Ensure we poll + sleep instead of just sleep.
2. Additional checking for SSH command and all list commands.
2012-02-26 23:01:03 -08:00
Prasanna Santhanam 876ad2ba1f The HTTPConnection object times out too soon when status is being polled. This
depends on python's internal socket implementation. Added an explicit 3m
timeout. Test code MUST NOT induce sleeps longer than 3m, instead check status
periodically to keep the HTTPConnection alive.
reviewed-by: Chirag Jog <chirag@clogeny.com>
2012-02-23 18:45:53 +05:30
Chirag Jog 2c4453e116 Add missing __init__.py for imports to work 2012-02-21 03:23:04 -08:00
Chirag Jog 28cadfcd58 Remove Unecessary Files.
Minor cleanups.
2012-02-18 12:03:14 -08:00
Chirag Jog 8894b091ad Add support for P1-tests:
1. test_accounts.py
2. test_resource_limits.py
3. test_templates.py
4. test_volumes.py
2012-02-18 11:38:15 -08:00
Chirag Jog f99a65e59b Minor fixes to test cases 2012-02-10 09:24:21 -08:00
Edison Su c54098d0b8 add certiifcate upgrade scripts 2012-02-09 14:35:05 -08:00
Chirag Jog a046161b56 Extracted common functionality in libs.
Added P1-testcases.
Abstracted functionality to behave different for BASIC and ADVANCED networking mode.
2012-02-08 03:07:59 -08:00
Chirag Jog 4c447d92bc 1. Remove complete dependency from settings/environment
2. Add account creation/deletion to all relevant tests.
2012-01-25 07:57:05 -08:00
Chirag Jog b91d919e55 This commit contains the following items:
1. Reduce dependency on settings. (It should be able to run in any environment).
2. Simplify clean up by creating accounts in setup and deleting the account in teardown.
3. Check the list_XXX calls instead of querying the database.

Currently the following tests work per the above logic:
1. test_vm_life_cycle.py
2. test_disk_offerings.py
3. test_service_offerings.py

Rest are work in progress.
2012-01-24 07:49:37 -08:00
Prasanna Santhanam 8efacc97a6 * when httplib.Connection fails to get response it prevents further requests on
the connection - shallow copy and create a new connection object when this
happens

* timeout the SSH client to speed up tests
2012-01-22 22:07:59 +05:30
Chirag Jog 932ac4d8f5 This commit contains the following items:
1.Tests related KVM Hosts
  2.Tests related iSCSI Storage
  3.Tests related secondary Storage
  4.Split the settings file and added the test data into each of the test cases.
  5.Removed environment specific settings for Network related entities.
2012-01-22 08:07:40 -08:00
Chirag Jog cdcf0f2626 Update the README with current information 2012-01-14 21:56:39 -08:00
Chirag Jog 57a4a76691 Add support for the following tests:
1. All the Pending Networking tests
2. SSVM Tests
3. CPVM Tests
4. Router Tests
5. Hosts Tests
6. Primary Storage Tests
2012-01-14 21:54:11 -08:00
Chirag Jog 63d4d0312d 1. Add support for ISO tests
2. Add support for Template tests
3. Add support for attach/detach ISO VM Life Cycle tests
4. Add support for create Volume/Template from Snapshot tests
5. Add support for Network related tests
6. Cleaned Up Whitespaces from all files.
7. Fixed formating etc.
2012-01-08 22:30:09 -08:00
Chirag Jog dfe345fb08 Merge branch '2.2.y' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.y 2011-12-29 06:12:35 -08:00
Chirag Jog e509ec02b2 Uncommented working code for the snapshots tests.
Update the README
2011-12-29 06:09:42 -08:00
Chirag Jog ae0896ccf8 The main features being added are:
1. Add support for Snapshot tests
2. Add Support for Disk offerings tests
3. Add Support for Service offerings tests
4. Add Support to test Volume creation for all available disk offerings
5. Rename Server as VirtualMachine
2011-12-29 06:01:22 -08:00
Prasanna Santhanam 32f7e89171 no providers in 2.2.y 2011-12-27 09:05:57 +05:30
Chirag Jog 537d56227b Minor fixes:
1. Update doc strings
2. Remove unecessary imports
2011-12-25 23:37:32 -08:00
Chirag Jog 33a502fe7a Update the README 2011-12-25 23:31:04 -08:00
Chirag Jog f1e9f7f1cf Created BVT Tests for VM Life Cycle and Volumes
1. README - Overview of the BVT
2. base.py - Resource classes
3. settings.py - Test data
4. test_vm_life_cycle.py - VM Life Cycle Tests
5. test_volumes.py - Volumes Tests
6. utils.py - Utility functions
2011-12-24 05:33:22 -08:00
Prasanna Santhanam 5338828f76 reverting changes related to provider. not part of 2.2.y 2011-12-15 13:53:37 +05:30
Prasanna Santhanam 059dba39c6 kvm and xen are already part of sandbox/advanced
(cherry picked from commit dc1783be18fdfc3c4cbaef0332f2e5a5cf1d1539)
2011-12-15 13:53:37 +05:30
Prasanna Santhanam 9e4a2a23b0 kvm and xen are already part of sandbox/advanced
(cherry picked from commit 36bf5be8561acf6fedecc77e7464e630d10e5d12)
2011-12-15 13:53:37 +05:30
Prasanna Santhanam d70b326063 - some quick environment configuration files
- adding service providers for zone configuration
- getting the python framework working with providers
(cherry picked from commit e0dd12619cc2dc32d23cc1f6cd82f01cd9f80b87)
2011-12-15 13:53:36 +05:30
Edison Su 5e447ad17c bug 11463: simulator uses a seperate db source, to get it faster
status 11463: resolved fixed
2011-11-03 17:28:48 -07:00
frank 386683efdd move cloud-selenium*.jar to tools 2011-08-30 10:45:49 -07:00
Prasanna Santhanam c140dfa936 1. correcting the global property 2. handling the case if unittest2 is present 2011-08-29 18:42:58 +05:30
Edison Su 580ce19dc3 testClient: add timestamp for sync job 2011-08-25 18:50:28 -07:00
Edison Su daa1c14559 add missing files 2011-08-25 17:26:31 -07:00