[ARVADOS] updated: de98daba898ad2dfa58c9e810d98dadf4d208b95

git at public.curoverse.com git at public.curoverse.com
Wed Jul 8 11:40:42 EDT 2015


Summary of changes:
 .gitignore                                         |   2 +
 .../app/assets/javascripts/select_modal.js         |   5 +-
 apps/workbench/app/assets/javascripts/users.js     |   2 +-
 .../app/controllers/actions_controller.rb          |   3 +-
 .../app/controllers/projects_controller.rb         |  20 +-
 apps/workbench/app/controllers/users_controller.rb |   9 +-
 .../app/views/application/_show_recent.html.erb    |  16 +-
 apps/workbench/app/views/layouts/body.html.erb     |   4 +-
 .../app/views/users/_setup_popup.html.erb          |   7 +-
 .../workbench/app/views/users/_show_admin.html.erb |   8 +-
 apps/workbench/config/application.default.yml      |   3 +
 .../controllers/collections_controller_test.rb     |   3 +
 .../test/controllers/projects_controller_test.rb   |  71 ++
 apps/workbench/test/integration/projects_test.rb   |  75 --
 apps/workbench/test/integration/search_box_test.rb |  13 +-
 apps/workbench/test/integration/users_test.rb      |  72 +-
 crunch_scripts/crunchutil/vwd.py                   |   6 +
 crunch_scripts/run-command                         |   9 +-
 doc/_includes/_install_debian_key.liquid           |   4 +
 doc/_includes/_install_redhat_key.liquid           |   6 +
 doc/_includes/_note_python27_sc.liquid             |   5 +
 doc/install/install-api-server.html.textile.liquid | 255 ++++---
 .../install-arv-git-httpd.html.textile.liquid      |  20 +-
 .../install-compute-node.html.textile.liquid       |  44 +-
 .../install-crunch-dispatch.html.textile.liquid    |  34 +-
 doc/install/install-keepproxy.html.textile.liquid  |  18 +-
 doc/install/install-keepstore.html.textile.liquid  |  19 +-
 ...l-manual-prerequisites-ruby.html.textile.liquid |   6 +-
 ...nstall-manual-prerequisites.html.textile.liquid |  52 +-
 .../install-shell-server.html.textile.liquid       |  38 +-
 .../install-workbench-app.html.textile.liquid      | 165 +++--
 doc/sdk/perl/index.html.textile.liquid             |  40 +-
 doc/sdk/python/sdk-python.html.textile.liquid      |  61 +-
 doc/user/topics/run-command.html.textile.liquid    |  13 +
 .../tutorial-keep-mount.html.textile.liquid        |  22 +-
 docker/api/Dockerfile                              |   4 +-
 docker/api/update-gitolite.rb                      |  11 +-
 docker/base/Dockerfile                             |  14 +-
 docker/compute/Dockerfile                          |   6 +-
 docker/doc/Dockerfile                              |   4 +-
 docker/java-bwa-samtools/Dockerfile                |   4 +-
 docker/keepproxy/Dockerfile                        |   4 +-
 docker/passenger/Dockerfile                        |   4 +-
 docker/postgresql/Dockerfile                       |   2 +-
 docker/shell/Dockerfile                            |   4 +-
 docker/slurm/Dockerfile                            |   4 +-
 docker/workbench/Dockerfile                        |   4 +-
 sdk/cli/bin/crunch-job                             | 154 ++--
 sdk/python/arvados/_ranges.py                      |  22 +-
 sdk/python/arvados/api.py                          |   6 +-
 sdk/python/arvados/arvfile.py                      | 399 +++++++----
 sdk/python/arvados/collection.py                   | 327 ++++++---
 sdk/python/arvados/commands/put.py                 |   5 +-
 sdk/python/arvados/events.py                       |   6 +-
 sdk/python/arvados/keep.py                         |   4 +-
 sdk/python/arvados/util.py                         |  18 +
 sdk/python/setup.py                                |   2 -
 .../python/tests/performance}/__init__.py          |   0
 .../tests/performance/performance_profiler.py      |  49 ++
 sdk/python/tests/performance/test_a_sample.py      |  15 +
 sdk/python/tests/test_arv_put.py                   |  14 +
 sdk/python/tests/test_arvfile.py                   | 178 ++---
 sdk/python/tests/test_collections.py               |  38 +-
 services/api/Rakefile                              |  31 +
 .../arvados/v1/repositories_controller.rb          |  19 +-
 services/api/app/mailers/user_notifier.rb          |   2 +-
 .../views/user_notifier/account_is_setup.text.erb  |   7 +-
 services/api/db/structure.sql                      |   2 +-
 services/api/script/crunch-dispatch.rb             |  69 +-
 .../arvados/v1/repositories_controller_test.rb     |  11 +
 .../functional/arvados/v1/users_controller_test.rb |   8 +-
 services/api/test/unit/user_notifier_test.rb       |   8 +-
 services/fuse/README.rst                           |   4 +
 services/fuse/arvados_fuse/__init__.py             | 432 ++++++++++--
 services/fuse/arvados_fuse/fresh.py                |  52 +-
 services/fuse/arvados_fuse/fusedir.py              | 457 +++++++++---
 services/fuse/arvados_fuse/fusefile.py             |  54 +-
 services/fuse/bin/arv-mount                        |  23 +-
 services/fuse/setup.py                             |   2 +-
 services/fuse/tests/fstest.py                      | 133 ++++
 services/fuse/tests/{ => performance}/__init__.py  |   0
 .../fuse/tests/performance/performance_profiler.py |   1 +
 services/fuse/tests/prof.py                        |  17 +
 services/fuse/tests/test_inodes.py                 |   5 +-
 services/fuse/tests/test_mount.py                  | 781 ++++++++++++++++++++-
 85 files changed, 3460 insertions(+), 1090 deletions(-)
 create mode 100644 doc/_includes/_install_debian_key.liquid
 create mode 100644 doc/_includes/_install_redhat_key.liquid
 create mode 100644 doc/_includes/_note_python27_sc.liquid
 copy {services/fuse/tests => sdk/python/tests/performance}/__init__.py (100%)
 create mode 100644 sdk/python/tests/performance/performance_profiler.py
 create mode 100644 sdk/python/tests/performance/test_a_sample.py
 create mode 100644 services/fuse/tests/fstest.py
 copy services/fuse/tests/{ => performance}/__init__.py (100%)
 create mode 120000 services/fuse/tests/performance/performance_profiler.py
 create mode 100644 services/fuse/tests/prof.py

       via  de98daba898ad2dfa58c9e810d98dadf4d208b95 (commit)
       via  fc2dc01f5e98b3c1d663e78f882eed20962de9d7 (commit)
       via  76e03aef476139403bab1df2ed038761159ceff1 (commit)
       via  5608a875c36101c791e35c474abf5e3900aad071 (commit)
       via  e06ea339d3d0c0f6fad81128b3cab34cdd4bd36f (commit)
       via  da80f4a198e734313a7991466244083dabd64b00 (commit)
       via  c428f31ab63f8414973848455ab7c44ed4a1d51b (commit)
       via  cfcfa1c48d95a07bb961baeef8d7658ddecce41e (commit)
       via  fdb63be9fde8ea69e78e68f77bb0ab00a79a8d6f (commit)
       via  c0082c57cb7c5e67115e7b03c8c85f74b5b29d0d (commit)
       via  770927dbfa1fb16b3075d1581dc66f4e7a623631 (commit)
       via  fa92bc75955f1a81652241addf3c6b24c594b55e (commit)
       via  80a9fa664c8370436a0190f483410e5af05e26c3 (commit)
       via  f721928e89bb06f6df21432da521c9163ff722e3 (commit)
       via  57922375aa60a80e5af5c1e5baa0205df9dfdfb1 (commit)
       via  09fcf10ff841e5032145936385b406412674a368 (commit)
       via  b67167e763608af2909ce4e4e25c03d0e7db8b84 (commit)
       via  160aa31a20a754b165f0184d712fba8b65519125 (commit)
       via  0db099d96a60ffafdaf0cdf14e92a4dc579e723e (commit)
       via  cf8786f78aa3d8af225f1eaf2bd7c0a17cfa33fc (commit)
       via  87e9c0e26ff55582a993a8e11902e8657647f59a (commit)
       via  76e74a7feb2142ff48a1189957626cc8f6deb360 (commit)
       via  0ebc3631838c34c0307fe73beb8e8037b0110bcf (commit)
       via  8048e6daaeb0628b243855b606093f95dded9d29 (commit)
       via  15ccbbab5a621a1cbfeaeb7c65ee35f72da3efb2 (commit)
       via  e4895820d9302048cc41e4b119450bbb8c01f70f (commit)
       via  34ec4990bb0deaa6c7bef5b9793da3c6836b79e2 (commit)
       via  59e45dbc9ef35513c9a32785158274b86d4e003d (commit)
       via  26b4ea9922d7d9f6c71595960df1c3d0b6c37fc6 (commit)
       via  18c93ee7a21912e9759b127a3ec73bb81c15f23d (commit)
       via  b17c7d97723d99909868d3435b449ab4e95f1708 (commit)
       via  554300e76561021bd26f9143cdece13dd80341cd (commit)
       via  416a99c2039e879cefc67dd0764b8544ef6c2d53 (commit)
       via  9b910084faf3db6fa2071af604620e7d45d12a6c (commit)
       via  665b0fbe5f57866f9d0183a08e713fe07e8db8de (commit)
       via  2d4198a095e193102daa2710c6b2baba7be7c9ce (commit)
       via  1ec9e3707d464e96e0a1c44d3d074842b3b5051b (commit)
       via  5b3187552676947ee74e4b652e7a04d3d9b9a3a4 (commit)
       via  41538c32327e28e00206c3dbb2317e92a8731958 (commit)
       via  69107d28a38609607112a3355de61e0f61ed4f51 (commit)
       via  3104ab72159ede44043fcd71dc0094c97f9c4251 (commit)
       via  a8a79114bdb1b02d5c071a1efce2796f633976ed (commit)
       via  d7e0ab968120be2807c8cc4adf41c85e887e0b05 (commit)
       via  628654aa8c43b00472867975031923747d163aef (commit)
       via  eac37febf548d1d103661ded6e1a0e21e64ba7cd (commit)
       via  ad7679cfe57733940f8461097ee01bfd97997ce6 (commit)
       via  1f40455a7bd764c517c7f1ddb8b4b41b4a2f7ee8 (commit)
       via  b269c28f1d54e8609f36c8aeb77a2b6025172066 (commit)
       via  24b4d1ad90558332cd5251b265a54c21ffdbfd36 (commit)
       via  ae63accf8df1fdc458603fdf0c259c4bf0f25231 (commit)
       via  372aaff2b572ce772fafc506e9c57d465eb823f6 (commit)
       via  83d820df9f30c281b4babbc8b05fdea4e2b81d01 (commit)
       via  d1dbdfd430be8a1bdd21fc1f02f8fe5e2d989092 (commit)
       via  08284382b53f621c09c4ffc87d82fa0261a69d32 (commit)
       via  9d9f6578ada5768205150757f241c66009347884 (commit)
       via  e8db6685b64c6853eb3c5d3ee27ba58168c3c8e8 (commit)
       via  20ade56019456b41c98021c2ed5a848bd8d018bb (commit)
       via  a830b5b560251c3143a7b1fd60db3f50a7021b34 (commit)
       via  05ff1098f0e9eda5d642a1249f8b3a236656320c (commit)
       via  27dc00515f48ed69b4d5e26ff64805b8cda4ccd3 (commit)
       via  349e1ee218d7e888c6c1bcb07f6537f0bdc85012 (commit)
       via  aff4a730ad890564ee05c2395c4ebb49458e3cdc (commit)
       via  f9b617b7c8245d1e0eedaafc181501a6ac344657 (commit)
       via  900b548097c68649ae2874ded5849f1d8164384c (commit)
       via  28e6503a62fbbff41224843c8c39f4052242c8cd (commit)
       via  19c43cebdfa1b701b031577f62c2a7b060dc8b0e (commit)
       via  faefe8fc192886b35be484d5a6bb9f5a6a87b53f (commit)
       via  27616fe74103c079a84ac34b2adb83f1952c5772 (commit)
       via  fea4d2ba4ab741daff3fd17d910b72539a50a447 (commit)
       via  2403cd9fd5a508252fe4570d6eed9c9c4efa366a (commit)
       via  3809452aef74876da9d2644fe6c824a22527d6ac (commit)
       via  3d1d497b23a53370417385eb75a5ba7207364ff7 (commit)
       via  a04932c206425f4eb2f46e36f0acf4b7b194b865 (commit)
       via  32f8850d66e388fe0c086f8e1e4c74658c34fad0 (commit)
       via  ae85b0b33bcae6e36dcfa66d2fca9c70583c54b6 (commit)
       via  a592559241a69087a35361177d9aa81c8a2c3e79 (commit)
       via  2fc2ce33d7b857d42be0cd94354e90933b84ff1b (commit)
       via  06d87aa4fe72ad86c94593e4909be08bad6acb35 (commit)
       via  682dd5b6cc23a455766a7651e3e841257660b31c (commit)
       via  d2f68bd1e108c3f2dda2322c427050d019b17e04 (commit)
       via  296e1b20ecf2c283508712332f163c06464b3b5d (commit)
       via  f69d2824c997c53caa11d30ba816768bad52e12b (commit)
       via  4077a9af0985d3c85f2f2de2bb7a0f6be581e71e (commit)
       via  32131dfa999fe658e5e61f465a5badf71271e2d2 (commit)
       via  5549904bbd5dec9bafe60e36d4ea1abe6b791f19 (commit)
       via  23a940aaf47411cd07615b3301d24d3868a11bce (commit)
       via  f91b1eaef727a11769edb8d02410b43386652b0d (commit)
       via  499d871d59a5c05cf1034580e7c10ba37cefef4a (commit)
       via  4ac1cbf8618fc51f1413597c2fb406c1bead3376 (commit)
      from  6e7c96b2bdf0498028bf6ee3902289e81ec1f2d7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit de98daba898ad2dfa58c9e810d98dadf4d208b95
