- 16 4月, 2016 1 次提交
-
-
由 Stephen Wu 提交于
- gpcheckcat should return a return code of 0 if schemas are found/dropped - Backfilled tests for leaked schema logging - Also cleaned up typo in Makefile
-
- 13 4月, 2016 8 次提交
-
-
- print out all information about violated indexes in the logs - changes unique index check to also return the list of violated segments in order to support this
-
-
- more accurate function names in GPObject - remove duplication of query strings - make file import for test subject independent of current working directory - update test names to match casing convention
-
- additionally, minor refactoring in gpcheckcat and unique index check
-
- Before this we were adding issues to the report but not actually setting the checkStatus variable to False
-
Inheriting from GpTestCase instead of unittest.TestCase gives you: - access to a logger via self.logger - the ability to patch methods/objects by calling apply_patches with a list of patches - automatic teardown of patches after tests are run - hiding unittest dependency from the actual unit tests (e.g. overriding skip() and providing run_tests() to wrap main()) Also cleaned up unit tests for the unique index violation check
-
- mock pg.connect instead of patching gpcheckcat global method connect() - use a magic mock for GV.cfg since we are trusting that it has been implemented properly
-
- includes unit tests for gpcheckcat covering everything after option parsing and everything before writing to stdout/logs - in the process of rebasing, removes the tests for dropping leaked schemas. These tests will be added back in the later commit - adds a behave integration test for this check
-
- 08 4月, 2016 1 次提交
-
-
由 kaknikhil 提交于
* drop leaked schemas before running gpcheckcat tests 1. drop any leaked/orphaned schemas before running any of the gpcheckcat tests 2. add unit and behave tests 3. move gpcheckcat from gpMgmt/bin/lib to gpMgmt/bin 4. misc refactoring orphan/leaked schemas are temp schemas that are not associated with any session id. There used to be a check for leaked temp schemas in gpcheckcat which ended up creating a repair script. * drop the database at the end of the behave test * move the gpcheckcat bin to lib symlink before the copy to /Users/nikhilkak/git/gpdb/gpAux/greenplum-db-devel * fix the if check before symlinking gpcheckcat from bin to lib closes #595
-