Skip to content

Commit

Permalink
Remove old tests introduced during rebasing.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Promislow <epromislow@suse.com>
  • Loading branch information
ericpromislow committed Jul 3, 2023
1 parent 74c9495 commit 8a3cb6b
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions bats/tests/preferences/list-settings-output.bats
Original file line number Diff line number Diff line change
Expand Up @@ -74,36 +74,6 @@ RD_USE_IMAGE_ALLOW_LIST=true
assert_output --partial '[HKEY_CURRENT_USER\SOFTWARE\Policies\Rancher Desktop\locked\application]'
}

@test 'generates registry output for hklm/defaults' {
for option in reg reg,hklm reg,hklm,defaults reg,defaults; do
run rdctl list-settings --output "$option"
assert_success
assert_output --partial '[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Rancher Desktop\defaults\application]'
done
}

@test 'generates registry output for hklm/locked' {
for option in reg,hklm,locked reg,locked; do
run rdctl list-settings --output "$option"
assert_success
assert_output --partial '[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Rancher Desktop\locked\application]'
done
}

@test 'generates registry output for hkcu/defaults' {
for option in reg,hkcu,defaults reg,hkcu; do
run rdctl list-settings --output "$option"
assert_success
assert_output --partial '[HKEY_CURRENT_USER\SOFTWARE\Policies\Rancher Desktop\defaults\application]'
done
}

@test 'generates registry output for hkcu/locked' {
run rdctl list-settings --output reg,hkcu,locked
assert_success
assert_output --partial '[HKEY_CURRENT_USER\SOFTWARE\Policies\Rancher Desktop\locked\application]'
}

# The result of the `assert_output` for heredocuments looks suspicious (I see it always passing),

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error test

heredocuments is not a recognized word. (unrecognized-spelling)
# but this serves to document the expected full reg output
@test 'generates registry output' {
Expand Down

0 comments on commit 8a3cb6b

Please sign in to comment.