-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FTPSFileTransmitOperator #28318
Add FTPSFileTransmitOperator #28318
Conversation
924a6c9
to
008fcd5
Compare
ca524b1
to
fdfa6bf
Compare
ftp_conn_id="ftps_default", | ||
local_filepath="/tmp/filepath", | ||
remote_filepath="/remote_tmp/filepath", | ||
operation=FTPOperation.PUT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to double check this is intentional and not supposed to be FTPSOperation.PUT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that is intentional, as FTPS still uses the same operations (PUT and GET) as FTPFileTransmitOperator. On second thought, I was wondering if that name is misleading. Do you think I should change the name to something like Operation
or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be alright.
Left a last question. If that's good to go then I think it looks good. |
fdfa6bf
to
ad93964
Compare
ad93964
to
914a6fc
Compare
Hi everyone, I was wondering if I could get some additional reviews on this PR? No rush, but was just wondering if these changes look good or if there is anything else that should be added. |
The corresponding issue: #26531
I have added the
FTPSFileTransmitOperator
, which allows for writing to files in FTPS servers and downloading them to the local directory. I have also updated the docs and system tests for this new operator.I have also added a few more tests in the
tests/providers/ftp/operators
directory. Because the only difference between theFTPFileTransmitOperator
andFTPSFileTransmitOperator
is the use of theFTPSHook
(as opposed to theFTPHook
), I only added unit tests that tested the functionality and use of theFTPSHook
within theFTPSFileTransmitOperator
.