-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CLDX-232): updates for windows signing host (#778)
-The windows signing host has been migrated to aws. This change modifies the cleanup line and utilizes the windows host parameter Signed-off-by: Scott Wickersham <[email protected]>
- Loading branch information
Showing
3 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ spec: | |
expected_scp_windows_args="-i /root/.ssh/id_rsa -o UserKnownHostsFile=/root/.ssh/known_hosts " | ||
expected_scp_windows_args+="-P 22 /tmp/windows_signing_script_file.bat " | ||
expected_scp_windows_args+="[email protected]:" | ||
expected_scp_windows_args+="C:/Users/Administrator/AppData/Local/Temp/windows_signing_script_file.bat" | ||
expected_scp_windows_args+="C:/Users/windowsusername/AppData/Local/Temp/windows_signing_script_file.bat" | ||
if [[ "$scp_windows_args" == "$expected_scp_windows_args" ]]; then | ||
echo "Test passed: Windows scp command called with correct arguments." | ||
|
@@ -196,7 +196,7 @@ spec: | |
expected_scp="-i /root/.ssh/id_rsa -o UserKnownHostsFile=/root/.ssh/known_hosts -P 22 \ | ||
/tmp/windows_signing_script_file.bat \ | ||
[email protected]:\ | ||
C:/Users/Administrator/AppData/Local/Temp/windows_signing_script_file.bat" | ||
C:/Users/windowsusername/AppData/Local/Temp/windows_signing_script_file.bat" | ||
if [[ "$mock_scp_1" == "$expected_scp" ]]; then | ||
echo "Test passed: First SCP command is correct." | ||
|
@@ -210,7 +210,7 @@ spec: | |
# check second scp command | ||
mock_scp_2=$(cat "$(workspaces.data.path)/mock_scp_2.txt") | ||
expected_scp_2="-i /root/.ssh/id_rsa -o UserKnownHostsFile=/root/.ssh/known_hosts -P 22 \ | ||
[email protected]:C:/Users/Administrator/AppData/Local/Temp/12345678/digest.txt \ | ||
[email protected]:C:/Users/windowsusername/AppData/Local/Temp/12345678/digest.txt \ | ||
/tekton/results/signedWindowsDigest" | ||
if [[ "$mock_scp_2" == "$expected_scp_2" ]]; then | ||
|