From 263129c3643da95bb47e671239c17a098b9cb7b2 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 24 Apr 2020 11:25:58 -0400 Subject: [PATCH] 16263: Fed tests can set arvbox mode (dev or localdemo) Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- sdk/cwl/tests/federation/arvbox-make-federation.cwl | 4 ++++ sdk/cwl/tests/federation/arvboxcwl/start.cwl | 7 +++++-- tools/arvbox/bin/arvbox | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sdk/cwl/tests/federation/arvbox-make-federation.cwl b/sdk/cwl/tests/federation/arvbox-make-federation.cwl index 593f2399f5..a0f8a8eaca 100644 --- a/sdk/cwl/tests/federation/arvbox-make-federation.cwl +++ b/sdk/cwl/tests/federation/arvbox-make-federation.cwl @@ -33,6 +33,9 @@ inputs: logincluster: type: boolean default: false + arvbox_mode: + type: string + default: "dev" outputs: arvados_api_token: type: string @@ -71,6 +74,7 @@ steps: arvbox_data: mkdir/arvbox_data arvbox_bin: arvbox branch: branch + arvbox_mode: arvbox_mode out: [cluster_id, container_host, arvbox_data_out, superuser_token] scatter: [container_name, arvbox_data] scatterMethod: dotproduct diff --git a/sdk/cwl/tests/federation/arvboxcwl/start.cwl b/sdk/cwl/tests/federation/arvboxcwl/start.cwl index a7f46d6b22..8020250392 100644 --- a/sdk/cwl/tests/federation/arvboxcwl/start.cwl +++ b/sdk/cwl/tests/federation/arvboxcwl/start.cwl @@ -14,6 +14,9 @@ inputs: branch: type: string default: master + arvbox_mode: + type: string + default: "dev" outputs: cluster_id: type: string @@ -86,9 +89,9 @@ arguments: cd $(runtime.outdir) if test "$gitver" = "$pulled" ; then - $(inputs.arvbox_bin.path) start dev + $(inputs.arvbox_bin.path) start $(inputs.arvbox_mode) else - $(inputs.arvbox_bin.path) restart dev + $(inputs.arvbox_bin.path) restart $(inputs.arvbox_mode) fi $(inputs.arvbox_bin.path) status > status.txt $(inputs.arvbox_bin.path) cat /var/lib/arvados/superuser_token > superuser_token.txt diff --git a/tools/arvbox/bin/arvbox b/tools/arvbox/bin/arvbox index af9824c3a8..bf18c9aca8 100755 --- a/tools/arvbox/bin/arvbox +++ b/tools/arvbox/bin/arvbox @@ -236,7 +236,7 @@ run() { mkdir -p "$PG_DATA" "$VAR_DATA" "$PASSENGER" "$GEMS" "$PIPCACHE" "$NPMCACHE" "$GOSTUFF" "$RLIBS" if ! test -d "$ARVADOS_ROOT" ; then - git clone https://github.com/arvados/arvados.git "$ARVADOS_ROOT" + git clone https://git.arvados.org/arvados.git "$ARVADOS_ROOT" fi if ! test -d "$SSO_ROOT" ; then git clone https://github.com/arvados/sso-devise-omniauth-provider.git "$SSO_ROOT" -- 2.30.2