7478: Scheduling parameters validation fixes.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Fri, 25 May 2018 17:33:17 +0000 (14:33 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Fri, 25 May 2018 17:33:17 +0000 (14:33 -0300)
commit05f0008349efe56755c580e1e060115587aab352
treeed5a92fd6118aa0e292a82e751dda32ff3990f70
parent8afc85aabb9563da4de17b0b5f7d4fe574e9ad8d
7478: Scheduling parameters validation fixes.

* Set the preemptable parameter to child CRs by default separately from the
validations.
* Allow non-child CR to have the preemptable parameter set explicitly.
* Disallow the preemptable parameter when configuration is disabled.
* Updated tests.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
services/api/app/models/container_request.rb
services/api/test/unit/container_request_test.rb