From 7f1cbc97b91e30b9d5129d6b5cb1aff73aaff25c Mon Sep 17 00:00:00 2001 From: Twangboy Date: Mon, 27 Apr 2026 08:49:27 -0600 Subject: [PATCH] Fix failing Linux tests --- linux/svtminion.sh | 3 +-- .../3006.10/salt-3006.10-onedir-windows-amd64.zip | 1 - .../salt-3006.10rc1-onedir-windows-amd64.zip | 1 - .../salt-3006.9rc1-onedir-windows-amd64.zip | 1 + .../functional/test_get_salt_package_info.ps1 | 12 ++++++------ 5 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 tests/testarea/3006.10/salt-3006.10-onedir-windows-amd64.zip delete mode 100644 tests/testarea/3006.10rc1/salt-3006.10rc1-onedir-windows-amd64.zip create mode 100644 tests/testarea/3006.9rc1/salt-3006.9rc1-onedir-windows-amd64.zip diff --git a/linux/svtminion.sh b/linux/svtminion.sh index 80af033..74ee12c 100755 --- a/linux/svtminion.sh +++ b/linux/svtminion.sh @@ -403,7 +403,6 @@ _set_log_level() { } - # # _salt_onedir_dir_is_ga # @@ -423,7 +422,7 @@ _salt_onedir_dir_is_ga() { # _get_desired_salt_version_fn # # Get the appropriate desirted salt version based on salt_url_version, -# latest or specified input Salt version, 3008, 3006.10, 3008.0rc1 +# latest or specified input Salt version, 3008, 3006.9, 3008.0rc1 # and set salt_specific_version accordinly # # Note: 'latest' and four-digit major (e.g. 3006) choose the newest GA diff --git a/tests/testarea/3006.10/salt-3006.10-onedir-windows-amd64.zip b/tests/testarea/3006.10/salt-3006.10-onedir-windows-amd64.zip deleted file mode 100644 index 3445639..0000000 --- a/tests/testarea/3006.10/salt-3006.10-onedir-windows-amd64.zip +++ /dev/null @@ -1 +0,0 @@ -salt-3007.1-onedir-windows-amd64.zip diff --git a/tests/testarea/3006.10rc1/salt-3006.10rc1-onedir-windows-amd64.zip b/tests/testarea/3006.10rc1/salt-3006.10rc1-onedir-windows-amd64.zip deleted file mode 100644 index 3445639..0000000 --- a/tests/testarea/3006.10rc1/salt-3006.10rc1-onedir-windows-amd64.zip +++ /dev/null @@ -1 +0,0 @@ -salt-3007.1-onedir-windows-amd64.zip diff --git a/tests/testarea/3006.9rc1/salt-3006.9rc1-onedir-windows-amd64.zip b/tests/testarea/3006.9rc1/salt-3006.9rc1-onedir-windows-amd64.zip new file mode 100644 index 0000000..f7f4151 --- /dev/null +++ b/tests/testarea/3006.9rc1/salt-3006.9rc1-onedir-windows-amd64.zip @@ -0,0 +1 @@ +salt-3006.9rc1-onedir-windows-amd64.zip \ No newline at end of file diff --git a/tests/windows/functional/test_get_salt_package_info.ps1 b/tests/windows/functional/test_get_salt_package_info.ps1 index 9306ba3..fe8d565 100644 --- a/tests/windows/functional/test_get_salt_package_info.ps1 +++ b/tests/windows/functional/test_get_salt_package_info.ps1 @@ -75,7 +75,7 @@ function test_Get-SaltPackageInfo_local_major_version{ $base_url = "$($pwd.Path)\tests\testarea" $MinionVersion = "3006" $test = Get-SaltPackageInfo -MinionVersion $MinionVersion - if ( $test.version -ne "3006.10" ) { $failed = 1 } + if ( $test.version -ne "3006.9" ) { $failed = 1 } $exp_name = "salt-$($test.version)-onedir-windows-amd64.zip" $exp_url = "$base_url/$($test.version)/$exp_name" $failed = 0 @@ -86,8 +86,8 @@ function test_Get-SaltPackageInfo_local_major_version{ return $failed } -# testarea includes 3006.10 (GA) and 3006.10rc1 (prerelease). Global "latest" -# stays 3007.1; major "3006" picks GA 3006.10; exact "3006.10rc1" picks the RC dir. +# testarea has GA 3006.9 (highest 3006.x); prerelease 3006.9rc1 is separate. Global +# "latest" stays 3007.1; major "3006" picks GA 3006.9; exact "3006.9rc1" picks the RC dir. function test_Get-SaltPackageInfo_local_latest_unchanged_when_rc_not_highest_ga { $base_url = "$($pwd.Path)\tests\testarea" $MinionVersion = "latest" @@ -107,7 +107,7 @@ function test_Get-SaltPackageInfo_local_major_3006_resolves_to_ga_not_rc { $MinionVersion = "3006" $test = Get-SaltPackageInfo -MinionVersion $MinionVersion $failed = 0 - if ( $test.version -ne "3006.10" ) { $failed = 1 } + if ( $test.version -ne "3006.9" ) { $failed = 1 } $exp_name = "salt-$($test.version)-onedir-windows-amd64.zip" $exp_url = "$base_url/$($test.version)/$exp_name" if ( $test.file_name -ne $exp_name ) { $failed = 1 } @@ -118,10 +118,10 @@ function test_Get-SaltPackageInfo_local_major_3006_resolves_to_ga_not_rc { function test_Get-SaltPackageInfo_local_exact_rc_version { $base_url = "$($pwd.Path)\tests\testarea" - $MinionVersion = "3006.10rc1" + $MinionVersion = "3006.9rc1" $test = Get-SaltPackageInfo -MinionVersion $MinionVersion $failed = 0 - if ( $test.version -ne "3006.10rc1" ) { $failed = 1 } + if ( $test.version -ne "3006.9rc1" ) { $failed = 1 } $exp_name = "salt-$($test.version)-onedir-windows-amd64.zip" $exp_url = "$base_url/$($test.version)/$exp_name" if ( $test.file_name -ne $exp_name ) { $failed = 1 }