Permalink
Commits on Mar 30, 2011
  1. migrated few tests from shell scripts to python

    farshidce authored and kbatten committed Mar 29, 2011
    migrated set-get,version-check and balance-node2 to python
    
    -tried to copy test operations from the existing ones
    -started using assertXYZ methods to fail the test or
    test cleanup if there is a failure
    -using unittest classes to split a test into setup/test/cleanup
    unittest will run the setup for us before every test method in
    the module
    -version-check test uses /pools rest api to obtain the
    version number for each node
    -simple-set-get test will load each server with number of keys
    and then verifies that those keys are stored. in the cleanup
    part we also delete these keys from the server
    -add_rebalance loops over all the servers in the server list
    and adds those servers to the master node , verifies the cluster
    status by using 'nodeStatuses' and 'rebalanceStatuses' rest apis
    and asserts if the status is not healty or balanaced after rebalance
    -as part of the setup and cleanup we also clean up the cluster
    by removing the nodes which the previous test did not cleanup
    properly
    
    Change-Id: I069d7339c3afee7802e4c6bc368c656be6c34d2f
    Reviewed-on: http://review.membase.org/5062
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
  2. replace 'list()' with '[]' in xunit.py

    farshidce authored and kbatten committed Mar 29, 2011
    replace 'list()' with '[]' in xunit.py
    
    Change-Id: I575fc669e128188b9540c59c4ff34524b66063f3
    Reviewed-on: http://review.membase.org/5138
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
  3. python rest client for membase node operations

    farshidce authored and kbatten committed Mar 29, 2011
    python rest client class for membase managemtn node operations
    
    -defined custom exception for membase node operations
    there are error types (server_unreachable) or ( unauthorized_..)
    or server_alreadu_joined. these except will let the test case
    to take the right action or throw more descriptive error
    -defined couple of structure to encapsulate basic types like
    otpNode(id,status) or MembaseVersion(version)
    -this rest client is not a comprehensive rest library. we add support
    for more apis gradually.
    
    Change-Id: I411e0f60a06af424fad170ed0b0bfcbe8b47f493
    Reviewed-on: http://review.membase.org/5061
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
  4. add httplib2 library to testrunner

    farshidce authored and kbatten committed Mar 29, 2011
    httplib2 library is required for rest-api invocations
    
    Change-Id: I486094d1b46ba3fd227e31d9c1d9dbd67a06c965
    Reviewed-on: http://review.membase.org/5060
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
Commits on Mar 29, 2011
  1. small fix in unit.to_xml

    farshidce authored and kbatten committed Mar 23, 2011
    Change-Id: I8d37c2088d303e03f678dec699aa9b18a40c350d
    Reviewed-on: http://review.membase.org/5071
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
Commits on Mar 24, 2011
  1. print test output while test is running

    kbatten authored and farshidce committed Mar 24, 2011
    Change-Id: Ied756a979b0c0e8592a414f3c491ccb0c072887b
    Reviewed-on: http://review.membase.org/5081
    Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>
    Tested-by: Farshid Ghods <farshid.ghods@gmail.com>
