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
Guillaume Hervier
slapos.core
Commits
b06a4f05
Commit
b06a4f05
authored
Oct 31, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factorise and simplify.
parent
ebf27837
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
24 deletions
+8
-24
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCoreInstanceSlapInterfaceWorkflow.py
...mplateItem/testSlapOSCoreInstanceSlapInterfaceWorkflow.py
+7
-23
master/bt5/slapos_cloud/bt/revision
master/bt5/slapos_cloud/bt/revision
+1
-1
No files found.
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCoreInstanceSlapInterfaceWorkflow.py
View file @
b06a4f05
...
...
@@ -17,7 +17,7 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
title
=
self
.
generateNewSoftwareTitle
(),
reference
=
"TESTHS-%s"
%
self
.
generateNewId
(),
)
kw
=
dict
(
self
.
request_
kw
=
dict
(
software_release
=
\
self
.
generateNewSoftwareReleaseUrl
(),
software_type
=
self
.
generateNewSoftwareType
(),
...
...
@@ -27,8 +27,8 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
software_title
=
hosting_subscription
.
getTitle
(),
state
=
'started'
)
hosting_subscription
.
requestStart
(
**
kw
)
hosting_subscription
.
requestInstance
(
**
kw
)
hosting_subscription
.
requestStart
(
**
self
.
request_
kw
)
hosting_subscription
.
requestInstance
(
**
self
.
request_
kw
)
self
.
instance
=
hosting_subscription
.
getPredecessorValue
()
self
.
tic
()
...
...
@@ -58,16 +58,8 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
def
test_bang_tree
(
self
):
self
.
login
(
self
.
instance
.
getReference
())
request_kw
=
dict
(
software_release
=
\
self
.
generateNewSoftwareReleaseUrl
(),
software_type
=
self
.
generateNewSoftwareType
(),
instance_xml
=
self
.
generateSafeXml
(),
sla_xml
=
self
.
generateSafeXml
(),
shared
=
False
,
software_title
=
'New %s'
%
self
.
generateNewId
(),
state
=
'started'
)
request_kw
=
self
.
request_kw
.
copy
()
request_kw
[
'software_title'
]
=
'New %s'
%
self
.
generateNewId
()
self
.
instance
.
requestInstance
(
**
request_kw
)
request_instance
=
self
.
instance
.
REQUEST
[
'request_instance'
]
self
.
instance
.
REQUEST
[
'request_instance'
]
=
None
...
...
@@ -134,16 +126,8 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
new_name
=
'New %s'
%
self
.
generateNewId
()
self
.
login
(
self
.
instance
.
getReference
())
request_kw
=
dict
(
software_release
=
\
self
.
generateNewSoftwareReleaseUrl
(),
software_type
=
self
.
generateNewSoftwareType
(),
instance_xml
=
self
.
generateSafeXml
(),
sla_xml
=
self
.
generateSafeXml
(),
shared
=
False
,
software_title
=
new_name
,
state
=
'started'
)
request_kw
=
self
.
request_kw
.
copy
()
request_kw
[
'software_title'
]
=
new_name
self
.
instance
.
requestInstance
(
**
request_kw
)
request_instance
=
self
.
instance
.
REQUEST
[
'request_instance'
]
...
...
master/bt5/slapos_cloud/bt/revision
View file @
b06a4f05
171
\ No newline at end of file
172
\ 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