From 14f7542486bfd3eae22a20271787ea87b235eabc Mon Sep 17 00:00:00 2001
From: nhertz <nhertz@nrao.edu>
Date: Fri, 26 Mar 2021 11:23:20 -0600
Subject: [PATCH] Adding verbose option to datafetcher call in test_download
 workflow

---
 ...add_verbose_option_to_datafetcher_call_.py | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 schema/versions/3d4dc6cc17a8_add_verbose_option_to_datafetcher_call_.py

diff --git a/schema/versions/3d4dc6cc17a8_add_verbose_option_to_datafetcher_call_.py b/schema/versions/3d4dc6cc17a8_add_verbose_option_to_datafetcher_call_.py
new file mode 100644
index 000000000..723f58f1c
--- /dev/null
+++ b/schema/versions/3d4dc6cc17a8_add_verbose_option_to_datafetcher_call_.py
@@ -0,0 +1,31 @@
+"""add --verbose option to datafetcher call in test_download.sh workflow
+
+Revision ID: 3d4dc6cc17a8
+Revises: a3b9fdce74bd
+Create Date: 2021-03-24 12:49:29.171713
+
+"""
+import sqlalchemy as sa
+from alembic import op
+
+# revision identifiers, used by Alembic.
+revision = "3d4dc6cc17a8"
+down_revision = "a3b9fdce74bd"
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+    op.execute(
+        "UPDATE workflow_templates "
+        "SET content = E'#!/bin/sh\n\ndatafetcher --verbose --product-locator $1\ndeliver -r .\n' "
+        "WHERE filename = 'test_download.sh'"
+    )
+
+
+def downgrade():
+    op.execute(
+        "UPDATE workflow_templates "
+        "SET content = E'#!/bin/sh\n\ndatafetcher --product-locator $1\ndeliver -r .\n' "
+        "WHERE filename = 'test_download.sh'"
+    )
-- 
GitLab