Merge "system-config-run-borg-backup: add jammy test host"
This commit is contained in:
commit
00df4d06c0
@ -20,6 +20,7 @@ groups:
|
||||
backup:
|
||||
- backup-test01.opendev.org
|
||||
- backup-test02.opendev.org
|
||||
- backup-test03.opendev.org
|
||||
|
||||
borg-backup-server:
|
||||
- borg-backup01.region.provider.opendev.org
|
||||
@ -27,6 +28,7 @@ groups:
|
||||
borg-backup:
|
||||
- borg-backup-test01.opendev.org
|
||||
- borg-backup-test02.opendev.org
|
||||
- borg-backup-test03.opendev.org
|
||||
|
||||
kerberos-kdc:
|
||||
- kdc-primary.opendev.org
|
||||
|
@ -17,7 +17,8 @@ import pytest
|
||||
|
||||
testinfra_hosts = ['borg-backup01.region.provider.opendev.org',
|
||||
'borg-backup-test01.opendev.org',
|
||||
'borg-backup-test02.opendev.org']
|
||||
'borg-backup-test02.opendev.org',
|
||||
'borg-backup-test03.opendev.org']
|
||||
|
||||
|
||||
def test_borg_installed(host):
|
||||
@ -35,7 +36,9 @@ def test_borg_server_users(host):
|
||||
if hostname.startswith('borg-backup-test'):
|
||||
pytest.skip()
|
||||
|
||||
for username in 'borg-borg-backup-test01', 'borg-borg-backup-test02':
|
||||
for username in ('borg-borg-backup-test01',
|
||||
'borg-borg-backup-test02',
|
||||
'borg-borg-backup-test03'):
|
||||
homedir = os.path.join('/opt/backups/', username)
|
||||
borg_repo = os.path.join(homedir, 'backup')
|
||||
authorized_keys = os.path.join(homedir, '.ssh', 'authorized_keys')
|
||||
|
@ -382,6 +382,8 @@
|
||||
label: ubuntu-focal
|
||||
- name: borg-backup-test02.opendev.org
|
||||
label: ubuntu-bionic
|
||||
- name: borg-backup-test03.opendev.org
|
||||
label: ubuntu-jammy
|
||||
vars:
|
||||
run_playbooks:
|
||||
- playbooks/service-borg-backup.yaml
|
||||
@ -406,7 +408,9 @@
|
||||
borg-backup-test02.opendev.org:
|
||||
host_copy_output:
|
||||
'/var/log/borg-backup-borg-backup01.region.provider.opendev.org.log': logs
|
||||
|
||||
borg-backup-test03.opendev.org:
|
||||
host_copy_output:
|
||||
'/var/log/borg-backup-borg-backup01.region.provider.opendev.org.log': logs
|
||||
|
||||
- job:
|
||||
name: system-config-run-mirror-base
|
||||
|
Loading…
Reference in New Issue
Block a user