Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Léo-Paul Géneau
slapos.core
Commits
d7cf0323
Commit
d7cf0323
authored
Aug 09, 2022
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos: Make test_object pass
parent
d63edd45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
slapos/tests/test_object.py
slapos/tests/test_object.py
+13
-6
No files found.
slapos/tests/test_object.py
View file @
d7cf0323
...
...
@@ -129,7 +129,6 @@ class MasterMixin(BasicMixin, unittest.TestCase):
self
,
software_release_url
,
partition_id
=
None
,
slap_computer_partition
=
None
,
retention_delay
=
None
,
):
"""
...
...
@@ -145,10 +144,18 @@ class MasterMixin(BasicMixin, unittest.TestCase):
if
partition_id
is
None
:
partition_id
=
'mypartition'
if
slap_computer_partition
is
None
:
slap_computer_partition
=
SlapComputerPartition
(
computer_id
=
'bidon'
,
partition_id
=
partition_id
)
software_instance
=
{
"reference"
:
partition_id
,
"compute_node_id"
:
'bidon'
,
"portal_type"
:
"Software Instance"
,
"compute_partition_id"
:
partition_id
,
"state"
:
"stopped"
,
"software_type"
:
None
,
"parameters"
:
{},
"processing_timestamp"
:
0
,
"ip_list"
:
[],
"full_ip_list"
:
[],
}
instance_path
=
os
.
path
.
join
(
self
.
instance_root
,
partition_id
)
os
.
mkdir
(
instance_path
)
...
...
@@ -165,7 +172,7 @@ class MasterMixin(BasicMixin, unittest.TestCase):
supervisor_configuration_path
,
partition_id
),
supervisord_socket
=
os
.
path
.
join
(
supervisor_configuration_path
,
'supervisor.sock'
),
computer_partition
=
s
lap_computer_partition
,
computer_partition
=
s
oftware_instance
,
computer_id
=
'bidon'
,
partition_id
=
partition_id
,
server_url
=
'bidon'
,
...
...
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