[ARVADOS] updated: b07d8a573c74e7be56a2fd8c5064032c37d90c67
Git user
git at public.curoverse.com
Fri Jan 20 11:22:10 EST 2017
Summary of changes:
services/api/test/integration/noop_deep_munge.rb | 35 ++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 services/api/test/integration/noop_deep_munge.rb
via b07d8a573c74e7be56a2fd8c5064032c37d90c67 (commit)
from a9ae80084e5b8897408a47fe081481cb913fd260 (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 b07d8a573c74e7be56a2fd8c5064032c37d90c67
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Fri Jan 20 11:21:50 2017 -0500
10935: Add test that round tripping works after disabling deep_munge.
diff --git a/services/api/test/integration/noop_deep_munge.rb b/services/api/test/integration/noop_deep_munge.rb
new file mode 100644
index 0000000..6305fe5
--- /dev/null
+++ b/services/api/test/integration/noop_deep_munge.rb
@@ -0,0 +1,35 @@
+require 'test_helper'
+
+class NoopDeepMunge < ActionDispatch::IntegrationTest
+
+ test "that empty list round trips properly" do
+ post "/arvados/v1/container_requests",
+ {
+ :container_request => {
+ :name => "workflow",
+ :state => "Uncommitted",
+ :command => ["echo"],
+ :container_image => "arvados/jobs",
+ :output_path => "/",
+ :mounts => {
+ :foo => {
+ :kind => "json",
+ :content => {
+ :a => [],
+ :b => {}
+ }
+ }
+ }
+ }
+ }.to_json, {'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(:admin).api_token}",
+ 'CONTENT_TYPE' => 'application/json'}
+ assert_response :success
+ assert_equal "arvados#containerRequest", json_response['kind']
+ content = {
+ "a" => [],
+ "b" => {}
+ }
+ assert_equal content, json_response['mounts']['foo']['content']
+
+ end
+end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list