Skip to content

Commit

Permalink
Dev: behave: add a function test for the previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Jul 20, 2023
1 parent 7778521 commit a470e9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/features/healthcheck.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ Feature: healthcheck detect and fix problems in a crmsh deployment
# And File "~hacluster/.ssh/id_rsa" exists on "hanode1"
# And File "~hacluster/.ssh/id_rsa" exists on "hanode2"
# And File "~hacluster/.ssh/id_rsa" exists on "hanode3"

# skip non-root as behave_agent is not able to run commands interactively with non-root sudoer
@skip_non_root
@clean
Scenario: An upgrade_seq file in ~hacluster/crmsh/ will be migrated to /var/lib/crmsh (bsc#1213050)
When Run "mv /var/lib/crmsh ~hacluster/" on "hanode1"
Then File "~hacluster/crmsh/upgrade_seq" exists on "hanode1"
When Run "crm cluster status" on "hanode1"
Then File "/var/lib/crmsh/upgrade_seq" exists on "hanode1"

0 comments on commit a470e9a

Please sign in to comment.