88 Commits

Author SHA1 Message Date
Talluri
9342f561f7 CLOUDSTACK-1530: Fix integration test scripts in the components folder for imports and ostypeid Fix the integration scripts for nose import and ostypeid corrections
from nose.plugins.attrib import attr

"ostype": 'CentOS 5.3 (64-bit)',

        template = get_template(
                            cls.api_client,
                            cls.zone.id,
                            cls.services["ostype"]
                            )

Signed-off-by: Talluri <Srikanteswararao.Talluri@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-03-06 13:45:07 +05:30
Prasanna Santhanam
f5ba9137cc Back to the old expunge logic
The expunge interval and delay are respected and no additional delays
are introduced.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-02-25 10:59:02 +05:30
Chip Childers
6cc1123a3e Correcting license headers that broke the build
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-02-21 16:29:05 -05:00
Parth Jagirdar
8134885e2d CLOUDSTACK-1180: UI test automation using selenium
Description:
	Adding selenium test scripts.
2013-02-21 12:04:18 -05:00
Rohit Yadav
80d58b6c73 CLOUDSTACK-1317: Bump CloudStack package version to 4.2.0-SNAPSHOT in all poms
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 16:42:56 +05:30
Kelven Yang
1b2b369ecb Merge latest master into javelin 2013-01-31 11:34:49 -08:00
Rohit Yadav
ae3d8aa018 rat: Fix apache license
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-30 17:44:41 -08:00
Marcus Sorensen
15906c03ca Summary: add/remove/update default nics feature
Description: Adds API calls updateDefaultNicForVirtualMachine,
addNicToVirtualMachine, and removeNicFromVirtualMachine. These are
intended to allow a user to modify a VM's configuration post
deployment, to adjust the networks to which the VM belongs.

BUG-ID: CLOUDSTACK-645
Submitted-by: Brian Angus <blangus@betterservers.com>
Submitted-by: Ryan Dietrich <ryan@betterservers.com>
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1359494800 -0700
2013-01-30 17:43:21 -07:00
Rohit Yadav
a4c778e115 test_vm_life_cycle: Don't wait a lot poll for change every expunge_cycle interval
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-25 23:40:01 -08:00
Rohit Yadav
221ac72a2e test_vm_life_cycle: Consider 600s threshold for expunge.delay as per server logic
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-25 19:01:23 -08:00
Rohit Yadav
bc40ed85e5 test_vm_life_cycle: Fix expunging logic as in mgmt server
Sets expunge interval to 600 if it's less than that

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-25 17:43:37 -08:00
Marcus Sorensen
975021dda1 Summary: adding resizeVolume api call
Detail: This merges the resizevolume feature branch, which provides the
ability to migrate a disk between disk offerings, thereby changing its
size, or specifying a new size if current disk offering is custom.

BUG-ID: CLOUDSTACK-644
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358358209 -0700
2013-01-16 17:43:35 -07:00
Marcus Sorensen
4f479e2b23 Summary: Modifying integration tests to use 128MB service offerings
Detail: The default devcloud tiny template is set up via devcloud.sql to have
at least 100MB RAM, changing the tests as well. This will also allow the builtin
devcloud-kvm tiny template to work for tests as it requires a bit more.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358357431 -0700
2013-01-16 10:30:31 -07:00
Prasanna Santhanam
1b8e17255f integration test fix: test iso - obj reference within classmethod 2013-01-10 20:29:12 +05:30
Rohit Yadav
85e73a640e Merge branch 'master' into api_refactoring
Conflicts:
	client/tomcatconf/commands.properties.in

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-03 23:27:42 -08:00
Prasanna Santhanam
287d7f4df0 marvin tests: marking the xen specific tests
these tests do verification assuming xenserver style disks /dev/xvda/b

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-01-03 22:13:14 -08:00
Rohit Yadav
102fcf370b CLOUDSTACK-736: Make integration smoke test assert on deployed vm name from response
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-03 15:37:09 -08:00
Prasanna Santhanam
e49b3b27de marvin: storagetype reference only when attr present
reference the storagetype only when present. storagetype is reqd only for
devcloud style tests
2012-12-09 23:13:24 -08:00
Prasanna Santhanam
3ba8dc455f Smoke Tests: incorrect self reference in setUpClass
should be cls.apiClient and not self.apiClient
2012-12-09 22:15:37 -08:00
Prasanna Santhanam
21819dafb5 Summary: Devcloud tests for vm life cycle
Detail: VM Life cycle tests needed minor changes to run them against a
devcloud - basic zone, local storage envrioment.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354760111 -0800
2012-12-05 18:15:11 -08:00
Talluri
4b539ddcb3 Summary: Fixes marvin integration test for copy template/iso between zones
Detail:
This is a fix
1. to populate 'destzoneid' as part of the test data by issuing
listZones API. Earlier, this is provided manually in the test data.
2. to  wait till the ISO/template is downloaded & installed successfully
before being deleted as part of the cleanup.

