Commit Graph

84 Commits

Author SHA1 Message Date
Chirag Jog 760aab8fcf Bug 14612: Database client returns empty list after one successful query
Status 14612: resolved fixed
reviewed-by: Prasanna Santhanam <Prasanna.Santhanam@citrix.com>

Commit to refresh the transaction state
2012-04-06 05:38:36 -07:00
Prasanna Santhanam d5878b657e reveal the complete exception from the dbClient
reviewed-by: Edison Su
2012-04-04 16:44:17 +05:30
Prasanna Santhanam 54f1e15b3b 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:44:13 +05:30
frank f0acbfe807 switch to Apache license 2
reviewed-by: frank myself
2012-04-02 22:47:06 -07:00
Prasanna Santhanam 2f6d166247 Correcting the reported failure message
reviewed-by: Edison Su
2012-04-02 18:21:03 +05:30
Prasanna Santhanam 56fd9dd8db 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:18:49 +05:30
Prasanna Santhanam 02b710b125 bug 13234: unit test to test the user decorator
status 13234: resolved fixed
reviewed-by: (unittest code)

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:12:42 +05:30
Edison Su b9ab00f7be bug 13234: add UserName decorator on testcase, in the form of (username, domainName, accountType). status 13234: resolved fixed. Reviewed-by: prasanna 2012-03-29 01:05:54 -07:00
Prasanna Santhanam 6e3f85c545 reduce logging verbosity, set level to info
reviewed-by: Kishan
2012-03-24 09:51:57 +05:30
Prasanna Santhanam 1e7d3dd1ea 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:51:57 +05:30
Prasanna Santhanam 30f7ca28bd can't append str to logger message 2012-03-21 11:09:46 +05:30
Chirag Jog 99af149db7 Refactored the code to fetch domainid from API calls.
Changed env. setup code in test accounts.
2012-03-18 23:08:58 -07:00
Chirag Jog 5f2e35fa70 Port the BVT tests from 2.2.y to Acton 3.0.x 2012-03-06 09:18:13 -08:00
Prasanna Santhanam 061ee4977a adding logging with level and timestamp 2012-02-29 12:04:17 +05:30
Prasanna Santhanam 348cb1c6dc adding retry logic, error handling, and urllib2 used for managing connections 2012-02-29 12:04:17 +05:30
Prasanna Santhanam 8f222c175e Wrong place to put a return
reviewed-by: kishan
2012-02-29 12:04:17 +05:30
Prasanna Santhanam 492423e047 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:33:52 +05:30
Prasanna Santhanam 91e56d763f Multiple fixes to the testClient to accomodate further changes to 3.0 APIs
reviewed-by: Kishan
* Revert back to old guestCidrAddress
* Add default traffic types
* fixed typo when creating physical network, specifid wrong zone
* correctly specifying the guest VLAN as part of updating physical network
2012-02-20 18:12:04 +05:30
Prasanna Santhanam 6796e099c8 Enable security groups in basic zones only
reviewed-by: Kishan
2012-02-20 18:11:58 +05:30
Prasanna Santhanam 7480d73785 Enable the zone after successful add
Reviewed-By: Kishan
2012-02-20 18:11:50 +05:30
Prasanna Santhanam 6b2a92ca66 fixing the case when multiple zones are added. enable the right VR element
Reviewed-By: Kishan
2012-02-20 18:11:43 +05:30
Sam Robertson 0411aad813 use temp tomcat directory for automated testing 2012-02-08 16:35:01 -08:00
Sam Robertson 5ce1a0cba3 Updating CATALINA_HOME used for automated testing environment 2012-02-08 15:06:02 -08:00
Sam Robertson dadf25cca4 use /usr/share/tomcat, not /usr/share/cloud 2012-02-07 09:30:03 -08:00
Sam Robertson 113a2f2fe8 Adding automated.sh, removed failed attempt at setting CATALINA_HOME in ant build configuration 2012-02-07 08:52:01 -08:00
Sam Robertson 4acfc2eb1d automated testing changes, in addition to an automated.xml 2012-02-03 16:59:20 -08:00
Prasanna Santhanam d99e71bad4 update a Disabled Physical network 2012-01-20 18:33:49 +05:30
Prasanna Santhanam 0b69a252de uniform quotes 2012-01-15 19:21:58 +05:30
Prasanna Santhanam a2059cf1c1 when the API response has empty list 2012-01-15 19:21:08 +05:30
Prasanna Santhanam d45e065941 Enable VirtualRouter provider by default in the zone 2012-01-15 19:19:35 +05:30
Prasanna Santhanam 05aa61432b Fixing the framework for 3.0 /Acton API
* changes for bug 12964 - physical network creation is separated from createZone
* removed redundant comments
* PEP8 Compliance
2012-01-14 19:29:46 +05:30
Prasanna Santhanam 659810d5a8 no more guestcidr in createZone 2012-01-14 19:29:46 +05:30
Prasanna Santhanam 9c8f989d6b typos and other fixes 2011-12-29 17:28:58 +05:30
Prasanna Santhanam e9b861432a typos and other fixes 2011-12-29 17:28:58 +05:30
Prasanna Santhanam b82d88d1d2 basic zone setup template 2011-12-29 17:28:58 +05:30
Prasanna Santhanam d842119dc4 Fixing the framework for 3.0 /Acton API
* zones now have to be configured with physical networks and providers
* enabling the virtual router and configuring it are sperate API action
* create networks of shared type with SG network offering is done implicitly
2011-12-29 17:28:58 +05:30
Prasanna Santhanam eaf57eb847 providers are in a list iterable 2011-12-29 17:28:58 +05:30
Prasanna Santhanam 431b571908 property files for simulator and basic zone setup 2011-12-29 17:28:58 +05:30
Prasanna Santhanam 18f865fc3e Reviving the simulator
* SSVM to act as a direct connect agent
* Storage Resources handle SSVM commands
* create-schema.sql already has simulator_network_label. removing the label from create-schema-simulator.sql
2011-12-19 15:03:19 +05:30
Prasanna Santhanam dc944cd4dd skip config files from repo 2011-12-15 19:12:21 +05:30
Prasanna Santhanam 206077aec2 kvm and xen are already part of sandbox/advanced 2011-12-05 21:51:38 +05:30
Prasanna Santhanam d5424b0d31 kvm and xen are already part of sandbox/advanced 2011-12-05 21:51:38 +05:30
Prasanna Santhanam 0b1ca708bb - configure the virtual router element for advanced networks only
- enable all service providers created in  a zone
- TODO: basic networking and optionally selecting providers enabled
2011-11-30 17:42:41 +05:30
Prasanna Santhanam 06dda10f31 - when de-serializing back to python from json, python attribute must be built
from dicts only, lists and tuples which don't contain dicts will be directly
set to the attribute
- eg: listnetworkserviceproviderresponse : servicelist = ['vpn', 'dhcp',
  'firewall'] contains no name,value combination to make attributes. So we make