Merge: fc2dc01 76e03ae
Author: Manoj <jonam33 at gmail.com>
Date:   Wed Jul 8 11:40:16 2015 -0400

    Merge branch 'master' into 6465-optimize-workbench-integration-tests


commit fc2dc01f5e98b3c1d663e78f882eed20962de9d7
Author: Manoj <jonam33 at gmail.com>
Date:   Wed Jul 8 11:34:13 2015 -0400

    6465-Removed two description based tests in projects integration test and added four tests in projects controller test.
    Kept one description test in projects integration test to check if the edit description button works.

diff --git a/apps/workbench/test/controllers/projects_controller_test.rb b/apps/workbench/test/controllers/projects_controller_test.rb
index 62a93a1..c695bd5 100644
--- a/apps/workbench/test/controllers/projects_controller_test.rb
+++ b/apps/workbench/test/controllers/projects_controller_test.rb
@@ -306,4 +306,49 @@ class ProjectsControllerTest < ActionController::TestCase
     assert_match /\/users\/welcome/, @response.redirect_url
     assert_empty css_select('[href="/projects/public"]')
   end
+
+  test "find a project and edit its description" do
+    project = api_fixture('groups')['aproject']
+    use_token :active
+    found = Group.find(project['uuid'])
+    found.description = 'test description update'
+    found.save!
+    get(:show, {id: project['uuid']}, session_for(:active))
+    assert_includes @response.body, 'test description update'
+  end
+
+  test "find a project and edit description to textile description" do
+    project = api_fixture('groups')['aproject']
+    use_token :active
+    found = Group.find(project['uuid'])
+    found.description = '*test bold description for textile formatting*'
+    found.save!
+    get(:show, {id: project['uuid']}, session_for(:active))
+    assert_includes @response.body, '<strong>test bold description for textile formatting</strong>'
+  end
+
+  test "find a project and edit description to html description" do
+    project = api_fixture('groups')['aproject']
+    use_token :active
+    found = Group.find(project['uuid'])
+    found.description = 'Textile description with link to home page <a href="/">take me home</a>.'
+    found.save!
+    get(:show, {id: project['uuid']}, session_for(:active))
+    assert_not_includes 'Textile description with link to home page <a href="/">take me home</a>.', @response.body
+    assert_match /Textile description with link to home page .*a href=.*take me home.*\/a.*./, @response.body
+  end
+
+  test "find a project and edit description to textile description with link to object" do
+    project = api_fixture('groups')['aproject']
+    use_token :active
+    found = Group.find(project['uuid'])
+    found.description = '"Link to object":' + api_fixture('groups')['asubproject']['uuid']
+    found.save!
+    get(:show, {id: project['uuid']}, session_for(:active))
+    puts @response.body
+    assert_not_includes '"Link to object"', @response.body
+    assert_match /href=.*Link to object.*\/a./, @response.body
+    refute_empty css_select('[href="/groups/zzzzz-j7d0g-axqo7eu9pwvna1x"]')
+  end
+
 end
diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index 9c2842f..366b1d3 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -36,81 +36,6 @@ class ProjectsTest < ActionDispatch::IntegrationTest
            "Description update did not survive page refresh")
   end
 
-  test 'Find a project and edit description to textile description' do
-    visit page_with_token 'active', '/'
-    find("#projects-menu").click
-    find(".dropdown-menu a", text: "A Project").click
-    within('.container-fluid', text: api_fixture('groups')['aproject']['name']) do
-      find('span', text: api_fixture('groups')['aproject']['name']).click
-      within('.arv-description-as-subtitle') do
-        find('.fa-pencil').click
-        find('.editable-input textarea').set('<p>*Textile description for A project* - "take me home":/ </p><p>And a new paragraph in description.</p>')
-        find('.editable-submit').click
-      end
-      wait_for_ajax
-    end
-
-    # visit project page
-    visit current_path
-    assert_no_text '*Textile description for A project*'
-    assert(find?('.container-fluid', text: 'Textile description for A project'),
-           "Description update did not survive page refresh")
-    assert(find?('.container-fluid', text: 'And a new paragraph in description'),
-           "Description did not contain the expected new paragraph")
-    assert(page.has_link?("take me home"), "link not found in description")
-
-    click_link 'take me home'
-
-    # now in dashboard
-    assert(page.has_text?('Active pipelines'), 'Active pipelines - not found on dashboard')
-  end
-
-  test 'Find a project and edit description to html description' do
-    visit page_with_token 'active', '/'
-    find("#projects-menu").click
-    find(".dropdown-menu a", text: "A Project").click
-    within('.container-fluid', text: api_fixture('groups')['aproject']['name']) do
-      find('span', text: api_fixture('groups')['aproject']['name']).click
-      within('.arv-description-as-subtitle') do
-        find('.fa-pencil').click
-        find('.editable-input textarea').set('<br>Textile description for A project</br> - <a href="/">take me home</a>')
-        find('.editable-submit').click
-      end
-      wait_for_ajax
-    end
-    visit current_path
-    assert(find?('.container-fluid', text: 'Textile description for A project'),
-           "Description update did not survive page refresh")
-    assert(!find?('.container-fluid', text: '<br>Textile description for A project</br>'),
-           "Textile description is displayed with uninterpreted formatting characters")
-    assert(page.has_link?("take me home"),"link not found in description")
-    click_link 'take me home'
-    assert page.has_text?('Active pipelines')
-  end
-
-  test 'Find a project and edit description to textile description with link to object' do
-    visit page_with_token 'active', '/'
-    find("#projects-menu").click
-    find(".dropdown-menu a", text: "A Project").click
-    within('.container-fluid', text: api_fixture('groups')['aproject']['name']) do
-      find('span', text: api_fixture('groups')['aproject']['name']).click
-      within('.arv-description-as-subtitle') do
-        find('.fa-pencil').click
-        find('.editable-input textarea').set('*Textile description for A project* - "go to sub-project":' + api_fixture('groups')['asubproject']['uuid'] + "'")
-        find('.editable-submit').click
-      end
-      wait_for_ajax
-    end
-    visit current_path
-    assert(find?('.container-fluid', text: 'Textile description for A project'),
-           "Description update did not survive page refresh")
-    assert(!find?('.container-fluid', text: '*Textile description for A project*'),
-           "Textile description is displayed with uninterpreted formatting characters")
-    assert(page.has_link?("go to sub-project"), "link not found in description")
-    click_link 'go to sub-project'
-    assert(page.has_text?(api_fixture('groups')['asubproject']['name']), 'sub-project name not found after clicking link')
-  end
-
   test 'Add a new name, then edit it, without creating a duplicate' do
     project_uuid = api_fixture('groups')['aproject']['uuid']
     specimen_uuid = api_fixture('traits')['owned_by_aproject_with_no_name']['uuid']

