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

Commits on Jun 1, 2024

  1. test: enhance SCP plugin with folder ignore and error handling

    - 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 committed Jun 1, 2024
    Configuration menu
    Copy the full SHA
    7ca568a View commit details
    Browse the repository at this point in the history