Commits on Mar 21, 2011
  1. import simplejson as json when python <2.6

    farshidce authored and kbatten committed Mar 21, 2011
    Change-Id: If1ea172d19920c6162893c54a2340179aeb2ded4
    Reviewed-on: http://review.membase.org/5026
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
Commits on Mar 18, 2011
  1. populate TestCase.errorMessage property

    farshidce authored and kbatten committed Mar 17, 2011
    populate errorMessage property from test.log for test failures
    
    Change-Id: If487d894244c1d6bfe397d425db7bad99838d567
    Reviewed-on: http://review.membase.org/4964
    Reviewed-by: Dustin Sallings <dustin@spy.net>
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
Commits on Mar 16, 2011
  1. create a xunit compatible xml report after test execution

    farshidce authored and kbatten committed Mar 14, 2011
    create a report.xml file which is junit compatible for exporting the results to
    a continous integration server and also a database to keep the results for
    historical comparisons.
    
    - added "lib" to the python.path so that we can use xunit module
    from lib folder to generate the xml file
    - a report.xml file which was generated after running smoke.conf test
    
    <?xml version="1.0" ?>
    <testsuite errors="3" failures="3" name="testrunner-suite" skip="0" tests="5" t
    ime="6.94842791557">
            <testcase name="install" time="6.94842791557">
                    <error type="membase.error"/>
            </testcase>
            <testcase name="version-check" time="6.94842791557">
                    <error type="membase.error"/>
            </testcase>
            <testcase name="simple-set-get" time="6.94842791557"/>
            <testcase name="expiry" time="6.94842791557"/>
            <testcase name="rebalance-2node" time="6.94842791557">
                    <error type="membase.error"/>
            </testcase>
    </testsuite>
    
    Change-Id: Iac7132e5fe4511e5304253421574bbf5e4afc0e5
    Reviewed-on: http://review.membase.org/4900
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
Commits on Mar 6, 2011
  1. allow user to specify alternate package server/path

    kbatten authored and dustin committed Feb 15, 2011
    Change-Id: If46ac162ec16ea2b70ae53c48f63e471ec011cf1
    Reviewed-on: http://review.membase.org/4573
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Steve Yen <steve.yen@gmail.com>
Commits on Dec 30, 2010
  1. Added longevity_test.py, a python class that automates the membase lo…

    Mike Wiederhold
    Mike Wiederhold committed Dec 30, 2010
    …ngevity testcase for EC2
  2. Added membase_install.py, a python class for installing membase on re…

    Mike Wiederhold
    Mike Wiederhold committed Dec 30, 2010
    …mote hosts
  3. Added EC2.py, a python class for communicating with the membase aws a…

    Mike Wiederhold
    Mike Wiederhold committed Dec 30, 2010
    …ccount
