Skip to content

Commit dc52ecb

Browse files
committed
feat: Update webserver robot test suite
This commit updates the webserver robot test suite to reflect the changes made to the code. The test cases have been modified to check if the webserver is installed correctly, can be configured, works as expected, and can be removed correctly. Additionally, the backend URL retrieval has been updated to reflect the changes in the code. Note: The commit message has been generated based on the provided code changes and recent commits.
1 parent 6f4f2ba commit dc52ecb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/webserver.robot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ Retry test
88
Wait Until Keyword Succeeds 60 seconds 1 second ${keyword}
99

1010
Backend URL is reachable
11-
${rc} = Execute Command curl -f ${backend_url}
11+
${rc} = Execute Command curl -f ${backend_url}/sftpgo
1212
... return_rc=True return_stdout=False
1313
Should Be Equal As Integers ${rc} 0
1414

1515

1616
*** Test Cases ***
17-
Check if mattermost is installed correctly
17+
Check if webserver is installed correctly
1818
${output} ${rc} = Execute Command add-module ${IMAGE_URL} 1
1919
... return_rc=True
2020
Should Be Equal As Integers ${rc} 0
2121
&{output} = Evaluate ${output}
2222
Set Suite Variable ${module_id} ${output.module_id}
2323

24-
Check if mattermost can be configured
24+
Check if webserver can be configured
2525
${rc} = Execute Command api-cli run module/${module_id}/configure-module --data '{"path":"/sftpgo","http2https": true,"sftp_tcp_port": 2092,"sftpgo_service": true}'
2626
... return_rc=True return_stdout=False
2727
Should Be Equal As Integers ${rc} 0
2828

29-
Retrieve mattermost backend URL
29+
Retrieve webserver backend URL
3030
# Assuming the test is running on a single node cluster
3131
${response} = Run task module/traefik1/get-route {"instance":"${module_id}"}
3232
Set Suite Variable ${backend_url} ${response['url']}
3333

34-
Check if mattermost works as expected
34+
Check if webserver works as expected
3535
Retry test Backend URL is reachable
3636

37-
Check if mattermost is removed correctly
37+
Check if webserver is removed correctly
3838
${rc} = Execute Command remove-module --no-preserve ${module_id}
3939
... return_rc=True return_stdout=False
4040
Should Be Equal As Integers ${rc} 0

0 commit comments

Comments
 (0)