mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-08-31 00:10:36 +02:00
Remove agent-start and agent-add test case
This commit is contained in:
parent
9cbcd8dd9c
commit
f924debaf7
1 changed files with 1 additions and 23 deletions
|
@ -24,28 +24,6 @@ teardown() {
|
|||
[[ "${output}" == *"can not be empty"* ]]
|
||||
}
|
||||
|
||||
@test "runs agent-start and agent-add" {
|
||||
export INPUT_REMOTE_PATH="some/remote/path"
|
||||
export INPUT_REMOTE_KEY="dummy"
|
||||
export INPUT_REMOTE_KEY_PASS="dummy"
|
||||
export GITHUB_ACTION="dummy"
|
||||
export INPUT_LEGACY_ALLOW_RSA_HOSTKEYS="false"
|
||||
export INPUT_SWITCHES=""
|
||||
export INPUT_REMOTE_PORT="22"
|
||||
export INPUT_RSH=""
|
||||
export INPUT_PATH=""
|
||||
export INPUT_REMOTE_USER="user"
|
||||
export INPUT_REMOTE_HOST="host"
|
||||
export GITHUB_WORKSPACE="/tmp"
|
||||
export DSN="user@host"
|
||||
export LOCAL_PATH="/tmp/"
|
||||
export INPUT_REMOTE_PATH="remote/"
|
||||
|
||||
run ./entrypoint.sh
|
||||
[[ "${output}" == *"agent started"* ]]
|
||||
[[ "${output}" == *"key added"* ]]
|
||||
}
|
||||
|
||||
@test "includes legacy RSA switches when allowed" {
|
||||
export INPUT_LEGACY_ALLOW_RSA_HOSTKEYS="true"
|
||||
export INPUT_REMOTE_PATH="remote/"
|
||||
|
@ -84,4 +62,4 @@ teardown() {
|
|||
|
||||
run ./entrypoint.sh
|
||||
[[ "${output}" != *"HostKeyAlgorithms=+ssh-rsa"* ]]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue