bhirsz commented on code in PR #25934:
URL: https://github.com/apache/airflow/pull/25934#discussion_r954649131
##########
tests/system/providers/google/cloud/transfers/example_gcs_to_sftp.py:
##########
@@ -46,12 +53,35 @@
catchup=False,
tags=['example', 'gcs'],
) as dag:
+ create_bucket = GCSCreateBucketOperator(
+ task_id="create_bucket", bucket_name=BUCKET_NAME, project_id=PROJECT_ID
+ )
+
+ upload_file_1 = LocalFilesystemToGCSOperator(
Review Comment:
I realized one of the operators has a "move_object" parameter which will
delete files from the source directory. That's why we need all three separate
uploads to cover all test scenarios:
Copy single file - 1st upload
Move file from the directory (removing source) - 2nd upload
Copy file from the directory when preserving dir structure - 3rd upload
Copy file from the directory without preserving dir structure - 3rd upload
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]