Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos
Commits
c3811055
Commit
c3811055
authored
Apr 19, 2024
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX
parent
43a43300
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
software/kvm/test/test.py
software/kvm/test/test.py
+17
-9
No files found.
software/kvm/test/test.py
View file @
c3811055
...
...
@@ -202,7 +202,9 @@ class KvmMixin:
return json.loads(
self.computer_partition.getConnectionParameterDict()['
_
'])
def getProcessInfo(self):
def getProcessInfo(self, kvm_additional_hash_file_list=None):
if kvm_additional_hash_file_list is None:
kvm_additional_hash_file_list = []
hash_value = generateHashFromFiles([
os.path.join(self.computer_partition_root_path, hash_file)
for hash_file in [
...
...
@@ -214,15 +216,12 @@ class KvmMixin:
os.path.join(self.slap.instance_directory, '
*
', '
bin
', '
kvm_raw
'))
self.assertEqual(1, len(kvm_raw_list)) # allow to work only with one
hash_file_list = [
# Note: order is important:
# * shall follow generated order in the hash_files
# * last shall be hash_existsing_files (software_release/buildout.cfg)
kvm_raw_list[0],
'
var
/
boot
-
image
-
url
-
select
/
boot
-
image
-
url
-
select
.
json
',
kvm_raw_list[0]] + kvm_additional_hash_file_list + [
'
software_release
/
buildout
.
cfg
'
]
kvm_partition = '
/
'.join(kvm_raw_list[0].split('
/
')[:-2])
kvm_hash_value = generateHashFromFiles([
os.path.join(
self.computer_partition_root_path
, hash_file)
os.path.join(
kvm_partition
, hash_file)
for hash_file in hash_file_list
])
with self.slap.instance_supervisor_rpc as supervisor:
...
...
@@ -299,6 +298,7 @@ class TestInstance(KVMTestCase, KvmMixin):
"""i0:6tunnel-10022-{hash}-on-watch RUNNING
i0:6tunnel-10080-{hash}-on-watch RUNNING
i0:6tunnel-10443-{hash}-on-watch RUNNING
i0:boot-image-url-list-updater-{hash} EXITED
i0:boot-image-url-select-updater-{hash} EXITED
i0:bootstrap-monitor EXITED
i0:certificate_authority-{hash}-on-watch RUNNING
...
...
@@ -311,7 +311,10 @@ i0:nginx-graceful EXITED
i0:nginx-on-watch RUNNING
i0:whitelist-domains-download-{hash} RUNNING
i0:whitelist-firewall-{hash} RUNNING""",
self.getProcessInfo()
self.getProcessInfo([
'
var
/
boot
-
image
-
url
-
list
/
boot
-
image
-
url
-
list
.
json
',
'
var
/
boot
-
image
-
url
-
select
/
boot
-
image
-
url
-
select
.
json
'
])
)
# assure that the default image is used
...
...
@@ -802,6 +805,8 @@ ir1:pbs_sshkeys_authority-on-watch RUNNING
ir2:6tunnel-10022-{hash}-on-watch RUNNING
ir2:6tunnel-10080-{hash}-on-watch RUNNING
ir2:6tunnel-10443-{hash}-on-watch RUNNING
ir2:boot-image-url-list-updater-{hash} EXITED
ir2:boot-image-url-select-updater-{hash} EXITED
ir2:bootstrap-monitor EXITED
ir2:certificate_authority-{hash}-on-watch RUNNING
ir2:crond-{hash}-on-watch RUNNING
...
...
@@ -829,7 +834,10 @@ ir3:resilient-web-takeover-httpd-on-watch RUNNING
ir3:resilient_sshkeys_authority-on-watch RUNNING
ir3:sshd-graceful EXITED
ir3:sshd-on-watch RUNNING""",
self.getProcessInfo()
self.getProcessInfo([
'
var
/
boot
-
image
-
url
-
list
/
boot
-
image
-
url
-
list
.
json
',
'
var
/
boot
-
image
-
url
-
select
/
boot
-
image
-
url
-
select
.
json
'
])
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment