Commit Graph

552 Commits

Author SHA1 Message Date
Prasanna Santhanam fd6be7a37b marvin: establishing some defaults
when logging in just use defaults if no service dict values are provided
2012-12-13 14:09:20 -08:00
Rohit Yadav 1551b982c4 cli: Handle command breaks, ctrl+c, don't break the shell
- Fix handles shell loop
- Handles any control breaks without breaking the shell
- Handles ctrl+c to start afresh on the shell

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-12 15:21:03 -08:00
Prasanna Santhanam 864ab37e13 marvin lib: changes for accomodating vpc related apis
new apis for the integration lib for VPCOffering, VPC, NetworkACL Apis.
Also some extra checks from for avoiding KeyErrors in the Services dict.
2012-12-12 11:07:28 -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 7d4e65740b marvin: assertion check when fetching featured templates 2012-12-09 22:15:38 -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 8466ff1e1f Marvin: Provide a userApiClient for executing with user permissions
The getUserApiClient attribute in cloudstackTestClient provides a user level
api client that executes all API calls with permissions of a given user instead
of the default admin
2012-12-09 22:15:30 -08:00
Prasanna Santhanam a7d7f85e40 Marvin doesn't require python 2.7, the tests do
To compile marvin using maven any standard python interpreter above 2.4
is sufficient. The tests under test/integration will need 2.7 to run.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354929362 -0800
2012-12-07 17:17:02 -08:00
Prasanna Santhanam d1e49a0500 Marvin: testClient close calls try to close the dbConnection
dbConnections are auto-managed do not need explicit closing

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354919683 -0800
2012-12-07 14:35:53 -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
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
Rohit Yadav 51a5919be1 devcloud: fix configuations for default devcloud.sql
Patch moves config. info from cfg file to .sql file. Adds more options so DevCloud
can run on host-only IPs and cidr.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-28 23:32:31 -08:00
Rohit Yadav af12a25a60 devcloud: Update IP as per new DevCloud appliance
The new DevCloud nic (host-only) IP is 192.168.56.10 by default

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-27 18:15:24 -08:00
Rohit Yadav 3e8655b580 cli: Handle badline http error
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-21 18:27:11 +05:30
Rohit Yadav 3b2e715888 cli: string fixes, use the major,minor version numbers same as CloudStack
<cloudstack major>.<cloudstack minor>.<cloudmonkey increment number>

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-20 14:56:34 +05:30
Rohit Yadav f7ba73f7d9 CLOUDSTACK-504: Remove duplicate cloud-set-guest-password script
There are two duplicates for the script cloud-set-guest-password:
> setup/bindir/cloud-set-guest-password.in
> tools/guest_password/cloud-set-guest-password

The one in tools/guest_password is older and all other scripts are in
setup/bindir. Therefore, keeping the former, removing the latter.

BUG-ID : CLOUDSTACK-504
Reviewed-by: Rohit Yadav <bhaisaab@apache.org>
Reported-by: Rohit Yadav

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-20 12:33:35 +05:30
Rohit Yadav 5a2e15f67c CLOUDSTACK-522: Log requests in cloudmonkey's log
Patch fixes cloudmonkey to log requests in the log_file.
Summary:
  - Fixes logger
  - Fixes color print issue
  - Fixes welcome message
  - Makes code pep8 compliant

BUG-ID : CLOUDSTACK-522
Reviewed-by: Rohit Yadav <bhaisaab@apache.org>
Reported-by: Rohit Yadav

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-20 12:20:23 +05:30
Chip Childers f7d2041056 Added exit as a cloudmonkey command, in addition to the existing quit command.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-11-19 14:39:58 -05:00
Chip Childers 311ef69a77 CLOUDSTACK-514: Added protocol and path support to cloudmonkey.
This is the second half of making cloudmonkey and marvin more
flexible in environments that may have https enabled and / or
a different path for the cloudstack API.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-11-19 14:24:10 -05:00
Chip Childers 2ee9253c78 CLOUDSTACK-514: Adding https and api path support to Marvin.
This is the first part of fixing CLOUDSTACK-514, and is hopefully
backward compatible with previous use of Marvin.  I added two new
parameters to the cloudstackConnection module, protocol and path.
Both have been defaulted to the previously *assumed* values.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-11-19 12:06:18 -05:00
Rohit Yadav 1169464e35 cli: add exec rule to compute precache on mvn compile
Patch adds rules in maven to create precached file using cachegen

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-19 05:28:24 +05:30
Rohit Yadav dc3c263d0f cli: move common code to common module
- Move config, grammar to common
- Cleanup cloudmonkey.py, import from common
- Import precached verbs, if fails init to {}

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-19 05:28:23 +05:30
Rohit Yadav 9070795be0 cli: precache generator
- Adds precache generator for all verbs in grammar
- ignore precache.py

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-19 05:28:23 +05:30
Rohit Yadav 7f08c9db57 cli: rename version to common
The idea is to refactor and put common code in common module

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-19 05:28:23 +05:30
Rohit Yadav bbb2a56acb cli: refactoring, new grammar rules and command fixes
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-17 17:38:18 +05:30
Rohit Yadav 7ce53e89aa cli: make parse in posix mode
Posix mode allows the parse to:
- split by whitespace but value="between quotes are retained or enclose"
- quotes are stripped out

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-17 04:07:35 +05:30
Rohit Yadav aa3ae45e6b CLOUDSTACK-499: Fix cloudmonkey's request and response methods
The old way of parsing involved complex object loading and traversing, in
new implementation json is used directly and authenticated requests via port
8080 making use of api and secret keys are recommended.

All args on shell are created in {"key": "value"} pairs which are used to create
url with &key=value. This way maps can be passed as args, example:

create networkoffering name=unique-name guestiptype=Isolated traffictype=GUEST
supportedservices=Dhcp,Dns serviceproviderlist[0].service=Dhcp
serviceproviderlist[0].provider=VirtualRouter serviceproviderlist[1].service=Dns
serviceproviderlist[1].provider=VirtualRouter

Added new conf variables:
- timeout: the no. of seconds after which an async job query timeouts
  default value of 3600 seconds
- asycnblock: if user wants their async commands to be tracked
  default value is 'true', if set to false, user can query using jobid which is
  returned by the async command and queried using:
     query asyncjobresult jobid=<jobid>

BUG-ID : CLOUDSTACK-499
Reviewed-by: Rohit Yadav <bhaisaab@apache.org>
Reported-by: Dave Cahill

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-16 22:18:32 +05:30
Rohit Yadav 8ea2cc4e57 marvin: raise error so cli can pick it up
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-16 22:18:32 +05:30
Prasanna Santhanam 6e86fac8e5 Summary: Add autoscale categories
Detail:  Every new API that doesn't have  a valid category prefix needs
to be include in the gen_toc.py script for apidocs, marvin and
cloudmonkey to build.

BUG-ID:  CLOUDSTACK-501
Reviewed-by: mvn clean install -P developer
Reported-by: Rohit Yadav <bhaisaab@apache.org>
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1353063359 +0530
2012-11-16 16:25:59 +05:30
Rohit Yadav 08d16cf4d1 cli: Handle HTTP and URL errors
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-15 18:43:51 +05:30
Rohit Yadav 7ae8c4ad7e cli: Split using only space
Patch fixes lexical parser for default argument on shell.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-15 18:43:51 +05:30
Prasanna Santhanam c290bf6cd0 Summary: xml reports library changes
Detail: unittest-xml-reporting 1.4 - the verbose option is available via
settings.py.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352448075 +0530
2012-11-09 13:31:15 +05:30
Rohit Yadav 086b2e15af apidocs: remove whitespace while passing commands.in for apidocs
Due to whitespaces, apidocs was not able to process and generate commands.xml
with APIs listed in ext and virtualrouter .in files. This in turn affects marvin
code generation of cloudstackAPI and cloudmonkey.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-08 16:33:04 +05:30
Rohit Yadav c667eee570 cli: make commands pipe-able as on bash, on the shell
Makes commands pipe-able like bash.
Example while inside shell:
  > list virtualmachines | grep id
  > list accounts | more

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-08 12:35:20 +05:30
Marcus Sorensen 6e23cad126 Summary: Add Bugfix-for line to prepare-commit-msg
Detail: This reminds us to tag commits that should be considered for a bugfix
release, making them easier to find/apply and less likely to slip through the
cracks. Individual committers really should know best which things need to be
pushed as an immediate bugfix anyway, this makes it easy to tag things as such.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1352308027 -0700
2012-11-07 10:07:07 -07:00
Rohit Yadav 8e64f34012 cli: autocomplete to assignment, adds syntactic sugar
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-07 18:34:23 +05:30
Rohit Yadav 5e293f422d cli: add maven plugin to delete copied marvin folder on fresh install
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-07 16:06:01 +05:30
Rohit Yadav a5ad9c3c50 cli: fix keyerror in help doc handler
- Check and then print help docs
- Add verb configure

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-07 16:05:01 +05:30
Rohit Yadav 36e7a7884e cli: fix autocompletion binding bug, make all params lowercase
- fix weird autocompletion bug which won't let you enter the letter b [0]
- make set params, api and secret key vars lowercase
- use partition to get strings for do_set
- while installing, check and only then add readline (requires gcc and can fail)
- show monkey prompt by default, let users change if needed

[0] http://superuser.com/questions/297527/cant-type-the-b-letter-in-python-shell-in-os-x

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 19:41:07 +05:30
Rohit Yadav ac8ae30658 cli: fix argument parsing for set command, fixes unicode monkey char
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 17:59:53 +05:30
Rohit Yadav 77e957c91b cli: fix python sdist, add readline as installation requirement
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 17:06:11 +05:30
Rohit Yadav b713865308 cli: pip install cloudmonkey works
Patch makes cloudmonkey installable and redistributable using source dist from
pypi under apache compliant license. Most visible issues have been solved and
cloudmonkey should work well with CloudStack 4.0 and master, also until APIs do
not change.

To install now:
    pip install cloudmonkey

or, if you have to:
    easy_install cloudmonkey

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 16:07:42 +05:30
Rohit Yadav a94f6f19bb cli: make parsing robust using shlex
Parsing bug fixed using the simple lexical analysis library

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 15:19:08 +05:30
Rohit Yadav 5c24c34d7f cli: use partition instead of split to parse through args
Use partition instead of splitting on whitespace. This is little robust, but
may still fail for parameters whose values have whitespaces such as names etc.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 14:54:35 +05:30
Rohit Yadav 9e6b366023 cli: add autocompletion and dynamic help doc
- autocompletions for help docs
- more verbose doc strings with __doc__ import from the module and list of
  required args and all args

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 14:28:40 +05:30
Rohit Yadav a1089c4304 cli: move code, refactor and add docstring
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 14:28:40 +05:30
Rohit Yadav d0f9610355 cli: add feature to cache docstrings for an api
cached verb dictionary stores the following as a list:
- name of the API
- params (list of args)
- docstring

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 14:28:39 +05:30
Rohit Yadav 00d5c3f35c cli: fix help and doc strings, comments
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-06 14:28:39 +05:30
Rohit Yadav c10eeb6036 cli: strip args else this fails on parsing
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 21:59:03 +05:30
Rohit Yadav 64907c1da4 cli: fix parsing args
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 21:59:03 +05:30
Rohit Yadav c444bb3811 cli: don't get the required list as params
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 21:59:03 +05:30
Rohit Yadav 98d341d932 cli: add grammar to class
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 21:59:03 +05:30
Rohit Yadav 94649491be cli: fix color parsing
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 21:59:03 +05:30
Rohit Yadav 8c12f49dbe cli: fix intro message
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 21:59:03 +05:30
Rohit Yadav 5611a8eda2 cli: add logic to complete api parameters and use caching to optimize runtime
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 21:59:02 +05:30
Rohit Yadav 49b4786de6 cli: don't search rule in apis, filter apis that start with that rule
Search verb in apis takes more time than filtering out apis that start with
that verb from the grammar.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 18:15:48 +05:30
Rohit Yadav 46ad8d6f4e cli: remind user to set host, port too
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-05 18:15:47 +05:30
Rohit Yadav 51a5377d05 cli: add more verbs to grammar
Adds additional verbs to grammar of cli

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-01 14:12:08 +05:30
Chip Childers 000cc72042 CLOUDSTACK-422: XSL files missing license header
Added license headers to the apidoc XSL files that were fooling RAT.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-31 14:13:48 -04:00
Rohit Yadav b38cf801ac cli: setup.py for cloudmonkey
Version are named in reflection of CloudStack.
<cli major-version>.<cloudstack minor>.<cloudstack.major>
So, for CloudStack 4.1.0, version for cli should be 0.1.4

To create distribution:
  python setup.py sdist
  python setup.py install

Using pip:
  pip install dist/cloudmonkey*

Or pretty soon, from cheese shop:
  pip install cloudmonkey

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:21 +05:30
Rohit Yadav 039b938ecc maven: pom.xml for tools/cli
copies marvin to cli/cloudmonkey/

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:17 +05:30
Rohit Yadav 2ceaa3911e cli: cloudmonkey the command line interface
cloudmonkey
-----------
Apache CloudStack's very own monkey powered command line interface based on Marvin.
The neglected robot and monkey should rule the world!

Features:
- it's a shell and also a terminal tool
- scalable to find and run old and new APIs
- intuitive grammar and verbs
- autocompletion (functional hack)
- shell execution using ! or shell
- cfg support: user defined variables, like prompt, ruler, host, port etc.
- history
- colors
- dynamic API loading and rule generation
- leverages Marvin to get latest autogenerated APIs
- emacs like shortcuts on prompt
- uses apiKey and secretKey to interact with mgmt server
- logs all client commands
- PEP-8 compliant code

TODOs:
- Reverse search
- Fix input and output processing

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:14 +05:30
Rohit Yadav d72d3ee22b marvin: check and use logger
Checks and only then calls logger

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:18:06 +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
Rohit Yadav c68c7e2a2d devcloud: Fix default template url and deploydb error
- Fix the default builtin template url. The previous url is not reachable by
  public network.
- Remove INSERT statement which already gets inserted in cloud.configuration
  by mvn -P developer -Ddeploydb

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-29 19:05:46 +05:30
Prasanna Santhanam 5b43d245a7 Summary: Extending API doc pom to package
Detail: Create tarball of apidocs for distribution from jenkins
% mvn -Pdeveloper package

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351321002 +0530
2012-10-27 12:26:42 +05:30
Prasanna Santhanam 241daa53c6 Summary: Mavenize marvin on master
Detail: Maven will now compile, install and deploy marvin using the
developer profile
    $ mvn -P developer

compile - compiles the cloudstackAPI
package - packages the marvin source distributable
deploy  - installs using pip (reqd python 2.7) the Marvin package in to
site-packages/

BUG-ID : CLOUDSTACK-378
Reported-by: Prasanna Santhanam <tsp@apache.org>
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351319186 +0530
2012-10-27 11:56:25 +05:30
Prasanna Santhanam 6f2792eb4b Summary: Close the ssh transport from paramiko
Detail: SSH Transport to be explicitly closed in marvin.remoteSSHClient
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351002168 +0530
2012-10-23 19:52:48 +05:30
Wido den Hollander 5e44e61127 docs: Build the installation guide instead of "all"
It seems that all the work is going into the installation guide instead
of the "-all" docs.

With this commit we build the installation guide documentation.
2012-10-22 12:08:11 +02:00
Prasanna Santhanam fd5421670d Remove redundant code in try..except block
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1350839262 +0530
2012-10-21 22:39:21 +05:30
Edison Su d1af01fbc8 add marvin project 2012-10-21 00:01:48 -07:00
Edison Su b57be3389e add apidocs/devcloud projects 2012-10-21 00:01:47 -07:00
Prasanna Santhanam 9a90dc227e Distutils install_requires doesn't resolve dependencies
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1350733702 +0530
2012-10-20 17:18:22 +05:30
Prasanna Santhanam 355b152993 Summary: Replace pymysql in marvin with a stable mysql-connector-python
Detail: mysql-connector-python developed by Oracle will replace the MIT
licensed pymysql. mysql-connector-python is developed by Oracle and is
more favourable, faster and actively developed.

With this commit - the dbConnection object is also auto managed by
contextlib. Each transaction requests its own connection rather than
sharing one single connection for all the test runs.

BUG-ID : None
Reviewed-by: timeit comparison of pymysql and mysql-connector-python
Reported-by: dbExceptions and timeouts from Marvin test runs
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1350732083 +0530
2012-10-20 16:57:06 +05:30
Edison Su f6ac4dbe5d fix some pom xml files indentation, add db.root.passowrd, add utils/conf/db.properties.override, add to create user cloud, add devcloud pom file
Conflicts:

	pom.xml
2012-10-19 15:27:19 -07:00
Chip Childers 4cb934dfa9 Added license header to a new file.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-19 09:41:53 -04:00
Prasanna Santhanam 7460b01893 Summary: provide deployment config access to marvin's testcase
Detail:
Sometimes tests need ssh access to the management server to perform
verification such as:

1. Pings from mgmt_server to agents
2. snapshots exist on secondary storage - mountable from mgmt server

For these the tests will need access to the config of the deployment and
the ip address of the mgmt server.

Egs: integration/component/test_egress.py and integration/component/test_snapshots.py

BUG-ID : CLOUDSTACK-377
Reported-by: Prasanna Santhanam
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1350624903 +0530
2012-10-19 11:06:53 +05:30
Marcus Sorensen a3c9a2b22d Summary: prepare-commit-msg skip merges, -m flag, squash, template
Detail: prepare-commit-msg now is skipped if -m flag is supplied, if user has
a template defined, if commit is a squash or a merge.

BUG-ID : none
Reviewed-by: Marcus Sorensen <marcus@betterservers.com>
Reported-by: Marcus Sorensen <marcus@betterservers.com>
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1350600822 -0600
2012-10-18 16:53:42 -06:00
Marcus Sorensen 9ba7509c70 Summary: add git prepare-commit-msg file
Detail: CloudStack committers can optionally use this file to prepopulate their
commits with a standard form. The idea was that it would help us get better
commit messages. It is set up locally up by running the following from the root
of the repo:

'ln -s ../../tools/git/prepare-commit-msg .git/hooks/prepare-commit-msg'

Additionally, a different prepare-commit-msg could potentially be committed for
each branch and the link will always point to the one that's checked out.

BUG-ID : none
Reviewed-by: Marcus Sorensen <marcus@betterservers.com>
Reported-by: Rohit Yadav <rohit.yadav@citrix.com>
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1350596087 -0600
2012-10-18 15:34:47 -06:00
Chip Childers 2ed1c53e0e Adding DISCLAIMER.txt to the marvin tool.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-17 12:27:00 -04:00
Chip Childers 6e60a07566 CLOUDSTACK-326: Corrected marvin license file to be full ASLv2 license text
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 16:41:17 -04:00
Chip Childers 6151a29949 CLOUDSTACK-326: Combining Marvin Sandbox README with README.tools.md
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 16:11:17 -04:00
Chip Childers a82761dfe3 Removed KEYS file copy operation from the source build script.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 15:38:52 -04:00
Chip Childers 8c31af0e1c Source build modified to produce *.tar.bz2 instead of *.tar.gz
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 14:06:53 -04:00
Chip Childers 24978eed59 CLOUDSTACK-331: Added legal docs for ui/lib/excanvas.js
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 12:36:43 -04:00
Chip Childers 578bca08cb Dropping .zip archive format from the source build
This is due to the nature of ASF release votes,
and the desire to see each individual artifact be tested.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 11:08:12 -04:00
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
Chip Childers 724cd6868c Added legal docs for axis2-codegen-1.4.1.jar 2012-10-09 23:14:39 -04:00
Chip Childers 9a3f5e2420 Added wss4j legal documentation
Conflicts:

	NOTICE
	tools/whisker/descriptor.xml
2012-10-09 23:14:39 -04:00
Edison Su 93024c8104 fix some pom xml files indentation, add db.root.passowrd, add utils/conf/db.properties.override, add to create user cloud, add devcloud pom file 2012-10-09 01:14:32 -07:00
Sebastien Goasguen 5a0f600924 New devcloud.cfg to be used with marvin deployDataCenter.py to configure devcloud infra
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-08 10:14:42 -04:00
Edison Su f78d9783f1 CLOUDSTACK-248: install cloud-scripts twice during upgrade 2012-10-05 12:02:10 -07:00
David Nalley bae835d6c3 adding an option to the build script to permit setting a pgp key with which to sign 2012-10-05 00:27:58 -04:00
Alex Huang 02ca9c25b3 Applied patch to get rid of cloud-premium 2012-10-01 17:16:09 -07:00
Chip Childers 90fd0793fe Modified devcloud build process to include maven3 install and steps. 2012-10-01 16:56:05 -04:00
Chip Childers 39e4c60f3a CLOUDSTACK-147 - Adding rsyslog.conf to the public domain in our legal docs 2012-10-01 12:34:46 -04:00
Chip Childers e1ae302c1c Added libvirt-java to the license descriptor.
Fixed tabs in descriptor.xml
Added libvirt-java to the LICENSE file
2012-09-28 15:59:53 -04:00
Chip Childers 220107c93e CLOUDSTACK-166 - Marking conntrackd.conf.templ as public domain 2012-09-27 14:55:52 -04:00
Chip Childers 7e1c3ec3cc CLOUDSTACK-145 - Added licensing for ssh config 2012-09-27 14:47:57 -04:00
Matty Courtney 062e94a317 CLOUDSTACK-196: cloud-set-guest-password enhancement to support Debian
(and derivatives)

Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-25 15:42:28 -07:00
Chip Childers bba772672a Switched copyright symbols to (c) for easier reading in places where the character encoding is garbled. 2012-09-25 16:28:19 -04:00
Chip Childers 719ccab0ef Worked around a Whisker bug for the LICENSE file. 2012-09-25 14:48:39 -04:00
Chip Childers e2730c91d9 Adding license headers and licensing details for patches folder. 2012-09-25 14:26:52 -04:00
Edison Su 8f2afb9305 add guest set password script into repository 2012-09-24 19:01:21 -07:00
Wido den Hollander 77d74c65d9 Add license header for build_docs.sh 2012-09-24 15:30:23 +02:00
Wido den Hollander a7b82f7b0b docs: Add build script
There is currently no script to build the docs with, this is an easy script
to build them.

An example how I use it:
$ cd ~wido/repos/cloudstack
$ tools/build/build_docs.sh -s $(echo ~wido/repos/cloudstack)
2012-09-24 14:40:00 +02:00
Edison Su 14dd9cd197 CLOUDSTACK-75: Modified installer text from 'Cloud.com CloudStack' to 'Apache CloudStack 2012-09-20 14:37:44 -07:00
Pradeep Soundararajan 29de80da4a CLOUDSTACK-27 - Removing GCC
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-20 10:21:56 -04:00
Chip Childers d501b34b09 Fixed some file name issues for the build_asf.sh script 2012-09-19 14:16:16 -04:00
Edison Su cc92a4ce78 add deb/rpm install.sh 2012-09-18 15:55:43 -07:00
Prasanna Santhanam 6e9d7aa45b property files and build file fixes for simulator db changes 2012-09-17 17:33:26 +05:30
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 02d33344bd elasticIp added as virtual network in basic zone 2012-09-12 18:48:34 +05:30
Prasanna Santhanam 3eb75b57af IP ranges for public network in an EIP enabled zone 2012-09-12 18:48:33 +05:30
Prasanna Santhanam 9d2cf01717 Changes to accomadate the localstorage setting at zone level 2012-09-12 18:48:33 +05:30
Prasanna Santhanam 8ee8fdcc17 In basic zones enable the sg provider 2012-09-12 18:48:33 +05:30
Prasanna Santhanam cc6dae1eb4 There can be only one physical network in basic zone 2012-09-12 18:48:33 +05:30
Prasanna Santhanam c4f91b2914 Write results to stdout when result log is not specified 2012-09-11 11:06:23 +05:30
Edison.Su 653cdb3c5d CLOUDSTACK-64: remove junit 2012-09-10 23:15:05 -04:00
Edison.Su c14dcd2da2 CLOUDSTACK-63: remove ant 2012-09-10 16:19:10 -04:00
Chip Childers b1ae7c732c Partial fix for awsapi deploy-server issues that I introduced when trying to fix CLOUDSTACK-26 2012-09-10 14:42:08 -04:00
Sebastien Goasguen 5a9d7a7910 Remove tools/migration https://reviews.apache.org/r/6976/diff/
Signed-off-by: Mice Xia <mice_xia@tcloudcomputing.com>
2012-09-10 10:37:37 +08:00
Sebastien Goasguen 073a91544f Remove /tools/test which is taken over by /tools/marvin
Signed-off-by: Mice Xia <mice_xia@tcloudcomputing.com>
2012-09-10 10:37:37 +08:00
Sebastien Goasguen edcceb60de Clean up docs in /tools/marvin:
removed /docs and pointed to new wiki page in README
2012-09-09 10:51:36 +05:30
Chip Childers 56a1da9f1e Correcting NOTICE file to include jquery 1.3.2, as well as some minor character fixes. 2012-09-07 20:11:22 -04:00
Chip Childers ff81d0000e Resolving CLOUDSTACK-49 : Correct the source tar.gz and zip extract folder names to match the release artifact name. 2012-09-07 14:15:54 -04:00
Chip Childers 6ec623d2d5 Fixed file names in the build_asf.sh script 2012-09-07 13:36:09 -04:00
Chip Childers 975b16775d Fixed artifact names in build_asf script 2012-09-07 12:05:23 -04:00
Chip Childers a246a7ac8a Corrected CAStorSDK.jar license documentation approach, as well as some minor descriptor.xml fixes. 2012-09-06 12:23:35 -04:00
Chip Childers 19a3037325 ASF build process improvements. 2012-09-04 16:24:19 -04:00
Chip Childers b5ab5c2b02 Adding a build script for use when creating ASF releases and release candidates 2012-09-04 14:22:23 -04:00
Chip Childers 7c30fe509b Removing addcopyright.py from the source tree 2012-09-04 10:55:28 -04:00
David Nalley 22327d2d64 removing selenium 2012-08-31 12:46:00 -04:00
Gavin Lee 39a676c496 Correct license header mainly for patches folder
Signed-off-by: Chip Childers <chip.childers@gmail.com>
I've assumed that Gavin's commit is appropriate, based
on an assumption that we will keep these files in the source
tree.  If https://issues.apache.org/jira/browse/LEGAL-146
results in a different opionion from the members, then we
will end up having to do something more drastic anyway.
2012-08-31 10:50:46 -04:00
Gavin Lee d3921139ed Patch from Gavin Lee: Change license to ASL2.0 in server and tools
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-08-30 10:36:29 -04:00
Chip Childers 0f0c08373f Added XenServerJava BSD licensing information to the whisker descriptor and output LICENSE files. 2012-08-29 16:33:47 -04:00
Chip Childers bf2601f1ea Added steps to create a 12.04.1 Ubuntu template within VeeWee 2012-08-29 09:21:27 -04:00
Chip Childers 59dea827e1 Patch from Sebastien Goasguen: In tools/devcloud switched to Ubuntu 12.04.1 iso because 12.04 url changed. 2012-08-28 11:54:19 -04:00
Chip Childers 685e59b73d Added a more licensing info. 2012-08-21 13:34:20 -04:00
Chip Childers 5c924feba3 Added OpenStack Swift client and Google GSON complier to the license file. 2012-08-20 15:16:32 -04:00
Chip Childers b77e26a9b1 Patch from Adam Grochowski: errorchecking for basebox build 2012-08-20 15:10:08 -04:00
Chip Childers 991795bcc4 Correcting the gcc.sh license header from Citrix to ASF 2012-08-20 14:29:14 -04:00
Chip Childers aecaee2d17 Added license header back into the descriptor.xml file 2012-08-20 11:33:45 -04:00
Chip Childers 754d965fc9 Added license file tracking reference for the jQuery copy living in the console-proxy folder. 2012-08-20 11:27:50 -04:00
Chip Childers 1035da12ec Added jquery related license and notice information to the project 2012-08-20 11:18:58 -04:00
Chip Childers 8c19caebf9 First pass of LICENSE and NOTICE files, along with the whisker descriptor.xml file that I'm using locally 2012-08-17 15:04:24 -04:00
Chip Childers 97fe053e2e Removed ASF license header from network.conf, because XCP doesn't respect comment lines in this file 2012-08-13 11:12:01 -04:00
Chip Childers 2c9e9eef0a Changed location where we set the root password in a devcloud build 2012-08-13 09:13:01 -04:00
Prasanna Santhanam 038608b54f Ignore comments in config files during loading 2012-08-09 17:37:43 +05:30
Prasanna Santhanam f72146e96f Changes to simulator setup files
for provider + traffic type changes in marvin
2012-08-09 15:31:58 +05:30
Prasanna Santhanam aa8fee4fac Correcting the example configurations for advanced and basic zone
Zones will now be have to configured with physical networks, their
traffic types and the providers with the devices supporting the service
2012-08-09 15:31:51 +05:30
Prasanna Santhanam 614131a9de support for traffic type and external devices configuration
* traffictypes = 'Guest', 'Management', 'Public', 'Storage'
    - corresponding nic labels are given in the labeldict
