projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '13561-trashed-collection-versions-fix'
[arvados.git]
/
services
/
api
/
test
/
integration
/
select_test.rb
diff --git
a/services/api/test/integration/select_test.rb
b/services/api/test/integration/select_test.rb
index a7bd545179813dcad92485b09f3e1a39c20c9927..fb3f4f617adef8afb6f82726b8b030f45227624e 100644
(file)
--- a/
services/api/test/integration/select_test.rb
+++ b/
services/api/test/integration/select_test.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
class SelectTest < ActionDispatch::IntegrationTest
require 'test_helper'
class SelectTest < ActionDispatch::IntegrationTest
@@
-36,6
+40,13
@@
class SelectTest < ActionDispatch::IntegrationTest
end
end
end
end
+ test "select with default order" do
+ get "/arvados/v1/links", {format: :json, select: ['uuid']}, auth(:admin)
+ assert_response :success
+ uuids = json_response['items'].collect { |i| i['uuid'] }
+ assert_equal uuids, uuids.sort
+ end
+
def assert_link_classes_ascend(current_class, prev_class)
# Databases and Ruby don't always agree about string ordering with
# punctuation. If the strings aren't ascending normally, check
def assert_link_classes_ascend(current_class, prev_class)
# Databases and Ruby don't always agree about string ordering with
# punctuation. If the strings aren't ascending normally, check