Move gitea partial clone test
This moves the gitea partial clone test from our setup playbook into testinfra/test_gitea.py. We should avoid asserting too much state and behavior in the ansible as it makes the split between testinfra and ansible more confusing. To address this we move this behavior check into testinfra where it belongs. Change-Id: I6a649bc380f850425c51e9b4632c798a23ab0e0e
This commit is contained in:
parent
6fc6c60658
commit
d4910d18c0
@ -57,10 +57,6 @@
|
|||||||
# user.
|
# user.
|
||||||
become: true
|
become: true
|
||||||
become_user: zuul
|
become_user: zuul
|
||||||
- name: Clone system-config to check that partial clones aren't breaking stuff
|
|
||||||
shell: |
|
|
||||||
cd /tmp
|
|
||||||
GIT_SSL_NO_VERIFY=1 git clone --filter=blob:none https://localhost:3081/opendev/system-config test-system-config-clone
|
|
||||||
|
|
||||||
- name: Run rename playbook
|
- name: Run rename playbook
|
||||||
import_playbook: rename_repos.yaml
|
import_playbook: rename_repos.yaml
|
||||||
|
@ -86,6 +86,15 @@ def test_project_clone(host):
|
|||||||
assert "Cloning into '/tmp/disk-image-builder'..." in cmd.stderr
|
assert "Cloning into '/tmp/disk-image-builder'..." in cmd.stderr
|
||||||
assert cmd.succeeded
|
assert cmd.succeeded
|
||||||
|
|
||||||
|
def test_partial_project_clone(host):
|
||||||
|
cmd = host.run(
|
||||||
|
'GIT_SSL_NO_VERIFY=1 '
|
||||||
|
'git clone --filter=blob:none '
|
||||||
|
'https://localhost:3081/opendev/system-config '
|
||||||
|
'/tmp/test-system-config-clone')
|
||||||
|
assert "Cloning into '/tmp/test-system-config-clone'..." in cmd.stderr
|
||||||
|
assert cmd.succeeded
|
||||||
|
|
||||||
def test_gitea_screenshots(host):
|
def test_gitea_screenshots(host):
|
||||||
|
|
||||||
shots = (
|
shots = (
|
||||||
|
Loading…
Reference in New Issue
Block a user