Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
18dc691f
authored
Apr 02, 2014
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: test for flush operation
parent
221d4766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
circle/vm/tests/test_operations.py
+7
-2
No files found.
circle/vm/tests/test_operations.py
View file @
18dc691f
from
django.test
import
TestCase
from
common.operations
import
operation_registry_name
as
op_reg_name
from
vm.models
import
Instance
from
vm.models
import
Instance
,
Node
from
vm.operations
import
(
DeployOperation
,
DestroyOperation
,
MigrateOperation
,
DeployOperation
,
DestroyOperation
,
FlushOperation
,
MigrateOperation
,
RebootOperation
,
RedeployOperation
,
ResetOperation
,
SaveAsTemplateOperation
,
ShutdownOperation
,
ShutOffOperation
,
SleepOperation
,
WakeUpOperation
,
...
...
@@ -20,6 +20,11 @@ class DestroyOperationTestCase(TestCase):
assert
DestroyOperation
.
id
in
getattr
(
Instance
,
op_reg_name
)
class
FlushOperationTestCase
(
TestCase
):
def
test_operation_registered
(
self
):
assert
FlushOperation
.
id
in
getattr
(
Node
,
op_reg_name
)
class
MigrateOperationTestCase
(
TestCase
):
def
test_operation_registered
(
self
):
assert
MigrateOperation
.
id
in
getattr
(
Instance
,
op_reg_name
)
...
...
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