Commit Graph
93 Commits
Author SHA1 Message Date
John Chilton 6d49f1ef51 Fix undefined variables in remote_repository_registry_entry. 2015-04-08 23:22:28 -04:00
John Chilton dc256aebf2 Fix tool shed scripts that log without creating a log. 2015-04-08 23:22:28 -04:00
John Chilton 453dde829e Fix unknown name self in tool_shed.scripts.api.export. 2015-04-08 23:22:28 -04:00
Dannon Baker 47e6f08982 Fix undefined vars in toolshed add_repository_entry API script 2015-03-03 19:24:45 -05:00
John Chilton 6f115a7d5c PEP-8 fixes for install_and_test scripts. 2015-01-14 21:03:12 -05:00
Daniel Blankenberg a187edba17 Fix toolshed bootstrapping for Macs. 2014-11-13 12:43:26 -05:00
Nate Coraor c7acc3723f Rename tool_shed_wsgi.ini.sample to tool_shed_wsgi.ini, fix static and other errors I created when moving it to config/ in the first place. 2014-09-16 14:55:38 -04:00
Dannon Baker 9be7118d6a First pass removing to_json_string/from_json_string. 2014-09-08 16:41:53 -04:00
Dave Bouvier a25cfad335 Improve fetching of api key for newly created user. 2014-07-28 12:17:47 -04:00
Greg Von Kuster c2f089dcb0 Fixes in exception handlers in the Tool Shed's create_categories and create_users API modules. 2014-07-23 09:47:21 -04:00
Greg Von Kuster bba63a24b0 Handle exporting and importing repository capsules with new ExportRepositoryManager and ImportRepositoryMnager classes respectively. 2014-06-24 13:11:24 -04:00
Dave Bouvier 64c1bc95c9 Fix the 3xx redirect handler in the tool shed's API methods to correctly handle PUT requests. 2014-06-11 16:05:46 -04:00
Dave Bouvier dd82de6cd1 Additional fixes for urllib2's 3xx redirects not handling POST requests. This changeset handles httpd proxies that redirect to a secure port before delivering the request to Paste. 2014-06-10 11:11:32 -04:00
Greg Von Kuster 08702be139 Fixes for the Tool Shed API POST and PUT requests that were broken when attempting to handle urllib2 not handling 307 redirects. The initial attempt at handling the urllib2 weakness made a call to urllib2.get_url() which turns POST requests into GET requests as a side-effect. 2014-06-10 10:33:48 -04:00
Dannon Baker ed94d528d8 Detail why the 307 redirect tracking attempt in tool_shed/scripts/api/common.py does not work. 2014-06-09 17:02:27 -04:00
Greg Von Kuster 5d56c27f9c More fixes for handling 307 redirects not being handled nicely by urllib2.urlopen() when the urllib2.Request has data provided. 2014-06-08 08:45:16 -04:00
Greg Von Kuster 0285192a4c Fix the exception handler in the Tool Shed APi submit() function so that an expected dict is returned instead of a string. 2014-06-04 09:21:18 -04:00
Greg Von Kuster 390d05bbd1 Eliminate the Tool Shed's td_common_util.py module by moving the functions to appropriate classes. 2014-05-28 15:49:02 -04:00
Greg Von Kuster b2f3d6a551 Continued down-sizing of the Tool Shed's shed_util_common module by moving certain functions to more appropriate locations. Some fixes for adding and removing entries to the Tool Shed's repository registry. 2014-05-28 11:17:50 -04:00
Greg Von Kuster f13d6fde70 Enhance the Tool Shed API as well as the Tool Shed's install and test framework in order to integrate the latter into the Tool Shed's new repository registry. 2014-05-23 13:18:06 -04:00
Dave Bouvier 4f2e506042 Enable running the create_users and create_categories scripts via run_tool_shed.sh 2014-05-22 10:59:18 -04:00
Greg Von Kuster 7238ba2304 Use the new hg_util.get_repo_for_repository() function to retrieve a mercurial repo for a repository. 2014-05-21 12:22:16 -04:00
Greg Von Kuster 9f05fec27c I meant to make this file a .sample file. 2014-05-17 10:10:23 -04:00
Greg Von Kuster 60b2e731dc Add a script for creating a new user and an associated API key to streamline the process of setting up a new local development tool shed. 2014-05-16 17:14:24 -04:00
Greg Von Kuster e18a0197d7 Tweaks to the recent Tool Shed API enhancements, making them more RESTful. 2014-05-01 16:44:44 -04:00
Greg Von Kuster 2028fb12fd Enhance the Tool Shed API to provide information about users that is public (i.e., public username) and to include a function for creating a new user. Add a Tool Shed API script that retrieves all of the pubic information about users from a Tool Shed, automatically generates test email accounts and test passwords, and creates the list of users in another Tool Shed. This script streamlines the process of populating a development Tool Shed with users, enabling import of a repository capsule exportied from the specified Tool Shed. This simplifies the process of developing new repository hierarchies in a local development Tool Shed. 2014-05-01 16:07:48 -04:00
Greg Von Kuster 449e19eb2e Add a Tool Shed API script that can be used to retrieve the current set of categories from a Tool Shed (e.g. the test Tool Shed) and create each of them in a local development Tool Shed. This script can be used to streamline the process of creating a new development Tool Shed, populating it with categories expected in a public Tool Shed, and creating a new repository hierarchy that can be exported into a capsule and imported into the public Tool Shed. 2014-04-29 15:11:46 -04:00
Greg Von Kuster c69b3f8065 Move some hg utility functions out of shed_util_common and into hg_util. 2014-04-24 15:45:55 -04:00
Greg Von Kuster 8b4e15423c Add a new recipe manager to support tool dependency package installation. Create new classes for each recipe step where classes contain both a prepare_step() and an execute_step() function. This implementation breaks up the very large loops in install_util.py (where recipe steps are prepared) and fabric_util.py (where recipe steps are executed). The recipe manager currently loads all of the recipe step classes when it is instantiated - this approach could be tweaked if desired. 2014-04-24 10:46:56 -04:00
Dave Bouvier 5bdb75aa82 Correct usage of "it's" versus "its". 2014-04-17 15:49:32 -04:00
Greg Von Kuster 8bce650dda Add a new tool shed mercurial utility module named hg_util.py and begin to extract hg related utility functions out of the shed_util_common.py module. Enhance the functions that display the mercurial changeset rev and hash string to display one or the other or both. Display only the rev and not the hash string on the prominent grids in the tool shed, but continue to display the hash string on admin grids. 2014-04-10 17:11:01 -04:00
Greg Von Kuster 27e60943bf The basis of this change set is to provide some fixes to certain Tool Shed functions for supporting changing HTTP protocols over time (ie.e, https <-> http). In doing this, I've refactored several functions and moved most of the Tool Shed <-> Galaxy URL munging functions to the Tool Shed's common_util.py module. Ive renamed the munging functions to clarify what each of them does. Several duplicate functions have been eliminated from the code as well. 2014-04-09 10:11:48 -04:00
Greg Von Kuster e01cc26dd1 Fixes and code cleanup for the tool shed's install and test framework. 2014-01-20 11:48:05 -05:00
Dannon Baker c1558e8205 One more simplejson/json fix that slipped through the merge. 2014-01-10 07:42:58 -05:00
Dannon Baker a40457ab09 Merge. 2014-01-10 07:40:02 -05:00
Dannon Baker 559ecb4ec8 Remove dependency on simplejson; convert everything over to using the json module in the python standard library. 2014-01-10 07:29:05 -05:00
Greg Von Kuster 3014265a07 Tool Shed API fixes and code cleanup. 2014-01-09 15:59:18 -05:00
Greg Von Kuster b4147910a4 Fix imports in the tool shed install and test framework. 2013-12-21 19:07:38 -05:00
Greg Von Kuster af0525adcb Refactor and fix prep scripts for the tool shed's install and test frameowrk. 2013-12-21 08:07:11 -05:00
Greg Von Kuster b177363064 Make the tool shed's install and test exclude list locally accessible rather than stored in cfengine. 2013-12-20 09:50:03 -05:00
Greg Von Kuster dfc8083fb2 Corrections to statistics for the tool shed's install and test runs and successful installation results for repositories of type tool_dependency_definition now reported to the tool shed. 2013-12-18 16:20:36 -05:00
Dave Bouvier 20425d57a2 Another bugfix to the tool dependency cleaning script. 2013-12-18 13:14:24 -05:00
Dave Bouvier 43ec159fbd Fix error when attempting to remove a file. 2013-12-18 13:11:37 -05:00
Dave Bouvier 4de9c13127 Clean up maintenance scripts for the EC2 environment. 2013-12-18 12:07:49 -05:00
Dave Bouvier 4fc15cc185 Add script to clean up or display the contents of a tool dependency path. 2013-12-17 12:20:08 -05:00
Greg Von Kuster 2f38da8025 Enhance the tool shed's install and test framework to uninstall repositories in an ordered fashion so that repositories are not uninstalled when they are dependencies of other installed repositories. 2013-12-16 15:52:29 -05:00
Greg Von Kuster 1b17f9482b Allow storage of multiple test runs in the prep script for install and testing tool dependencies and restrict creation of new entries in the tool test results dictionary when running the prep script for install and test repositories. 2013-12-13 15:44:39 -05:00
Dave Bouvier 731edf31e3 Add script to check the filesystem for empty tool dependency installation paths and optionally delete them. 2013-12-11 09:53:11 -05:00
Greg Von Kuster 0ebb57196c Further restrict when the tool_functionally_correct column will be set to False in the Tool Shed's repository_metadata table. 2013-12-10 09:48:50 -05:00
Greg Von Kuster 340762bbf1 Correctly use the initialized test_environment dict when running the tool shed's install and test framework and additional code cleanup for the framework. 2013-12-04 15:07:39 -05:00