Skip to content

Commit

Permalink
Merge pull request #22 from NethServer/fixTest
Browse files Browse the repository at this point in the history
Update collabora.robot test configuration
  • Loading branch information
stephdl authored May 16, 2024
2 parents 5bf5412 + c4cbe0f commit 2da49c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clean-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
steps:
- uses: NethServer/ns8-github-actions/.github/actions/delete-image@v1
with:
images: "kickstart"
images: "collabora"
delete_image_token: ${{ secrets.IMAGES_CLEANUP_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: NethServer/ns8-github-actions/.github/workflows/module-info.yml@main
run_tests:
needs: module
uses: NethServer/ns8-github-actions/.github/workflows/test-on-ubuntu-runner.yml@main
uses: NethServer/ns8-github-actions/.github/workflows/test-on-digitalocean-infra.yml@main
with:
args: "ghcr.io/${{needs.module.outputs.owner}}/${{needs.module.outputs.name}}:${{needs.module.outputs.tag}}"
repo_ref: ${{needs.module.outputs.sha}}
Expand Down
11 changes: 5 additions & 6 deletions tests/collabora.robot
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ Check if collabora is installed correctly
Set Suite Variable ${module_id} ${output.module_id}

Check if collabora can be configured
${rc} = Execute Command api-cli run module/${module_id}/configure-module --data '{}'
... return_rc=True return_stdout=False
Should Be Equal As Integers ${rc} 0

Check if collabora works as expected
${rc} = Execute Command curl -f http://127.0.0.1/collabora/
${rc} = Execute Command api-cli run module/${module_id}/configure-module --data '{
"host": "collabora.nethserver.org",
"http2https": true,
"lets_encrypt": true,
"admin_password": "password"}'
... return_rc=True return_stdout=False
Should Be Equal As Integers ${rc} 0

Expand Down
25 changes: 0 additions & 25 deletions tests/kickstart.robot

This file was deleted.

0 comments on commit 2da49c3

Please sign in to comment.