BUG-ID: CLOUDSTACK-567
Reviewed-by: Prasanna Santhanam
Reported-by: Prasanna Santhanam
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354234426 -0800
2012-11-29 16:13:46 -08:00
Prasanna Santhanam
2c561dd3a8 Summary: Removing ostypeid dependencies from tests
Detail: The listOsTypes API will filter when given the ostype name as
centOS 5.3. There is now no need to hardcode the uuids into the test

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354228309 -0800
2012-11-29 15:41:56 -08:00
Prasanna Santhanam
145ba437cb fixing sed replace typo 2012-11-09 18:56:23 +05:30
Prasanna Santhanam
d251bafbd4 Summary: tests can be driven parallely per module
Detail:  multiprocess plugin will drive each module in a seperate
process. the test runs will now be speeded up.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352465966 +0530
2012-11-09 18:29:25 +05:30
Prasanna Santhanam
07d555db37 Summary: secondary storage tests refactored
Detail: The secondary storage tests are now simplified. Since before
running tests we already ensure the health checks - template, builtin,
system vms are ready. there is no need to add additonal wait/sleep here.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351595163 +0530
2012-10-30 16:37:28 +05:30
Prasanna Santhanam
c916d6a1f1 Bash is not python!
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351573594 +0530
2012-10-30 10:37:16 +05:30
Prasanna Santhanam
802ddd43ca Summary: Moving the test integration libraries into marvin for CLI work
Detail: Integration tests use these libraries (base,utils,common) for
simplifying the usage of the API. These define the verbs of each
entity's usage (create, delete, add etc). For the CLI to present the
simplified API we'll leverage the integration libraries.

+ Fixes to setup-test-data.sh - kvm and xen each use a different version
of the built-in Cent OS template, 5.5 and 5.3 namely.

At a later point the setup-test-data script needs to be obsoleted.
ostypeids in tests should directly be determined from listOsTypes API
calls

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351520707 +0530
2012-10-29 20:23:02 +05:30
Prasanna Santhanam
591cc5971f Summary: Do not filter by podid as systemvms span the zone
Detail: test_secondary_storage.py.test_systemvm_start() would try to
verify system VMs running under the zone but would filter by podid which
is not reqd. As systemVMs space a zone, filtering them zone-by-zone is
sufficient.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351506366 +0530
2012-10-29 15:57:35 +05:30
Prasanna Santhanam
8d7ad6020d Built-In is of type CentOS 5.5 (64-bit)
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351434029 +0530
2012-10-28 19:51:32 +05:30
Prasanna Santhanam
5e451f899c Summary: Removing dbclient.close calls from integration tests
Detail:  Marvin auto-manages its connections now and there is no need to
call dbclient.close on tearDown of the test setup.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351152797 +0530
2012-10-25 13:44:45 +05:30
Prasanna Santhanam
0984f4319a Snapshot related tests moved for speedup
Snapshots take many hours to run because the lowest snapshot period for
testing is an HOURLY snapshot. The component tests are the right place
to run any long running tests. This will also speed up the smoke tests
to under an hour.
2012-10-18 09:42:00 +05:30
Prasanna Santhanam
c86c5d2cc0 Uniting all the READMEs from tools and test
There are various READMEs under Cloudstack. This makes it confusing for
finding the purpose of each directory and tool within the project. All
the necessary information can now be found in the top-level README.tools
that is markdown editable. For the most updated information however it
is best to provide a wiki link to the tool you have added. Each tool
lies in a seperate section, please keep formatting unchanged.
2012-10-12 17:01:20 +05:30
Prasanna Santhanam
780468659f uniting the READMEs
Many READMEs spread over the integration and marvin test related
information can now be found in the single top-level directory
2012-10-12 16:07:03 +05:30
Prasanna Santhanam
d1e260032f Python style error because of extraneous characters
Presence of Non-ASCII characters caused compilation errors.
2012-10-12 15:27:13 +05:30
David Nalley
eac941d590 fixing license header for test_allocation_states.py CLOUDSTACK-314 2012-10-11 08:05:41 -04:00
Prasanna Santhanam
187d4f7ec9 hyphenate the option for mysql passwd. typo blunder 2012-10-09 19:45:19 +05:30
Prasanna Santhanam
71437addf5 Work with cloud user to find CentOS 5.3 passwd 2012-10-09 19:41:51 +05:30
Hugo Trippaers
aa6355ffe6 Updated master to 4.1.0
mvn release:update-versions -DautoVersionSubmodules=true -Dnonoss -P
client,deps,developer  -DdevelopmentVersion=4.1.0-SNAPSHOT
2012-10-01 11:00:55 -07:00
Prasanna Santhanam
0cb54e2486 Exit code needs to be captured post nc output. Don't exec as cmd 2012-09-26 20:20:47 +05:30
Pradeep Soundararajan
d94873ab4b CLOUDSTACK-28 wget.exe (GPLed) is present in the tools directory as a binary
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-24 10:31:47 -04:00
Manikanta Kattamuri
cfc2b85651 Removing eclipse .classpath and .project files as they are configured to ant build and adding the entries into .gitignore to stop further comitting of the files
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-13 14:18:14 -04:00
Sebastien Goasguen
2329ee146a Correcting two instances of wiki.c.o to point to cwiki.a.o
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2012-09-13 19:35:53 +05:30
Prasanna Santhanam
41f6127fe1 Add license header the setup-test-data file 2012-09-12 18:48:34 +05:30
Prasanna Santhanam
ce59b31c8d Additional tests in various areas 2012-09-12 18:48:33 +05:30
Prasanna Santhanam
9bba325915 renaming appropriately the setup data file
./setup-test-data.sh -t "path_to_tests" -d "db_svr" -m "mgt_svr" -p "hypervisor root password"
2012-09-12 18:48:33 +05:30
Prasanna Santhanam
cef2ad170f Adding more classifications
- maintenance (host goes to maitnenance)
- multihost, multizone, multistorage
2012-09-12 18:48:33 +05:30
Prasanna Santhanam
97b7873590 Splitting resource_limit tests to allocation_states tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam
149bcb390b adding attributes to the smoke tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam
9043e49522 migrating tags to attr decorators for nose attrib classification 2012-09-12 18:48:32 +05:30
Prasanna Santhanam
bb8016e08b Applying tags as attribute decorators for nose 2012-09-12 18:48:32 +05:30