Skip to content
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

test: enhance SCP plugin with folder ignore and error handling #192

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

appleboy
Copy link
Owner

@appleboy appleboy commented Jun 1, 2024

  • Add TestIgnoreFolder function to test ignoring specific folders during SCP
  • Initialize and terminate ssh-agent if SSH_AUTH_SOCK is set
  • Lookup user drone-scp and handle potential errors
  • Configure Plugin with specific settings for SCP operation
  • Execute plugin.Exec() and assert no errors
  • Verify that certain files do not exist in the target directory after SCP operation

fix #190

- Add `TestIgnoreFolder` function to test ignoring specific folders during SCP
- Initialize and terminate `ssh-agent` if `SSH_AUTH_SOCK` is set
- Lookup user `drone-scp` and handle potential errors
- Configure `Plugin` with specific settings for SCP operation
- Execute `plugin.Exec()` and assert no errors
- Verify that certain files do not exist in the target directory after SCP operation

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 87c7223 into master Jun 1, 2024
7 checks passed
@appleboy appleboy deleted the ignore branch June 1, 2024 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to ignore .git folder from source
1 participant