* External device providers JuniperSrx, NetScaler and F5 load balancing
can now be configured

* examples are shown in the configGenerator.py script for basic,
advanced and EIP/ELB based zones

Conflicts:

	tools/marvin/marvin/configGenerator.py
	tools/marvin/marvin/deployDataCenter.py
2012-08-09 15:31:28 +05:30
Edison Su 4429c2d95c add devcloud marvin configuration file 2012-08-08 10:46:43 -07:00
Chip Childers 95c198f356 Updated devcloud README 2012-08-07 20:01:30 -04:00
Chip Childers 64def0ef3d Removing tools/mockito directory, per discussion on dev list 2012-08-07 11:44:15 -04:00
Chip Childers fa7dc09412 Fixed escape issues for wget commands in build_vagrant_basebox.sh 2012-08-07 11:11:27 -04:00
Chip Childers d968193c80 Devcloud puppet configuration additions 2012-08-06 15:57:25 -04:00
Chip Childers 1f28847f7d Devcloud puppet configuration additions 2012-08-06 15:57:25 -04:00
Prasanna Santhanam 6ffafde33a Missing LICENSE headers for sandbox and __init__.py's 2012-08-04 17:29:47 +05:30
Prasanna Santhanam 60cd65382f Removing pymysql and including it as setup dependency 2012-08-04 17:17:11 +05:30
anthony e9a7495952 remove vhd-tools directory 2012-08-03 13:33:29 -07:00
Chip Childers e8f10b74a8 Devcloud build process fixes. 2012-08-03 16:21:05 -04:00
Chip Childers 703a4e8dd1 License header updates for the tools folder. 2012-08-03 12:06:56 -04:00
Chip Childers 58c5a3b6b3 Corrected URL params in build_vagrant_basebox.sh. 2012-08-03 11:08:04 -04:00
Chip Childers 6747df6d32 Added devcloudbase provisioning logic 2012-08-02 15:58:32 -04:00
Chip Childers 34cedcf37f Corrected box label 2012-08-02 15:34:14 -04:00
Chip Childers f25842f142 Devcloud setup scripts - work in progress 2012-08-02 15:17:49 -04:00
chip.childers@gmail.com 1bad242f7b Adding management server startup to puppet config. 2012-07-31 08:43:50 -04:00
Prasanna Santhanam 7288eca129 failonerror for some marvin targets 2012-07-31 12:17:33 +05:30
chip.childers@gmail.com 2b1feadb20 Additional puppet configuration updates for devcloud. 2012-07-30 15:30:25 -04:00
chip.childers@gmail.com 969b94e7db Adding license headers to puppet manifest files 2012-07-30 09:10:49 -04:00
chip.childers@gmail.com 90de18138d Added storage configuration to the devcloud puppet module. 2012-07-30 09:06:45 -04:00
Prasanna Santhanam 8a2135e3fa VpcVirtualRouter is not enabled always. 2012-07-30 15:32:38 +05:30
Prasanna Santhanam 046f2d786f License headers for the marvin plugin and the setup checker 2012-07-30 15:32:35 +05:30
Prasanna Santhanam ed7f72b629 Enable VpcVirtualRouter when deploying advanced zone 2012-07-30 15:32:35 +05:30
Prasanna Santhanam 7662426769 All responsibilty for running through nose belongs to the marvin-nose plugin
Conflicts:

	tools/marvin/marvin/NoseTestExecuteEngine.py
2012-07-30 15:32:34 +05:30
Prasanna Santhanam 13857700d3 Plugin-izing the testcase runner
* setup.py is the installer for marvin-nose plugin
* marvin-nose drive all tests using nose with other plugins like xunit, coverage, multiprocess execution etc
* -n option deprecated. All tests driven by nosetests --with-marvin
2012-07-30 15:32:34 +05:30
Prasanna Santhanam ed113ca844 Correcting the imports for HTTPException 2012-07-30 15:32:34 +05:30
Prasanna Santhanam 9af88ad44d Plugin support to pick test cases using marvin.
Using this plugin Nose will drive tests and this also allows using other
nose plugins. Cmd Line plugin support to be added

Conflicts:

	tools/marvin/marvin/NoseTestExecuteEngine.py
2012-07-30 15:32:34 +05:30
Prasanna Santhanam 0ab7a9289f Support added for attrib, multiprocess and Xunit coverage plugins
Conflicts:

	tools/marvin/marvin/NoseTestExecuteEngine.py
