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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
8dd2db04
Commit
8dd2db04
authored
Jan 18, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_pdm: lint test
parent
576b7681
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
master/bt5/slapos_pdm/TestTemplateItem/portal_components/test.erp5.testSlapOSPDMCreateUpgradeDecisionSkins.py
...ents/test.erp5.testSlapOSPDMCreateUpgradeDecisionSkins.py
+15
-15
No files found.
master/bt5/slapos_pdm/TestTemplateItem/portal_components/test.erp5.testSlapOSPDMCreateUpgradeDecisionSkins.py
View file @
8dd2db04
...
@@ -30,7 +30,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -30,7 +30,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
preference
.
setPreferredCloudContractEnabled
(
True
)
preference
.
setPreferredCloudContractEnabled
(
True
)
self
.
tic
()
self
.
tic
()
self
.
project
=
self
.
addProject
()
self
.
project
=
self
.
addProject
()
self
.
_makeComputeNode
()
self
.
_makeComputeNode
(
self
.
project
)
self
.
_makeSoftwareProductCatalog
(
self
.
project
)
self
.
_makeSoftwareProductCatalog
(
self
.
project
)
self
.
_installSoftwareOnTheComputeNode
([
self
.
_installSoftwareOnTheComputeNode
([
self
.
previous_software_release
.
getUrlString
(),
self
.
previous_software_release
.
getUrlString
(),
...
@@ -168,8 +168,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -168,8 +168,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
def
testInstanceTree_createUpgradeDecision_no_newer
(
self
):
def
testInstanceTree_createUpgradeDecision_no_newer
(
self
):
person
=
self
.
_makePerson
()
person
=
self
.
_makePerson
(
self
.
project
)
compute_node
,
_
=
self
.
_makeComputeNode
(
owner
=
person
)
compute_node
,
_
=
self
.
_makeComputeNode
(
self
.
project
)
#,
owner=person)
self
.
_makeComputePartitions
(
compute_node
)
self
.
_makeComputePartitions
(
compute_node
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_release
=
self
.
_requestSoftwareRelease
(
software_release
=
self
.
_requestSoftwareRelease
(
...
@@ -197,8 +197,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -197,8 +197,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self
.
assertEqual
(
upgrade_decision
,
None
)
self
.
assertEqual
(
upgrade_decision
,
None
)
def
testInstanceTree_createUpgradeDecision_closed_compute_node
(
self
):
def
testInstanceTree_createUpgradeDecision_closed_compute_node
(
self
):
person
=
self
.
_makePerson
()
person
=
self
.
_makePerson
(
self
.
project
)
compute_node
,
_
=
self
.
_makeComputeNode
(
owner
=
person
,
allocation_scope
=
"close/outdated"
)
compute_node
,
_
=
self
.
_makeComputeNode
(
self
.
project
,
allocation_scope
=
"close/outdated"
)
self
.
_makeComputePartitions
(
compute_node
)
self
.
_makeComputePartitions
(
compute_node
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_release
=
self
.
_requestSoftwareRelease
(
software_release
=
self
.
_requestSoftwareRelease
(
...
@@ -233,8 +233,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -233,8 +233,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
getUrlString
())
getUrlString
())
def
testInstanceTree_createUpgradeDecision_create_once_transaction
(
self
):
def
testInstanceTree_createUpgradeDecision_create_once_transaction
(
self
):
person
=
self
.
_makePerson
()
person
=
self
.
_makePerson
(
self
.
project
)
compute_node
,
_
=
self
.
_makeComputeNode
(
owner
=
person
,
allocation_scope
=
"open/personal"
)
compute_node
,
_
=
self
.
_makeComputeNode
(
self
.
project
,
allocation_scope
=
"open/personal"
)
self
.
_makeComputePartitions
(
compute_node
)
self
.
_makeComputePartitions
(
compute_node
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_release
=
self
.
_requestSoftwareRelease
(
software_release
=
self
.
_requestSoftwareRelease
(
...
@@ -267,8 +267,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -267,8 +267,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self
.
assertEqual
(
up_decision
,
None
)
self
.
assertEqual
(
up_decision
,
None
)
def
testInstanceTree_createUpgradeDecision
(
self
):
def
testInstanceTree_createUpgradeDecision
(
self
):
person
=
self
.
_makePerson
()
person
=
self
.
_makePerson
(
self
.
project
)
compute_node
,
_
=
self
.
_makeComputeNode
(
owner
=
person
)
compute_node
,
_
=
self
.
_makeComputeNode
(
self
.
project
)
self
.
_makeComputePartitions
(
compute_node
)
self
.
_makeComputePartitions
(
compute_node
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_release
=
self
.
_requestSoftwareRelease
(
software_release
=
self
.
_requestSoftwareRelease
(
...
@@ -308,8 +308,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -308,8 +308,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
def
testInstanceTree_createUpgradeDecision_with_exist
(
self
):
def
testInstanceTree_createUpgradeDecision_with_exist
(
self
):
person
=
self
.
_makePerson
()
person
=
self
.
_makePerson
(
self
.
project
)
compute_node
,
_
=
self
.
_makeComputeNode
(
owner
=
person
)
compute_node
,
_
=
self
.
_makeComputeNode
(
self
.
project
)
self
.
_makeComputePartitions
(
compute_node
)
self
.
_makeComputePartitions
(
compute_node
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_release
=
self
.
_requestSoftwareRelease
(
software_release
=
self
.
_requestSoftwareRelease
(
...
@@ -348,8 +348,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -348,8 +348,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
software_release3
.
getUrlString
())
software_release3
.
getUrlString
())
def
testInstanceTree_createUpgradeDecision_rejected
(
self
):
def
testInstanceTree_createUpgradeDecision_rejected
(
self
):
person
=
self
.
_makePerson
()
person
=
self
.
_makePerson
(
self
.
project
)
compute_node
,
_
=
self
.
_makeComputeNode
(
owner
=
person
)
compute_node
,
_
=
self
.
_makeComputeNode
(
self
.
project
)
self
.
_makeComputePartitions
(
compute_node
)
self
.
_makeComputePartitions
(
compute_node
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_release
=
self
.
_requestSoftwareRelease
(
software_release
=
self
.
_requestSoftwareRelease
(
...
@@ -387,8 +387,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
...
@@ -387,8 +387,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self
.
assertEqual
(
up_decision
,
None
)
self
.
assertEqual
(
up_decision
,
None
)
def
testInstanceTree_createUpgradeDecision_rejected_2
(
self
):
def
testInstanceTree_createUpgradeDecision_rejected_2
(
self
):
person
=
self
.
_makePerson
()
person
=
self
.
_makePerson
(
self
.
project
)
compute_node
,
_
=
self
.
_makeComputeNode
(
owner
=
person
)
compute_node
,
_
=
self
.
_makeComputeNode
(
self
.
project
)
#,
owner=person)
self
.
_makeComputePartitions
(
compute_node
)
self
.
_makeComputePartitions
(
compute_node
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
)
software_release
=
self
.
_requestSoftwareRelease
(
software_release
=
self
.
_requestSoftwareRelease
(
...
...
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