17014: controller handles container requests
authorNico Cesar <nico@nicocesar.com>
Thu, 7 Jan 2021 16:23:21 +0000 (11:23 -0500)
committerNico Cesar <nico@nicocesar.com>
Thu, 21 Jan 2021 01:38:24 +0000 (20:38 -0500)
commit3ec51dcf456b2afe02857089895a261653abddd4
tree2fad374594e97de14715cb1bfe3d8c42101ce7c0
parent5280006cf7e9ce93db3390d76f7760353b10479d
17014: controller handles container requests

This commit has:
  * Container Requests in the new codepath
  * runtime_constraints and scheduling parameters have now default
    values and cannot be nil. This affects Railsapi CR comparison
    in Final state
  * Adapted Login and Logout so they work for CR
  * Tests in  lib/controller/integration_test.go that take in account
    runtime_token with intermediate clusters
  * Some tests in  lib/controller/federation_test.go had to be addapted,
    but for the most part remained as is to gurantee compatibilty
  * Added the check that SystemRootToken has to be non-empty
  * Railsapi fixtures that include finalized CR that are used in the tests to
    make sure we return the right object
  * Minimal changes in the documentation to reflect all the user visible
    changes
  * Added expires_at parameter for login and related test

Arvados-DCO-1.1-Signed-off-by: Nico Cesar <nico@curii.com>
37 files changed:
apps/workbench/test/controllers/container_requests_controller_test.rb
doc/api/methods/container_requests.html.textile.liquid
lib/boot/supervisor.go
lib/controller/cmd.go
lib/controller/federation/conn.go
lib/controller/federation/generate.go
lib/controller/federation/generated.go
lib/controller/federation_test.go
lib/controller/handler.go
lib/controller/handler_test.go
lib/controller/integration_test.go
lib/controller/localdb/conn.go
lib/controller/localdb/login.go
lib/controller/localdb/login_ldap.go
lib/controller/localdb/login_ldap_test.go
lib/controller/localdb/login_oidc.go
lib/controller/localdb/login_pam.go
lib/controller/localdb/login_pam_test.go
lib/controller/localdb/login_testuser.go
lib/controller/localdb/login_testuser_test.go
lib/controller/router/response.go
lib/controller/router/router.go
lib/controller/rpc/conn.go
lib/crunchrun/crunchrun.go
lib/crunchrun/crunchrun_test.go
sdk/go/arvados/api.go
sdk/go/arvados/container.go
sdk/go/arvadostest/api.go
services/api/app/controllers/user_sessions_controller.rb
services/api/app/models/arvados_model.rb
services/api/app/models/container.rb
services/api/app/models/container_request.rb
services/api/test/fixtures/container_requests.yml
services/api/test/functional/arvados/v1/container_requests_controller_test.rb
services/api/test/functional/user_sessions_controller_test.rb
services/api/test/unit/container_request_test.rb
services/api/test/unit/container_test.rb