2012-07-30 15:32:34 +05:30
Prasanna Santhanam 84b69e6e0a injecting the testclient during Test Loader process
Without this the tests do not have access to the client APIs
2012-07-30 15:32:33 +05:30
Prasanna Santhanam db5687d691 enhancement related to -x to take directory name/path to store xml reports
Conflicts:

	tools/marvin/marvin/TestCaseExecuteEngine.py
2012-07-30 15:32:24 +05:30
Prasanna Santhanam 91b6e09e6d The NoseTestLoader to pick cloudStackTestCase as tests 2012-07-30 15:27:55 +05:30
Prasanna Santhanam 9443734f1d setup.properties for basic zone environments 2012-07-30 15:27:55 +05:30
Prasanna Santhanam aa4ff87812 Post configuration tests to check
- if system VMs are up and running
- if built-in template is downloaded and ready to launch
2012-07-30 15:27:55 +05:30
Prasanna Santhanam 326655d8c6 xml reports for TestCaseEngine
Conflicts:

	tools/marvin/marvin/TestCaseExecuteEngine.py
2012-07-30 15:27:55 +05:30
Prasanna Santhanam 85c5b5656d adding unittest-xml-reporting as a dependency to marvin 2012-07-30 15:27:55 +05:30
Prasanna Santhanam ba33a25c57 Sandbox scripts for generating one host configuration
- marvin/sandbox/advanced
- marvin/sandbox/basic

* supports generating configurations for cloudstack deployment with
properties files. The format of the config, properties files and the
process is explained in the tutorial:

http://wiki.cloudstack.org/display/QA/Testing+with+python#Testingwithpython-DeploymentConfiguration
2012-07-30 15:27:55 +05:30
chip.childers@gmail.com 25e0cc9d75 Checkpoint commit - work in progress.
Attempting to provide devcloud base box build process via veewee and
puppet provisining via Vagrant.
2012-07-27 23:37:46 -04:00
chip.childers@gmail.com 7da5ab8aca First commit of the devcloud pre-configuration puppet module.
Using this via Vagrant assumes that Vagrant is patched with the changes
made by Edison. The pull request to upstream these changes into the
Vagrant project are here: https://github.com/mitchellh/vagrant/pull/1043 )
2012-07-26 21:25:56 -04:00
chip.childers@gmail.com ff71dd0525 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack 2012-07-26 09:16:07 -04:00
Edison Su 4c6e547e70 create devcloud base image from veewee 2012-07-20 18:20:31 -07:00
chip.childers@gmail.com 827943a865 Initial commit converting the devcloud build
process to being based on puppet and vagrant.
2012-07-19 04:12:19 -04:00
Edison Su b627f5a85b Simplifying the process of running the simulator.
* ant run-simulator - will seed the simulator jar and start CS
    * ant run-marvin -Dmarvin.config="/path/config/file" - will
    * configure a
    cloudstack as per the given configuration. marvin.config - defaults
to a
    two host simulator in an advanced zone

    You can then connect your debugger over localhost:8787 or use the CS
ui
    at localhost:8080/client for testing.

From: Prasanna Santhanam(Prasanna.Santhanam@citrix.com)
2012-07-16 10:34:49 -07:00
Edison Su ed4b6a517b the default templates are put into download.cloud.com 2012-07-11 15:19:21 -07:00
Edison Su fb59fc5c8a disable virtualbox dhcp server for Vms created by cloudstack 2012-07-10 16:20:20 -07:00
Edison Su 3bbb694413 For devcloudsetup.sh:
Added dom0 memory settings to grub config.
    Added root password reset.
    Install xen ia32 instead of amd64, to 32bit compability
