Skip to content

Commit

Permalink
refactor(tests): reorganize webtop test cases
Browse files Browse the repository at this point in the history
Split webtop tests into separate files for better organization.
Renamed `webtop.robot` to `01_webtop_add-module.robot` and moved the
removal test case to a new file `99_webtop_remove-modules.robot`.
  • Loading branch information
Amygos committed Jan 7, 2025
1 parent 95eca68 commit 94ebee5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/webtop.robot → tests/01_webtop_add-module.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ Check if webtop is installed correctly
Should Be Equal As Integers ${rc} 0
&{output} = Evaluate ${output}
Set Suite Variable ${module_id} ${output.module_id}

Check if webtop is removed correctly
${rc} = Execute Command remove-module --no-preserve ${module_id}
... return_rc=True return_stdout=False
Should Be Equal As Integers ${rc} 0
8 changes: 8 additions & 0 deletions tests/99_webtop_remove-modules.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*** Settings ***
Library SSHLibrary

*** Test Cases ***
Check if webtop is removed correctly
${rc} = Execute Command remove-module --no-preserve ${module_id}
... return_rc=True return_stdout=False
Should Be Equal As Integers ${rc} 0

0 comments on commit 94ebee5

Please sign in to comment.