commit cfcfa1c48d95a07bb961baeef8d7658ddecce41e
Merge: b67167e fdb63be
Author: Manoj <jonam33 at gmail.com>
Date:   Tue Jul 7 09:15:30 2015 -0400

    Merge branch 'master' into 6465-optimize-workbench-integration-tests


commit b67167e763608af2909ce4e4e25c03d0e7db8b84
Author: Manoj <jonam33 at gmail.com>
Date:   Mon Jul 6 09:28:35 2015 -0400

    6465 - Moved test for anonymous user accessing collection in a shared project from integration
    to controller.

diff --git a/apps/workbench/test/controllers/collections_controller_test.rb b/apps/workbench/test/controllers/collections_controller_test.rb
index dd9aefc..d046d88 100644
--- a/apps/workbench/test/controllers/collections_controller_test.rb
+++ b/apps/workbench/test/controllers/collections_controller_test.rb
@@ -471,5 +471,8 @@ class CollectionsControllerTest < ActionController::TestCase
     response_object = assigns(:object)
     assert_equal collection['name'], response_object['name']
     assert_equal collection['uuid'], response_object['uuid']
+    assert_includes @response.body, 'Hello world'
+    assert_includes @response.body, 'Content address'
+    refute_nil css_select('[href="#Advanced"]')
   end
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list