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
Boxiang Sun
slapos.core
Commits
46a62920
Commit
46a62920
authored
Mar 11, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Attempt to test slave on CDN Subscription Scenarion
parent
18f817c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
1 deletion
+41
-1
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionCDNScenario.py
...components/test.erp5.testSlapOSSubscriptionCDNScenario.py
+41
-1
No files found.
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionCDNScenario.py
View file @
46a62920
...
@@ -44,11 +44,51 @@ class TestSlapOSSubscriptionCDNScenarioMixin(TestSlapOSSubscriptionScenarioMixin
...
@@ -44,11 +44,51 @@ class TestSlapOSSubscriptionCDNScenarioMixin(TestSlapOSSubscriptionScenarioMixin
self
.
login
()
self
.
login
()
# Overwrite default Subscription Condition.
# Overwrite default Subscription Condition.
self
.
createSubscriptionCondition
()
self
.
createSubscriptionCondition
(
slave
=
True
)
# some preparation
# some preparation
self
.
logout
()
self
.
logout
()
def
createPublicServerForAdminUser
(
self
):
subscription_server
=
TestSlapOSSubscriptionScenarioMixin
.
createPublicServerForAdminUser
(
self
)
self
.
login
()
contract
=
self
.
admin_user
.
Person_generateCloudContract
(
batch
=
True
)
if
contract
.
getValidationState
()
in
[
"draft"
,
"invalidated"
]:
contract
.
validate
()
self
.
tic
()
# now instantiate it on computer and set some nice connection dict
self
.
setServerOpenPersonal
(
subscription_server
)
self
.
login
(
self
.
admin_user
.
getUserId
())
self
.
personRequestInstanceNotReady
(
software_release
=
self
.
subscription_condition
.
getUrlString
(),
software_type
=
self
.
subscription_condition
.
getSourceReference
(),
partition_reference
=
"InstanceForSlave%s"
%
self
.
new_id
)
self
.
stepCallSlaposAllocateInstanceAlarm
()
self
.
tic
()
self
.
personRequestInstance
(
software_release
=
self
.
subscription_condition
.
getUrlString
(),
software_type
=
self
.
subscription_condition
.
getSourceReference
(),
partition_reference
=
"InstanceForSlave%s"
%
self
.
new_id
)
# now instantiate it on computer and set some nice connection dict
self
.
simulateSlapgridCP
(
subscription_server
)
self
.
tic
()
self
.
login
()
self
.
setServerOpenSubscription
(
subscription_server
)
self
.
logout
()
return
subscription_server
class
TestSlapOSSubscriptionCDNScenario
(
TestSlapOSSubscriptionCDNScenarioMixin
):
class
TestSlapOSSubscriptionCDNScenario
(
TestSlapOSSubscriptionCDNScenarioMixin
):
def
test_subscription_scenario_with_single_vm
(
self
):
def
test_subscription_scenario_with_single_vm
(
self
):
...
...
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