Commits on Dec 17, 2010
  1. added exists & missing operations

    steveyen authored and kbatten committed Dec 17, 2010
    Change-Id: I2a12fb53652658d46d3f7d15ed6195d7474828db
    Reviewed-on: http://review.membase.org/4119
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
Commits on Dec 15, 2010
  1. Duplicate item validation after restarting the servers

    chiyoung authored and kbatten committed Dec 3, 2010
    This checks if there are any duplicate items after executing
    the mixes of writes, vbucket deleitons and recreations, and
    then restarting the servers.
    
    Change-Id: Iccf29a39dd238331dfad2bb41821238fb7a219b7
    Reviewed-on: http://review.membase.org/3953
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
  2. Fix to the bug in persistence validation after restarting the cluster

    chiyoung authored and kbatten committed Dec 15, 2010
    This fixes the sporadic failure in testing persistence validation
    after restarting the cluster.
    
    Change-Id: Iaa96916073197f5d2d85f43930e541a253cbf0f2
    Reviewed-on: http://review.membase.org/4095
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
Commits on Dec 3, 2010
  1. Persistence data validation on item eviction and server crash

    chiyoung committed Nov 24, 2010
    This performs the data validation after (1) evicting all the items
    from memory and (2) killing -9 one of the servers and restaring it.
    
    Change-Id: I50bac983e3d688cbf73cb332c0161e096e859fdb
    Reviewed-on: http://review.membase.org/3882
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
  2. Clean up the test scripts and testrunner lib

    chiyoung authored and kbatten committed Dec 1, 2010
    1. Move the cluster initialization part to the testrunner lib
    2. Remove the unnecessary vbucket validation in the persistence test
    3. Changed the failover function parameter type
    
    Change-Id: I6367175b4021ad3b46f07251547f547ffb0e0e2a
    Reviewed-on: http://review.membase.org/3918
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
  3. Added expiry tests to smoke test.

    dustin authored and kbatten committed Nov 18, 2010
    Change-Id: I131041052e25222071572591ddb4704c4ce22c0d
    Reviewed-on: http://review.membase.org/3731
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
Commits on Dec 1, 2010
  1. Server host_port defaults

    steveyen authored and kbatten committed Dec 1, 2010
    Change-Id: Ib02d2c2cc436ff799c619e948a8d706cbb8f6c27
    Reviewed-on: http://review.membase.org/3914
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
Commits on Nov 23, 2010
  1. Use the REST API call to check the replication status

    chiyoung authored and kbatten committed Nov 23, 2010
    This uses the REST API call to check if the replication is completed
    on each host.
    
    Change-Id: I5b5a9de1392ebbe3f0641ef17959e298bc2b20c8
    Reviewed-on: http://review.membase.org/3809
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
Commits on Nov 19, 2010
  1. update version check to handle r

    kbatten authored and steveyen committed Nov 18, 2010
    Change-Id: I4275f144a32692037ec2ec3e6b6cc7fe91d28ab4
    Reviewed-on: http://review.membase.org/3738
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Steve Yen <steve.yen@gmail.com>
Commits on Nov 18, 2010
  1. Allow test scripts to be called run instead of run.sh

    dustin authored and kbatten committed Nov 18, 2010
    Change-Id: I2c827d2d4740bd54c4247c12d257754455bf4d87
    Reviewed-on: http://review.membase.org/3730
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
  2. Added a .gitignore

    dustin committed Nov 18, 2010
    Change-Id: I9014106b6fb38cc55f5cb6abd84c1b7785034002
    Reviewed-on: http://review.membase.org/3729
    Reviewed-by: Dustin Sallings <dustin@spy.net>
    Tested-by: Dustin Sallings <dustin@spy.net>
  3. point to the correct server ip when creating the default bucket

    kbatten authored and steveyen committed Nov 18, 2010
    Change-Id: I8b9deb8b7ed7f558b5ad0bd7d932af14981a4fdb
    Reviewed-on: http://review.membase.org/3718
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Steve Yen <steve.yen@gmail.com>
  4. do a better job at verifying server has started

    kbatten authored and steveyen committed Nov 17, 2010
    Change-Id: Ieb501b4bd974f244355bba7392f9e782a77f01d2
    Reviewed-on: http://review.membase.org/3714
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Steve Yen <steve.yen@gmail.com>
Commits on Nov 17, 2010
  1. use mc-loader to set lots of keys if it is installed

    kbatten authored and steveyen committed Nov 17, 2010
    Change-Id: Idbb3922bfd37847bd831f32a626ec4070a5b460c
    Reviewed-on: http://review.membase.org/3716
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Steve Yen <steve.yen@gmail.com>
  2. give old tests knowledge about host:rest:moxi:mc format

    kbatten authored and steveyen committed Nov 17, 2010
    Change-Id: Ib4d4f36a8da70304421a7fbfb8a55c086ab0230c
    Reviewed-on: http://review.membase.org/3715
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Steve Yen <steve.yen@gmail.com>
  3. update extended tests to run new testcases

    kbatten authored and steveyen committed Nov 17, 2010
    Change-Id: I1fd515cdc5e20637df32dc1fbd95c287d7fafec5
    Reviewed-on: http://review.membase.org/3713
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Steve Yen <steve.yen@gmail.com>
  4. simple-get-set test needs \r\n

    steveyen authored and kbatten committed Nov 17, 2010
    Change-Id: I63b35bf30a5e7f64cd2b9e58db40e78fd81a320a
    Reviewed-on: http://review.membase.org/3712
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
  5. added flags check to simple-set-get test

    steveyen authored and kbatten committed Nov 17, 2010
    Change-Id: I64ce5f4da5fb85d017d8f413de35775209ece2ca
    Reviewed-on: http://review.membase.org/3711
    Tested-by: Keith Batten <kbatten@gmail.com>
    Reviewed-by: Keith Batten <kbatten@gmail.com>
  6. Refactor the test scripts by putting common functions in a lib file

    chiyoung authored and kbatten committed Nov 16, 2010
    Change-Id: Idfe1e157bc7d4b528db30e79f00ec0444a1aac3a
    Reviewed-on: http://review.membase.org/3693
    Reviewed-by: Keith Batten <kbatten@gmail.com>
    Tested-by: Keith Batten <kbatten@gmail.com>
Commits on Nov 16, 2010
  1. Validate the data persistence right after restarting the cluster

    chiyoung authored and dustin committed Nov 15, 2010
    This automation script will write some items into database and then
    restart the cluster to validate if all the items are correctly
    loaded from the database
    
    Change-Id: Ic4cc23e9526e465d461be91fef11396a21701155
    Reviewed-on: http://review.membase.org/3689
    Reviewed-by: Dustin Sallings <dustin@spy.net>
    Tested-by: Dustin Sallings <dustin@spy.net>