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
Jérome Perrin
slapos.core
Commits
75b8852f
Commit
75b8852f
authored
Oct 31, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename to rename.
parent
b06a4f05
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCoreInstanceSlapInterfaceWorkflow.py
...mplateItem/testSlapOSCoreInstanceSlapInterfaceWorkflow.py
+5
-5
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 @
75b8852f
...
@@ -91,18 +91,18 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
...
@@ -91,18 +91,18 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
computer_partition_url
=
computer_partition_url
)
computer_partition_url
=
computer_partition_url
)
self
.
assertEqual
(
self
.
instance
.
getAggregate
(),
computer_partition_url
)
self
.
assertEqual
(
self
.
instance
.
getAggregate
(),
computer_partition_url
)
def
test_
softwareInstanceR
ename_new_name_required
(
self
):
def
test_
r
ename_new_name_required
(
self
):
self
.
login
(
self
.
instance
.
getReference
())
self
.
login
(
self
.
instance
.
getReference
())
self
.
assertRaises
(
KeyError
,
self
.
instance
.
rename
)
self
.
assertRaises
(
KeyError
,
self
.
instance
.
rename
)
def
test_
softwareInstanceR
ename
(
self
):
def
test_
r
ename
(
self
):
new_name
=
'New %s'
%
self
.
generateNewId
()
new_name
=
'New %s'
%
self
.
generateNewId
()
self
.
login
(
self
.
instance
.
getReference
())
self
.
login
(
self
.
instance
.
getReference
())
self
.
instance
.
rename
(
new_name
=
new_name
)
self
.
instance
.
rename
(
new_name
=
new_name
)
self
.
assertEqual
(
new_name
,
self
.
instance
.
getTitle
())
self
.
assertEqual
(
new_name
,
self
.
instance
.
getTitle
())
transaction
.
abort
()
transaction
.
abort
()
def
test_
softwareInstanceR
ename_twice_not_indexed
(
self
):
def
test_
r
ename_twice_not_indexed
(
self
):
new_name
=
'New %s'
%
self
.
generateNewId
()
new_name
=
'New %s'
%
self
.
generateNewId
()
self
.
login
(
self
.
instance
.
getReference
())
self
.
login
(
self
.
instance
.
getReference
())
self
.
instance
.
rename
(
new_name
=
new_name
)
self
.
instance
.
rename
(
new_name
=
new_name
)
...
@@ -113,7 +113,7 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
...
@@ -113,7 +113,7 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
transaction
.
abort
()
transaction
.
abort
()
@
expectedFailure
@
expectedFailure
def
test_
softwareInstanceR
ename_twice_same_transaction
(
self
):
def
test_
r
ename_twice_same_transaction
(
self
):
new_name
=
'New %s'
%
self
.
generateNewId
()
new_name
=
'New %s'
%
self
.
generateNewId
()
self
.
login
(
self
.
instance
.
getReference
())
self
.
login
(
self
.
instance
.
getReference
())
self
.
instance
.
rename
(
new_name
=
new_name
)
self
.
instance
.
rename
(
new_name
=
new_name
)
...
@@ -122,7 +122,7 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
...
@@ -122,7 +122,7 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(testSlapOSMixin):
new_name
=
new_name
)
new_name
=
new_name
)
transaction
.
abort
()
transaction
.
abort
()
def
test_
softwareInstanceR
ename_existing
(
self
):
def
test_
r
ename_existing
(
self
):
new_name
=
'New %s'
%
self
.
generateNewId
()
new_name
=
'New %s'
%
self
.
generateNewId
()
self
.
login
(
self
.
instance
.
getReference
())
self
.
login
(
self
.
instance
.
getReference
())
...
...
master/bt5/slapos_cloud/bt/revision
View file @
75b8852f
172
173
\ No newline at end of file
\ 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