[ARVADOS] updated: 2af4936125781b0e60ce66f47f45ed6f856bcda0

git at public.curoverse.com git at public.curoverse.com
Thu Aug 13 13:32:36 EDT 2015


Summary of changes:
 .../app/controllers/application_controller.rb      |   4 +-
 apps/workbench/test/integration/projects_test.rb   |  16 ++-
 doc/_config.yml                                    |   2 +
 ...opy_pipeline_from_curoverse.html.textile.liquid |  63 ++++++++
 sdk/go/arvadosclient/arvadosclient.go              | 158 +++++++++------------
 sdk/go/arvadosclient/arvadosclient_test.go         |  90 ++++++++++++
 sdk/go/arvadosclient/pool.go                       |  52 +++++++
 sdk/go/auth/auth.go                                |  61 ++++++++
 .../go/auth}/basic_auth_go13.go                    |   2 +-
 .../go/auth}/basic_auth_go14.go                    |   2 +-
 .../go/auth}/basic_auth_test.go                    |   2 +-
 .../server.go => sdk/go/httpserver/httpserver.go   |  56 +++-----
 sdk/go/httpserver/log.go                           |  24 ++++
 sdk/go/httpserver/responsewriter.go                |  43 ++++++
 sdk/go/keepclient/hashcheck.go                     |  24 ++--
 sdk/go/keepclient/support.go                       |   1 -
 sdk/pam/.dockerignore                              |   6 +
 sdk/{cwl => pam}/.gitignore                        |   0
 sdk/pam/Dockerfile                                 |  52 +++++++
 sdk/pam/MANIFEST.in                                |   3 +
 sdk/pam/README.rst                                 |  21 +++
 sdk/pam/arvados_pam.py                             | 100 -------------
 sdk/pam/arvados_pam/__init__.py                    |  51 +++++++
 sdk/pam/arvados_pam/auth_event.py                  |  88 ++++++++++++
 sdk/pam/debian/arvados_pam                         |  10 --
 sdk/pam/debian/shellinabox                         | 136 ------------------
 sdk/pam/examples/etc_pam.d_arvados-pam-test        |   3 +
 sdk/pam/examples/etc_pam.d_shellinabox             |  25 ++++
 sdk/pam/fpm-info.sh                                |  17 +++
 sdk/{cwl => pam}/gittaggers.py                     |   0
 .../pam/integration_tests}/__init__.py             |   0
 sdk/pam/integration_tests/test_pam.py              |  26 ++++
 sdk/pam/lib/libpam_arvados.py                      |   1 +
 sdk/pam/pam-configs/arvados                        |  14 ++
 sdk/pam/setup.py                                   |  45 ++++++
 .../performance => sdk/pam/tests}/__init__.py      |   0
 sdk/pam/tests/integration_test.pl                  |  46 ++++++
 sdk/pam/tests/mocker.py                            |  59 ++++++++
 sdk/pam/tests/test_auth_event.py                   |  95 +++++++++++++
 sdk/pam/tests/test_pam_sm.py                       |  26 ++++
 services/api/test/fixtures/groups.yml              |   6 +-
 services/arv-git-httpd/auth_handler.go             |  70 +++------
 services/arv-git-httpd/server.go                   |  85 +----------
 services/arv-git-httpd/server_test.go              |   4 +
 services/nodemanager/bin/arvados-node-manager      |   0
 45 files changed, 1060 insertions(+), 529 deletions(-)
 create mode 100644 doc/install/copy_pipeline_from_curoverse.html.textile.liquid
 create mode 100644 sdk/go/arvadosclient/pool.go
 create mode 100644 sdk/go/auth/auth.go
 rename {services/arv-git-httpd => sdk/go/auth}/basic_auth_go13.go (97%)
 rename {services/arv-git-httpd => sdk/go/auth}/basic_auth_go14.go (91%)
 rename {services/arv-git-httpd => sdk/go/auth}/basic_auth_test.go (98%)
 copy services/arv-git-httpd/server.go => sdk/go/httpserver/httpserver.go (56%)
 create mode 100644 sdk/go/httpserver/log.go
 create mode 100644 sdk/go/httpserver/responsewriter.go
 create mode 100644 sdk/pam/.dockerignore
 copy sdk/{cwl => pam}/.gitignore (100%)
 create mode 100644 sdk/pam/Dockerfile
 create mode 100644 sdk/pam/MANIFEST.in
 create mode 100644 sdk/pam/README.rst
 delete mode 100644 sdk/pam/arvados_pam.py
 create mode 100644 sdk/pam/arvados_pam/__init__.py
 create mode 100644 sdk/pam/arvados_pam/auth_event.py
 delete mode 100644 sdk/pam/debian/arvados_pam
 delete mode 100644 sdk/pam/debian/shellinabox
 create mode 100644 sdk/pam/examples/etc_pam.d_arvados-pam-test
 create mode 100644 sdk/pam/examples/etc_pam.d_shellinabox
 create mode 100644 sdk/pam/fpm-info.sh
 copy sdk/{cwl => pam}/gittaggers.py (100%)
 copy {services/fuse/tests/performance => sdk/pam/integration_tests}/__init__.py (100%)
 create mode 100644 sdk/pam/integration_tests/test_pam.py
 create mode 100644 sdk/pam/lib/libpam_arvados.py
 create mode 100644 sdk/pam/pam-configs/arvados
 create mode 100755 sdk/pam/setup.py
 copy {services/fuse/tests/performance => sdk/pam/tests}/__init__.py (100%)
 create mode 100755 sdk/pam/tests/integration_test.pl
 create mode 100644 sdk/pam/tests/mocker.py
 create mode 100644 sdk/pam/tests/test_auth_event.py
 create mode 100644 sdk/pam/tests/test_pam_sm.py
 mode change 100644 => 100755 services/nodemanager/bin/arvados-node-manager

       via  2af4936125781b0e60ce66f47f45ed6f856bcda0 (commit)
       via  fe42be0d73e9a35da0be068b6555a63cbcce4cb6 (commit)
       via  209ae8068a9952ecf8ae20311719b25f05a3e4cb (commit)
       via  e9ce5eb4546431cb445b9c9286441755c91d7739 (commit)
       via  a70f39f361c3c60018b90f02af64525534025e09 (commit)
       via  f96550cc40f340c79339338d1da81394bfcb64ad (commit)
       via  586ea290542efbd35f6e32fd6959d07cab00c969 (commit)
       via  3dc08cb9e6222486dcaadd50e61cad26d3200289 (commit)
       via  7671ee342c26503984616eb6a864b44070b8f6d9 (commit)
       via  98d6a7c2db7b8be7050fe7394147df5c5ce392bb (commit)
       via  c0f9c128aabb366435d751a3ea1a63b76c177f5b (commit)
       via  c249e92657d76221cf3977145a8dfbd79e8f6d9a (commit)
       via  bf23a991e15aa268f98de95e5ebee0564dfb1221 (commit)
       via  4c3860e66b4a4f8108de793ddcfb66b8b5b182aa (commit)
       via  f8daac938f766732ade005aaf8ac239dce1f697f (commit)
       via  d07162cf2fddaafaa4ea0775d396d77f01083501 (commit)
       via  493e39c8a1ab3caf10ae1c03e16d82f4b77e4a6a (commit)
       via  094d247c7aaddbcd0a512887c6ce115558d14f72 (commit)
       via  2566020d5e03c6934b9ae6c8b70368da1d03f526 (commit)
       via  2a77960071b74d33fcca8bf8a8be495320e564e2 (commit)
       via  68287acb04a459bb6d9410dd619c5b3b00631a15 (commit)
       via  98feead9acd503a81c69b06bf07d6c1bfd3dd458 (commit)
       via  8e671a545fd8abbf74afa109c0150c1d5772a207 (commit)
       via  bd583d21bb62894a5960b10bf81b375fe6336267 (commit)
       via  1e5f8ef2a8c594eb0de874bef72d6d1485725b5a (commit)
       via  e736def390001e01ff6887acbb3c6f08366f6a91 (commit)
       via  6423d36f00308b5c313715d8ddcc160052010a1c (commit)
       via  fbe23d045022aac8ff3ae691052af25968680944 (commit)
       via  fe4f75a44988826afa194c68b455c685d3b3fa8c (commit)
       via  c2f718800dbb03d336c0370631e9ea81dbb3997f (commit)
       via  9f45d7dd8adfac9a2f690de6a0831498cff5512f (commit)
       via  e14e011f667d314e557c580de69a271534b6149f (commit)
       via  2dfb886e960cf918e54b5f03477f464afb322a9b (commit)
       via  173ebc1102e6a5a5c3a26c1bb231a4b035713369 (commit)
       via  e889ec14bbd18cf82acfabc681d0db967772692d (commit)
       via  d2e546749afaa1ff8fff8cb920b9a54d58154b76 (commit)
       via  c009ae5d372cce86b055aacff479712333baa413 (commit)
       via  132bbb69970640e2906bc1285bee9709accb3fc7 (commit)
       via  507110dc0aa1329ac4e5aad59c347a49e9f77364 (commit)
       via  1702335792308d7c1d578c143a5c99b943f112a9 (commit)
       via  4fc613797f88dbb33c234ba7cd13965b1236bfee (commit)
      from  e0330818c561cd5eeb05d45bd778e66c8cdca360 (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 2af4936125781b0e60ce66f47f45ed6f856bcda0
Author: Manoj <jonam33 at gmail.com>
Date:   Thu Aug 13 13:30:34 2015 -0400

    6640: Project menu now shows more than 200 projects, test checks for
    300 projects instead of 200.

diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb
index db3d430..e4e2f71 100644
--- a/apps/workbench/app/controllers/application_controller.rb
+++ b/apps/workbench/app/controllers/application_controller.rb
@@ -744,8 +744,8 @@ class ApplicationController < ActionController::Base
 
   helper_method :all_projects
   def all_projects
-    @all_projects ||= Group.
-      filter([['group_class','=','project']]).order('name')
+    @all_projects = Group.
+      filter([['group_class','=','project']]).order('name').limit(10000)
   end
 
   helper_method :my_projects
diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index bb6ec96..992ed6c 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -474,13 +474,21 @@ class ProjectsTest < ActionDispatch::IntegrationTest
   test "project menu shows all projects owned" do
     visit page_with_token("user1_with_load")
     find("#projects-menu").click
+    page_scrolls = 301/20 + 2  # scroll num_pages+2 times to test scrolling is disabled when it should be
+    within('.dropdown-menu') do
+      (0..page_scrolls).each do |i|
+        page.driver.scroll_to 0, 999000
+        begin
+          wait_for_ajax
+        rescue
+        end
+      end
+    end
     # Verify that expected number of projects are found
     found_items = page.all('li')
     found_count = found_items.count
-    assert_equal(true, found_count>=211,
-      "Found too few items. Expected at least 200 and found #{found_count}")
-    assert_equal(true, found_count<=220,
-      "Found too many items. Expected at most 210 and found #{found_count}")
+    assert_equal(true, found_count>=301,
+      "Found too few items. Expected at least 301 and found #{found_count}")
   end
 
   [
diff --git a/services/api/test/fixtures/groups.yml b/services/api/test/fixtures/groups.yml
index b885e23..2da2173 100644
--- a/services/api/test/fixtures/groups.yml
+++ b/services/api/test/fixtures/groups.yml
@@ -288,9 +288,9 @@ subproject_in_asubproject_with_same_name_as_one_in_active_user_home:
 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
 
 # projects owned by user1_with_load
-<% for i in 1..201 do %>
-project_<%=i%>_of_201:
-  uuid: zzzzz-j7d0g-201gneyn6brd<%= i.to_s.rjust(3, '0') %>
+<% for i in 1..301 do %>
+project_<%=i%>_of_301:
+  uuid: zzzzz-j7d0g-301gneyn6brd<%= i.to_s.rjust(3, '0') %>
   owner_uuid: zzzzz-tpzed-user1withloadab
   created_at: <%= i.minute.ago.to_s(:db) %>
   name: Project_<%= i %>

commit fe42be0d73e9a35da0be068b6555a63cbcce4cb6
Merge: e033081 209ae80
Author: Manoj <jonam33 at gmail.com>
Date:   Thu Aug 13 12:38:12 2015 -0400

    Merge branch 'master' into 6640-projects-menu-incomplete


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


hooks/post-receive
-- 




More information about the arvados-commits mailing list