9687: For a ContainerRequest being committed, if its container has the state "Complet...
authorLucas Di Pentima <lucas@curoverse.com>
Wed, 24 Aug 2016 19:05:27 +0000 (16:05 -0300)
committerLucas Di Pentima <lucas@curoverse.com>
Wed, 24 Aug 2016 19:05:27 +0000 (16:05 -0300)
commit74b5dd2b6f4a33b06b136fd587408ec3d4e42ec0
treec66f05c55a588640a4054963994f30f8e4bb4891
parenta786d20e2ac2dbc5fd78a6100b23e391ddb3ce32
9687: For a ContainerRequest being committed, if its container has the state "Complete" but exit_code not zero, return "Failed" as a state_label so that Workbench won't render its status as "Complete". Added fixture & test to check for this correction.
apps/workbench/app/models/container_work_unit.rb
apps/workbench/test/unit/work_unit_test.rb
services/api/test/fixtures/container_requests.yml
services/api/test/fixtures/containers.yml