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
Roque
slapos.core
Commits
6b879110
Commit
6b879110
authored
Apr 06, 2023
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Move tests to jIO API add legacy Tests class for SlapTool
parent
62f85140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionCDNScenario.py
...components/test.erp5.testSlapOSSubscriptionCDNScenario.py
+11
-4
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionScenario.py
...al_components/test.erp5.testSlapOSSubscriptionScenario.py
+9
-3
No files found.
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionCDNScenario.py
View file @
6b879110
...
...
@@ -20,6 +20,7 @@
##############################################################################
from
erp5.component.test.testSlapOSSubscriptionScenario
import
TestSlapOSSubscriptionScenarioMixin
from
erp5.component.test.SlapOSTestCaseDefaultScenarioMixin
import
DefaultScenarioMixinSlapTool
class
TestSlapOSSubscriptionCDNScenarioMixin
(
TestSlapOSSubscriptionScenarioMixin
):
...
...
@@ -66,18 +67,18 @@ class TestSlapOSSubscriptionCDNScenarioMixin(TestSlapOSSubscriptionScenarioMixin
self
.
login
(
self
.
admin_user
.
getUserId
())
self
.
personRequestInstanceNotReady
(
software_release
=
self
.
subscription_condition
.
getUrlString
(),
software_release
_uri
=
self
.
subscription_condition
.
getUrlString
(),
software_type
=
self
.
subscription_condition
.
getSourceReference
(),
partition_referenc
e
=
"InstanceForSlave%s"
%
self
.
new_id
titl
e
=
"InstanceForSlave%s"
%
self
.
new_id
)
self
.
stepCallSlaposAllocateInstanceAlarm
()
self
.
tic
()
self
.
personRequestInstance
(
software_release
=
self
.
subscription_condition
.
getUrlString
(),
software_release
_uri
=
self
.
subscription_condition
.
getUrlString
(),
software_type
=
self
.
subscription_condition
.
getSourceReference
(),
partition_referenc
e
=
"InstanceForSlave%s"
%
self
.
new_id
titl
e
=
"InstanceForSlave%s"
%
self
.
new_id
)
# now instantiate it on compute_node and set some nice connection dict
...
...
@@ -117,3 +118,9 @@ class TestSlapOSSubscriptionCDNScenario(TestSlapOSSubscriptionCDNScenarioMixin):
# Messages are in chinese, when subscribed via chinese website. Even if the english language is
# english
self
.
_test_subscription_scenario_with_existing_user
(
amount
=
1
,
language
=
"zh"
)
class
TestSlapOSSubscriptionCDNScenarioSlapTool
(
TestSlapOSSubscriptionCDNScenario
,
DefaultScenarioMixinSlapTool
):
pass
\ No newline at end of file
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionScenario.py
View file @
6b879110
...
...
@@ -19,7 +19,7 @@
#
##############################################################################
from
erp5.component.test.SlapOSTestCaseDefaultScenarioMixin
import
DefaultScenarioMixin
from
erp5.component.test.SlapOSTestCaseDefaultScenarioMixin
import
DefaultScenarioMixin
,
DefaultScenarioMixinSlapTool
from
erp5.component.test.SlapOSTestCaseMixin
import
changeSkin
from
Products.ERP5Type.tests.utils
import
createZODBPythonScript
...
...
@@ -1622,9 +1622,9 @@ return dict(vads_url_already_registered="%s/already_registered" % (payment_trans
try
:
self
.
login
(
self
.
normal_user
.
getUserId
())
self
.
personRequestInstanceNotReady
(
software_release
=
self
.
subscription_condition
.
getUrlString
(),
software_release
_uri
=
self
.
subscription_condition
.
getUrlString
(),
software_type
=
"default"
,
partition_referenc
e
=
"_test_subscription_scenario_with_existing_user_extra_instance"
,
titl
e
=
"_test_subscription_scenario_with_existing_user_extra_instance"
,
)
self
.
non_subscription_related_instance_amount
=
1
...
...
@@ -1838,3 +1838,9 @@ class TestSlapOSSubscriptionScenario(TestSlapOSSubscriptionScenarioMixin):
# Messages are in english, when subscribed via english website. Even if the chinese language is
# defined at user level.
self
.
_test_subscription_scenario_with_existing_user
(
amount
=
1
,
language
=
"zh"
)
class
TestSlapOSSubscriptionScenarioSlapTool
(
TestSlapOSSubscriptionScenario
,
DefaultScenarioMixinSlapTool
):
pass
\ No newline at end of file
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