Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
# SPDX-License-Identifier: AGPL-3.0
require "arvados/collection"
+require "app_version"
class ActionsController < ApplicationController
#
# SPDX-License-Identifier: AGPL-3.0
+require "app_version"
+
class StatusController < ApplicationController
skip_around_action :require_thread_api_token
skip_before_action :find_object_by_uuid
# -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable.
+ # Autoload paths shouldn't be used anymore since Rails 5.0
+ # See #15258 and https://github.com/rails/rails/issues/13142#issuecomment-74586224
# config.autoload_paths += %W(#{config.root}/extras)
- config.autoload_paths += %W(#{config.root}/lib)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
#
# SPDX-License-Identifier: AGPL-3.0
+require 'config_validators'
+
include ConfigValidators
ConfigValidators::validate_wb2_url_config()
\ No newline at end of file
# SPDX-License-Identifier: AGPL-3.0
require 'integration_helper'
+require 'config_validators'
class ApplicationLayoutTest < ActionDispatch::IntegrationTest
# These tests don't do state-changing API calls. Save some time by
To use the FUSE driver elsewhere, you can install from a distribution package, PyPI, or source.
{% include 'notebox_begin' %}
-The Python SDK requires Python 2.7.
+The Arvados FUSE driver requires Python 2.7
{% include 'notebox_end' %}
h4. Option 1: Install from distribution packages
h4. Option 2: Install with pip
-Run @pip-2.7 install arvados_fuse@ in an appropriate installation environment, such as a virtualenv.
+Run @pip install arvados_fuse@ in an appropriate installation environment, such as a virtualenv.
h4. Option 3: Install from source
<notextile>
<pre><code>~$ <span class="userinput">git clone https://github.com/curoverse/arvados.git</span>
~$ <span class="userinput">cd arvados/services/fuse</span>
-~/arvados/services/fuse$ <span class="userinput">python2.7 setup.py install</span>
+~/arvados/services/fuse$ <span class="userinput">python setup.py install</span>
</code></pre>
</notextile>
vwd.mkdirs(p.target)
else:
source, path = self.arvrunner.fs_access.get_collection(p.resolved)
- vwd.copy(path, p.target, source_collection=source)
+ vwd.copy(path or ".", p.target, source_collection=source)
elif p.type == "CreateFile":
if self.arvrunner.secret_store.has_secret(p.resolved):
secret_mounts["%s/%s" % (self.outdir, p.target)] = {
--- /dev/null
+{
+ "filesDir": {
+ "location": "keep:d7514270f356df848477718d58308cc4+94",
+ "class": "Directory"
+ }
+}
--- /dev/null
+cwlVersion: v1.0
+class: CommandLineTool
+
+requirements:
+ - class: InitialWorkDirRequirement
+ listing:
+ - entry: $(inputs.filesDir)
+ writable: true
+
+inputs:
+ filesDir:
+ type: Directory
+
+outputs:
+ results:
+ type: Directory
+ outputBinding:
+ glob: .
+
+arguments: [touch, $(inputs.filesDir.path)/blurg.txt]
}
tool: 13931-size.cwl
doc: Test that size is set for files in Keep
+
+- job: 15241-writable-dir-job.json
+ output: {
+ "results": {
+ "basename": "keep:6dd5fa20622d5a7a23c9147d0927da2a+180",
+ "class": "Directory",
+ "listing": [
+ {
+ "basename": "d7514270f356df848477718d58308cc4+94",
+ "class": "Directory",
+ "listing": [
+ {
+ "basename": "a",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "a",
+ "size": 0
+ },
+ {
+ "basename": "blurg.txt",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "blurg.txt",
+ "size": 0
+ },
+ {
+ "basename": "c",
+ "class": "Directory",
+ "listing": [
+ {
+ "basename": "d",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "d",
+ "size": 0
+ }
+ ],
+ "location": "c"
+ },
+ {
+ "basename": "b",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "b",
+ "size": 0
+ }
+ ],
+ "location": "d7514270f356df848477718d58308cc4+94"
+ }
+ ],
+ "location": "keep:6dd5fa20622d5a7a23c9147d0927da2a+180"
+ }
+ }
+ tool: 15241-writable-dir.cwl
+ doc: Test for writable collections
call_args, call_kwargs = runner.api.container_requests().create.call_args
vwdmock.copy.assert_has_calls([mock.call('bar', 'foo', source_collection=sourcemock)])
- vwdmock.copy.assert_has_calls([mock.call('', 'foo2', source_collection=sourcemock)])
+ vwdmock.copy.assert_has_calls([mock.call('.', 'foo2', source_collection=sourcemock)])
vwdmock.copy.assert_has_calls([mock.call('baz/filename', 'filename', source_collection=sourcemock)])
vwdmock.copy.assert_has_calls([mock.call('subdir', 'subdir', source_collection=sourcemock)])
@stubs
def test_submit_request_uuid(self, stubs):
+ stubs.api._rootDesc["remoteHosts"]["zzzzz"] = "123"
stubs.expect_container_request_uuid = "zzzzz-xvhdp-yyyyyyyyyyyyyyy"
stubs.api.container_requests().update().execute.return_value = {
access_log off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
+ client_max_body_size 128M;
+
server {
listen ${services[doc]} default_server;
listen [::]:${services[doc]} default_server;