Add locales and unzip to install deps
[arvados.git] / services / api / test / integration / serialized_encoding_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'test_helper'
6
7 class SerializedEncodingTest < ActionDispatch::IntegrationTest
8   fixtures :all
9
10   {
11     api_client_authorization: {scopes: []},
12     link: {link_class: 'test', name: 'test', properties: {foo: :bar}},
13     user: {prefs: {cookies: 'thin mint'}},
14   }.each_pair do |resource, postdata|
15     test "create json-encoded #{resource.to_s}" do
16       post("/arvados/v1/#{resource.to_s.pluralize}",
17         params: {resource => postdata.to_json},
18         headers: auth(:admin_trustedclient))
19       assert_response :success
20     end
21   end
22 end