)]}'
{"doc/source/index.rst":[{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"939cfbad1bd1e1c115a136e738e612bdc4b001d3","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"   api"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Running and Writing Tests"},{"line_number":68,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":".. toctree::"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_507f3017","line":67,"updated":"2014-08-07 15:23:15.000000000","message":"Running and writing tests (sentence style capitalization for titles)","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"}],"doc/source/running_tests.rst":[{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e01355498441a2f002143f24898557d9aa2c9472","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Running Tests"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Zaqar contains a suite of tests (both unit and functional) in the ``zaqar/tests`` and ``tests`` directories."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_853b4c38","line":1,"updated":"2014-08-07 15:13:37.000000000","message":"Running tests (Use sentence style capitalization in all titles)","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e01355498441a2f002143f24898557d9aa2c9472","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Zaqar contains a suite of tests (both unit and functional) in the ``zaqar/tests`` and ``tests`` directories."},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"Any proposed code change will be automatically rejected by the OpenStack"},{"line_number":7,"context_line":"Jenkins server if the change causes test failures."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Preferred way to run the tests"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_8578ac2d","line":6,"updated":"2014-08-07 15:13:37.000000000","message":"Any proposed code change is automatically rejected...","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":612,"name":"Tom Fifield","email":"tom@openstack.org","username":"fifieldt"},"change_message_id":"73a2040df77cffead0e947d9c7c10b7168bf31b2","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Zaqar contains a suite of tests (both unit and functional) in the ``zaqar/tests`` and ``tests`` directories."},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"Any proposed code change will be automatically rejected by the OpenStack"},{"line_number":7,"context_line":"Jenkins server if the change causes test failures."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Preferred way to run the tests"},{"line_number":10,"context_line":"------------------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_c2c0da2d","line":7,"updated":"2014-08-07 14:31:15.000000000","message":"For those that jump to this page from somewhere on the wide internet, it might be nice to give a link to the CI system user docs (http://docs.openstack.org/infra/manual/) so they can find out what the \"OpenStack Jenkins Server\" is.","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":7498,"name":"Malini Kamalambal","email":"malini.kamalambal@rackspace.com","username":"malini-pk"},"change_message_id":"e581c66748b483d1642df58dd24f1b13b8058148","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Zaqar contains a suite of tests (both unit and functional) in the ``zaqar/tests`` and ``tests`` directories."},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"Any proposed code change will be automatically rejected by the OpenStack"},{"line_number":7,"context_line":"Jenkins server if the change causes test failures."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Preferred way to run the tests"},{"line_number":10,"context_line":"------------------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_5cfe716b","line":7,"updated":"2014-08-07 13:41:21.000000000","message":"What abt some details on what we currently gate on?\nthe storages we test against, python versions etc. We can move these to before the \"Running Tests\" section, kinda like an intro?","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":10777,"name":"Nataliia Uvarova","email":"grafinya.uvarova@gmail.com","username":"AAzza"},"change_message_id":"332df291edb6bf001e712df2cb2c4da5d9616a15","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Zaqar contains a suite of tests (both unit and functional) in the ``zaqar/tests`` and ``tests`` directories."},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"Any proposed code change will be automatically rejected by the OpenStack"},{"line_number":7,"context_line":"Jenkins server if the change causes test failures."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Preferred way to run the tests"},{"line_number":10,"context_line":"------------------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_e5a94179","line":7,"in_reply_to":"baada198_5cfe716b","updated":"2014-08-08 13:49:24.000000000","message":"I tried to fit this info, but my writing skills cannot produce text, that both - contains this info and looks consistent and logically grouped :)","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"80a80486c037efe3dd54c7ad38ab55a104de408e","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Preferred way to run the tests"},{"line_number":10,"context_line":"------------------------------"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The preferred way to run the unit tests is using ``tox``.  See `the"},{"line_number":13,"context_line":"unit testing section of the Testing wiki page`_ for more information. Following are some simple examples."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_f1ed9c8e","line":11,"updated":"2014-08-07 22:21:56.000000000","message":"Could you add that before running the tests is necessary to run pip install -r test-requirements.txt to make sure that the required dependencies are installed?","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"84b8bc75109b5f93257467fec9b50c23c7c213a6","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Preferred way to run the tests"},{"line_number":10,"context_line":"------------------------------"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The preferred way to run the unit tests is using ``tox``.  See `the"},{"line_number":13,"context_line":"unit testing section of the Testing wiki page`_ for more information. Following are some simple examples."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_c5c99d26","line":11,"in_reply_to":"baada198_e57b0129","updated":"2014-08-11 21:20:07.000000000","message":"Oh great :) I remember struggling with that the first time I tried to run the tests, but I was using testr directly - python setup.py testr -.Thanks for clearing it up!","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":10777,"name":"Nataliia Uvarova","email":"grafinya.uvarova@gmail.com","username":"AAzza"},"change_message_id":"332df291edb6bf001e712df2cb2c4da5d9616a15","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Preferred way to run the tests"},{"line_number":10,"context_line":"------------------------------"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The preferred way to run the unit tests is using ``tox``.  See `the"},{"line_number":13,"context_line":"unit testing section of the Testing wiki page`_ for more information. Following are some simple examples."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_e57b0129","line":11,"in_reply_to":"baada198_f1ed9c8e","updated":"2014-08-08 13:49:24.000000000","message":"actually it is not required to install them, tox will install it for you. As I did the same mistake on my first patch to Marconi, editing README file, I added some clarification in new version of patch.","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e01355498441a2f002143f24898557d9aa2c9472","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    tox -e pep8"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"You can request multiple tests, separated by commas::"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    tox -e py27,pep8"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_05765c0c","line":23,"updated":"2014-08-07 15:13:37.000000000","message":"To request multiple tests... (parallel word structure with previous items)","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e01355498441a2f002143f24898557d9aa2c9472","unresolved":false,"context_lines":[{"line_number":32,"context_line":"Instead of running all tests, you can specify an individual directory, file,"},{"line_number":33,"context_line":"class, or method that contains test code."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"To run only tests located in the ``tests/unit/queues/storage`` directory use::"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    tox -e py27 tests.unit.queues.storage"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_c5f8e44c","line":35,"updated":"2014-08-07 15:13:37.000000000","message":"To run the tests located only in the....","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e01355498441a2f002143f24898557d9aa2c9472","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    tox -e py27 tests.unit.queues.storage"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"To run the tests specific to mongodb driver in the ``tests/unit/queues/storage/test_impl_mongodb.py`` file::"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    tox -e py27 test_impl_mongodb"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_65b6388b","line":39,"updated":"2014-08-07 15:13:37.000000000","message":"... the mongodb driver...","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":7498,"name":"Malini Kamalambal","email":"malini.kamalambal@rackspace.com","username":"malini-pk"},"change_message_id":"e581c66748b483d1642df58dd24f1b13b8058148","unresolved":false,"context_lines":[{"line_number":49,"context_line":"``tests/unit/queues/storage/test_impl_mongodb.py``::"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    tox -e py27 test_impl_mongodb.MongodbMessageTests.test_message_lifecycle"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_3c961d3f","line":52,"updated":"2014-08-07 13:41:21.000000000","message":"I am thinking of another section on Running Functional tests against an external Marconi/ Zaqar instance. I heavily used this to test Marconi implementation of Rackspace. If it makes sense, I can submit a dependnet patch with the details.","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"}],"doc/source/test_suite.rst":[{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"a785b867b8b04a04c5627c84dfaa5cede83eeea3","unresolved":false,"context_lines":[{"line_number":4,"context_line":"There are three types of tests for Zaqar:"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"Unit tests"},{"line_number":7,"context_line":"    The purpose of unit tests to check modules separately. For example, there"},{"line_number":8,"context_line":"    are checks for each individual method that the storage layer provides."},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Functional tests"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_0543956b","line":7,"updated":"2014-08-08 14:00:11.000000000","message":"Unit tests check modules separately. (To more to same word structure used for the following test descriptions.)","commit_id":"7c9ef0ed7379ac85d6743c3a5e219154554d54b0"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"a785b867b8b04a04c5627c84dfaa5cede83eeea3","unresolved":false,"context_lines":[{"line_number":13,"context_line":"    conform to the specs.  These include positive and negative tests."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Tempest tests"},{"line_number":16,"context_line":"    The Tempest tests are integration tests for Openstack [#f1]_."},{"line_number":17,"context_line":"    The Tempest tests for Zaqar are available at https://github.com/openstack/tempest."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This document focuses on the unit and functional tests.  Please refer to the"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_a515894d","line":16,"updated":"2014-08-08 14:00:11.000000000","message":"Tempest tests... (you can delete \"The\" in 2 places.)","commit_id":"7c9ef0ed7379ac85d6743c3a5e219154554d54b0"},{"author":{"_account_id":7498,"name":"Malini Kamalambal","email":"malini.kamalambal@rackspace.com","username":"malini-pk"},"change_message_id":"866d656a58f4e3d402e1db8a0a8a7658112f2c71","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    The Tempest tests for Zaqar are available at https://github.com/openstack/tempest."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This document focuses on the unit and functional tests.  Please refer to the"},{"line_number":20,"context_line":"Tempest directory for details on how to run these tests."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Code structure"},{"line_number":23,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_85ba45b8","line":20,"updated":"2014-08-08 13:48:50.000000000","message":"Tempest directory sounds like it lives inside the Zaqar repo.\nWhat abt rewording to - Please refer to the Tempest repository for details on how to run them.","commit_id":"7c9ef0ed7379ac85d6743c3a5e219154554d54b0"}],"doc/source/tests_suite.rst":[{"author":{"_account_id":7498,"name":"Malini Kamalambal","email":"malini.kamalambal@rackspace.com","username":"malini-pk"},"change_message_id":"e581c66748b483d1642df58dd24f1b13b8058148","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Test suite structure"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Tests suite lives in two directories:"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_bcedcdf2","line":1,"updated":"2014-08-07 13:41:21.000000000","message":"It will be good to have a quick summary of the types of test we have \u0026 a quick explanation of what they are, before getting into the Test Suite structure.\n1) Unit Tests - Explain what they are (or do we?)\n2) Functional Tests -  Explain what these are, something along the lines of\n\"Functional tests exercise the API endpoints and validate that the API response conform to the specs. These include positive and negative tests\"\n3) Tempest Tests - The Tempest tests for Zaqar are available at https://github.com/openstack/tempest. \n\nThis document will focus on the Unit \u0026 Functional tests.  Please refer to the Tempest directory for details on how to run these tests.","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e0b4f965a1f86418bdb33aa3c478d365573c0cf5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Test suite structure"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Tests suite lives in two directories:"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"- ``zaqar/tests`` contains all base classes and defines tests for APIs (on both storage and transport levels)."},{"line_number":7,"context_line":"- ``tests`` usually contains implementations for specific drivers and additional tests."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_105bf8f9","line":4,"updated":"2014-08-07 15:21:56.000000000","message":"The test suite...","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e0b4f965a1f86418bdb33aa3c478d365573c0cf5","unresolved":false,"context_lines":[{"line_number":7,"context_line":"- ``tests`` usually contains implementations for specific drivers and additional tests."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Thus base class and all common tests for storage drivers are located in the ``zaqar/tests/queues/storage/base.py`` file."},{"line_number":10,"context_line":"The specific instances of the base classes for any particular storage driver should be located at the"},{"line_number":11,"context_line":"``tests/unit/queues/storage/`` directory. See ``tests/unit/queues/storage/test_impl_mongodb.py`` for example."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Similarly unit tests for transport layer are located in ``zaqar/tests/queues/transport``"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_b0decc3a","line":10,"updated":"2014-08-07 15:21:56.000000000","message":"... any particular storage driver are located ...","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"},{"author":{"_account_id":8803,"name":"Catherine Richardson","email":"catherine.richardson@rackspace.com","username":"cyrichardson"},"change_message_id":"e0b4f965a1f86418bdb33aa3c478d365573c0cf5","unresolved":false,"context_lines":[{"line_number":10,"context_line":"The specific instances of the base classes for any particular storage driver should be located at the"},{"line_number":11,"context_line":"``tests/unit/queues/storage/`` directory. See ``tests/unit/queues/storage/test_impl_mongodb.py`` for example."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Similarly unit tests for transport layer are located in ``zaqar/tests/queues/transport``"},{"line_number":14,"context_line":"and are run from classes located in the ``tests/unit/queues/transport`` directory."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"All functional tests for Zaqar are located in the ``tests/functional`` directory."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_50b1f0ff","line":13,"updated":"2014-08-07 15:21:56.000000000","message":"Similarly, unit tests for the transport layer...","commit_id":"79f09c63840954b5f30efa2df96b941f15d4fc19"}]}
