Skip to content

Commit 579347a

Browse files
stormivxgmichel
authored andcommitted
Add firstboot test
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
1 parent 5b415d1 commit 579347a

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

tests/xapi/firstboot/__init__.py

Whitespace-only changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
3+
# Requirements:
4+
# From --hosts parameter:
5+
# - A XCP-ng >= 8.2 host
6+
7+
FIRSTBOOT_FILES = [
8+
'ran-control-domain-params-init',
9+
'ran-create-guest-templates',
10+
'ran-generate-iscsi-iqn',
11+
'ran-network-init',
12+
'ran-storage-init',
13+
]
14+
15+
FIRSTBOOT_DIR = '/var/lib/misc'
16+
17+
def test_firstboot_ran(host):
18+
for name in FIRSTBOOT_FILES:
19+
filepath = os.path.join(FIRSTBOOT_DIR, name)
20+
assert host.file_exists(filepath)

0 commit comments

Comments
 (0)