self.servicelist = ['vpn','dhcp','firewall']
2011-11-30 17:42:40 +05:30
Prasanna Santhanam 3db3b92e2b - some quick environment configuration files
- adding service providers for zone configuration
- getting the python framework working with providers
2011-11-29 23:30:38 +05:30
Sam Robertson d684dd86e1 Added more reporting, Fixed bug with setting globals, Added info to README, minor tweaks 2011-11-20 18:04:55 -06:00
Sam Robertson b4ddcfbe48 Cleaning up stuff, reorganizing parser into a class to make it more manageable 2011-11-08 17:11:44 -08:00
Sam Robertson 3bdb5af2e2 initial checkin translator script to convert xml to python 2011-11-06 20:59:07 -08:00
frank cef30956e9 Merge branch 'newagentmgr'
Conflicts:
	agent-simulator/src/com/cloud/api/commands/ConfigureSimulator.java
	ovm/src/com/cloud/ovm/hypervisor/OvmDiscoverer.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/capacity/CapacityManagerImpl.java
	server/src/com/cloud/network/F5BigIpManagerImpl.java
	server/src/com/cloud/network/JuniperSrxManagerImpl.java
	server/src/com/cloud/resource/ResourceManagerImpl.java
	server/src/com/cloud/server/ManagementServerImpl.java
	server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
	utils/src/com/cloud/utils/db/GenericDao.java
2011-10-27 11:09:56 -07:00
Edison Su 92eaf49f29 Add storage migration 2011-10-24 15:59:47 -07:00