1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/44081a39d8f0/
Changeset: 44081a39d8f0
User: davebgx
Date: 2014-07-28 18:17:47
Summary: Improve fetching of api key for newly created user.
Affected #: 1 file
diff -r 799ceff557bbbfea80cbfd164a297a0364b0c699 -r 44081a39d8f0f36d92991a6faece6636914c1169 lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh
--- a/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh
+++ b/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh
@@ -73,12 +73,11 @@
fi
done
-echo -n "Retrieving admin user's API key..."
-api_key_json=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/`
-api_key=`echo $api_key_json | grep api_key | awk 'BEGIN { FS="\"" } ; { print \$4 }' | sed 's/\\s\+//'`
+echo -n "Retrieving admin user's API key from $local_shed_url..."
+api_key=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/ | sed 's/.\+api_key[^0-9a-f]\+\([0-9a-f]\+\).\+/\1/'`
if [[ -z $api_key && ${api_key+x} ]] ; then
- stop_err "Error getting API key for user $admin_user_email."
+ stop_err "Error getting API key for user $admin_user_email."
fi
echo " done."
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/03dba199c526/
Changeset: 03dba199c526
User: dan
Date: 2014-07-25 23:32:53
Summary: Provide some clarification for the 'Manage your information' menu item.
Affected #: 1 file
diff -r 7601982d2180182671bb68349159947fc415800b -r 03dba199c52645b104dc46c78b364b3ee763cfac templates/user/index.mako
--- a/templates/user/index.mako
+++ b/templates/user/index.mako
@@ -11,7 +11,7 @@
<ul>
%if t.webapp.name == 'galaxy':
%if not trans.app.config.use_remote_user:
- <li><a href="${h.url_for( controller='user', action='manage_user_info', cntrller=cntrller )}">${_('Manage your information')}</a></li>
+ <li><a href="${h.url_for( controller='user', action='manage_user_info', cntrller=cntrller )}">${_('Manage your information')}</a> (email, password, etc.)</li>
%endif
<li><a href="${h.url_for( controller='user', action='set_default_permissions', cntrller=cntrller )}">${_('Change default permissions')}</a> for new histories</li><li><a href="${h.url_for( controller='user', action='api_keys', cntrller=cntrller )}">${_('Manage your API keys')}</a></li>
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/7601982d2180/
Changeset: 7601982d2180
User: jmchilton
Date: 2014-07-25 21:47:34
Summary: Workflow test utility build ds_map more easily.
Probably should do something like this server side so workflow API can be used more deterministically (wouldn't need to import a workflow and then hit the API to know how to use it).
Affected #: 1 file
diff -r f1123017cfcd1f1c2531b62624ceac4e28aa6dd4 -r 7601982d2180182671bb68349159947fc415800b test/api/test_workflows.py
--- a/test/api/test_workflows.py
+++ b/test/api/test_workflows.py
@@ -412,28 +412,30 @@
def _setup_workflow_run( self, workflow, history_id=None ):
uploaded_workflow_id = self.workflow_populator.create_workflow( workflow )
- workflow_inputs = self._workflow_inputs( uploaded_workflow_id )
- step_1 = step_2 = None
- for key, value in workflow_inputs.iteritems():
- label = value[ "label" ]
- if label == "WorkflowInput1":
- step_1 = key
- if label == "WorkflowInput2":
- step_2 = key
if not history_id:
history_id = self.dataset_populator.new_history()
hda1 = self.dataset_populator.new_dataset( history_id, content="1 2 3" )
hda2 = self.dataset_populator.new_dataset( history_id, content="4 5 6" )
+ label_map = {
+ 'WorkflowInput1': self._ds_entry(hda1),
+ 'WorkflowInput2': self._ds_entry(hda2)
+ }
workflow_request = dict(
history="hist_id=%s" % history_id,
workflow_id=uploaded_workflow_id,
- ds_map=dumps( {
- step_1: self._ds_entry(hda1),
- step_2: self._ds_entry(hda2),
- } ),
+ ds_map=self._build_ds_map( uploaded_workflow_id, label_map ),
)
return workflow_request, history_id
+ def _build_ds_map( self, workflow_id, label_map ):
+ workflow_inputs = self._workflow_inputs( workflow_id )
+ ds_map = {}
+ for key, value in workflow_inputs.iteritems():
+ label = value[ "label" ]
+ if label in label_map:
+ ds_map[ key ] = label_map[ label ]
+ return dumps( ds_map )
+
def _setup_random_x2_workflow( self, name ):
workflow = self.workflow_populator.load_random_x2_workflow( name )
uploaded_workflow_id = self.workflow_populator.create_workflow( workflow )
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
2 new commits in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/fe0b5d1b527f/
Changeset: fe0b5d1b527f
User: jmchilton
Date: 2014-07-25 18:51:10
Summary: Extend API test timeouts.
Some buildbot API tests are timing out waiting but work locally, I suspect this will fix the problem.
Affected #: 1 file
diff -r f002131cb905ad4e578635c8a8b655e07cf701f0 -r fe0b5d1b527fadd503baeaa15089b19c9f75fbde test/api/helpers.py
--- a/test/api/helpers.py
+++ b/test/api/helpers.py
@@ -12,7 +12,7 @@
# row - first grabbing 8 lines at random and then 6.
workflow_random_x2_str = resource_string( __name__, "test_workflow_2.ga" )
-DEFAULT_HISTORY_TIMEOUT = 5 # Secs to wait on history to turn ok
+DEFAULT_HISTORY_TIMEOUT = 10 # Secs to wait on history to turn ok
def skip_without_tool( tool_id ):
https://bitbucket.org/galaxy/galaxy-central/commits/f1123017cfcd/
Changeset: f1123017cfcd
User: jmchilton
Date: 2014-07-25 18:51:11
Summary: Fix API tests for 879c485...
Which made tool multirun link/match instead cross producting (will someday figure a terminology for this :)).
Affected #: 1 file
diff -r fe0b5d1b527fadd503baeaa15089b19c9f75fbde -r f1123017cfcd1f1c2531b62624ceac4e28aa6dd4 test/api/test_tools.py
--- a/test/api/test_tools.py
+++ b/test/api/test_tools.py
@@ -189,13 +189,16 @@
],
}
outputs = self._cat1_outputs( history_id, inputs=inputs )
- self.assertEquals( len( outputs ), 4 )
+ self.assertEquals( len( outputs ), 2 )
self.dataset_populator.wait_for_history( history_id, assert_ok=True )
outputs_contents = [ self._get_content( history_id, dataset=o ).strip() for o in outputs ]
assert "123\n789" in outputs_contents
- assert "456\n789" in outputs_contents
- assert "123\n0ab" in outputs_contents
assert "456\n0ab" in outputs_contents
+ # TODO: Once cross production (instead of linking inputs) is an option
+ # again redo test with these checks...
+ # self.assertEquals( len( outputs ), 4 )
+ # assert "123\n0ab" in outputs_contents
+ # assert "456\n789" in outputs_contents
@skip_without_tool( "cat1" )
def test_map_over_collection( self ):
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.