Send-by: chip.childers@sungard.com
RB: https://reviews.apache.org/r/5877/
2012-07-10 11:18:32 -07:00
Pradeep Soundararajan 32fef61ac2 [Defect / Enhancement / New Feature] CS-15281 : Removal of third party dependencies in Citrix code base 2012-07-06 17:28:29 -04:00
Edison Su 57ab39937c add script to setup devcloud image 2012-07-05 20:36:43 -07:00
David Nalley 6fe595f3d3 committing some more changes to marvins license headers 2012-07-04 18:50:49 -04:00
David Nalley 54d7a10b99 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack 2012-07-04 18:45:34 -04:00
David Nalley ecf2cd57f9 fixing license headers in marvin 2012-07-04 18:45:08 -04:00
Edison Su 217fdd2497 From: jason.bausewein@tier3.com
Fixed deployDataCenter.py to select the correct network offering based on if security groups are enabled.  Also added default value to configGenerator.py for basic setup.
2012-07-03 12:56:42 -07:00
David Nalley 91fd3b772e Applying patch from Prasanna Santhanam
Marvin sandbox example scripts for generating one host configurations
https://reviews.apache.org/r/5656
2012-07-02 09:08:51 -04:00
Edison Su 8dd4197cd8 From: Jason Bausewein [jason.bausewein@tier3.com]
I would like to add an command line option to choose between advanced or basic networking configuration.  This would allow me or others to choose advanced networking without having to edit the python code.
2012-06-22 13:19:04 -07:00
Edison Su e38db69434 remove tools/testClient as they are moved to tools/marvin/marvin already 2012-06-22 10:57:53 -07:00
Edison Su 2f38e1c713 From:Jason Bausewein [jason.bausewein@tier3.com]
I needed to change the case in the sim url so the SimulatorDiscover will detect the simulator hosts
2012-06-22 10:23:03 -07:00
Edison Su 356ab7b013 From:Jason Bausewein [jason.bausewein@tier3.com]
I needed to change the case in the sim url so the SimulatorDiscover will detect the simulator hosts
2012-06-22 10:21:09 -07:00
Prasanna Santhanam d4d0950d71 Adding support for file copy to marvin's remoteSSHClient
Signed-off-by: Prasanna Santhanam <Prasanna.Santhanam@citrix.com>
2012-06-10 15:01:50 -04:00
Prasanna Santhanam 09dd71d056 Adding support with xmlrunner for generating XML reports 2012-05-18 12:08:39 +05:30
Prasanna Santhanam 0e22eed41f Files from the demo are now available in the sandbox 2012-05-17 18:12:17 +05:30
Ewan Mellor 42018bab81 Added full URL to output. 2012-05-16 12:04:32 -07:00
Ewan Mellor d39e4dc611 Added scripts for searching {bugs,wiki}.cloudstack.org. 2012-05-15 13:42:42 -07:00
Prasanna Santhanam 0c26f359ce Add additional retries to the SSH client by default 2012-05-15 18:12:41 +05:30
Prasanna Santhanam b5ea18d822 MD5 Auth for accounts created on the API 2012-05-14 19:40:44 +05:30
Prasanna Santhanam 0f98f5fe52 Build if you have python 2.7 installed 2012-05-14 19:40:44 +05:30
Prasanna Santhanam 7eaa1cf6f8 Install paramiko as a dependency, don't complain about the requirement 2012-05-14 14:45:24 +05:30
Prasanna Santhanam a0efa70958 support for running tests in a given script 2012-05-11 18:52:41 +05:30
Prasanna Santhanam dba1c01cb5 rename the nose test executor 2012-05-11 18:52:36 +05:30
Prasanna Santhanam dc02d50b17 rename the nose test executor 2012-05-11 18:52:30 +05:30
Prasanna Santhanam ab57aeb7bc The setup_requires must not co-exists with install_requires 2012-05-11 15:47:46 +05:30
Edison Su 38dd04b759 quick fix to demo 2012-05-02 22:38:38 -07:00
Prasanna Santhanam aee89701e9 CS-14596: check existence of config file before loading
Check whether the config file to load cloudstack config is avvailable
in the specified path.
2012-04-23 18:52:26 +05:30
Prasanna Santhanam 0bd43e7cf5 CS-14025: provide python eggs to easily install the python test framework
CS-14025: Status - Resolved Fixed

1. Packaging the marvin test client into an installable egg
2. There is a hudson job (marvin) that creates eggs for a specified
branch
3. Alternatively you can use the package-marvin ant target to get a
source tarball.
2012-04-23 17:46:00 +05:30
Prasanna Santhanam 7f470e8d2a Merge latest testClient fixes to marvin
reviewed-by: unittest
2012-04-12 18:10:32 +05:30
Prasanna Santhanam d150576a48 missing tests directory causes warnings in distutils
reviewed-by: ant run
2012-04-11 18:24:20 +05:30
Prasanna Santhanam 5c37d144cc Package management for the python testclient christened Marvin
$ant package-marvin
will create a packaged source tarball of the testclient that is
redistributable and decoupled from the rest of the cloudstack build
reviewed-by: unittest
2012-04-11 18:24:20 +05:30
Chirag Jog c07cca1af6 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:28:55 -07:00
Prasanna Santhanam 38f43564e0 reveal the complete exception from the dbClient
reviewed-by: Edison Su
2012-04-04 16:40:44 +05:30
Prasanna Santhanam 9c9f510fdf 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:40:20 +05:30
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Prasanna Santhanam c8fa379c55 README file for the tutorial on "Testing with Python" 2012-04-02 18:01:41 +05:30
Prasanna Santhanam 40d7e124a7 Test runs against 3.0 version 2012-04-02 18:00:02 +05:30
Prasanna Santhanam 9011f6297f testClient demo
reviewed-by: unittest

Added test case that demonstrates a backend verification
2012-04-02 17:58:45 +05:30
Prasanna Santhanam 38d6ce4ef2 Correcting the reported failure message
reviewed-by: Edison Su
2012-04-02 17:57:57 +05:30
Prasanna Santhanam 47213463ea 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:55 +05:30
Prasanna Santhanam 4221c87c37 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:11:06 +05:30
Edison Su 5a06ddb36a 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:07:01 -07:00
Prasanna Santhanam 47d01dbd3d reduce logging verbosity, set level to info
reviewed-by: Kishan
2012-03-24 08:46:51 +05:30
Prasanna Santhanam 52202839fb 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 08:46:50 +05:30
Prasanna Santhanam 99000f5d6e Demo files for the confluence tutorial on testing with python
http://confluence.cloudstack.org/display/QA/Testing+with+python

demo.cfg: sample configuration file containing the mgmt server location
testDeployVM.py : simple example demonstrated on confluence tutorial
testSshDeployVM.py : advanced example to demonstrate backend verification
2012-03-21 13:45:44 +05:30
Prasanna Santhanam b9807e0fca can't append str to logger message 2012-03-21 11:05:37 +05:30
Prasanna Santhanam 3a6edb7643 adding logging with level and timestamp 2012-02-29 11:58:25 +05:30
Prasanna Santhanam 01fa6e3322 adding retry logic, error handling, and urllib2 used for managing connections 2012-02-29 11:58:25 +05:30
Prasanna Santhanam 1316fb7714 Wrong place to put a return 2012-02-29 11:58:25 +05:30
Prasanna Santhanam 94eac37d30 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:35:15 +05:30
Prasanna Santhanam 2a8bdb0c4c Propagating fixes to testClient from 3.0.x. Resolving conflicts
reviewed-by: Prasanna
2012-02-20 19:00:22 +05:30
Prasanna Santhanam 1b8a23f5be 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:23:46 +05:30