Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1091dd05
authored
Mar 15, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: more permissive VmDetailTest.test_permitted_vm_disk_add
local celery would be needed to keep this check
parent
8fe1582e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
circle/dashboard/tests/test_views.py
+3
-2
No files found.
circle/dashboard/tests/test_views.py
View file @
1091dd05
...
@@ -266,7 +266,7 @@ class VmDetailTest(LoginMixin, TestCase):
...
@@ -266,7 +266,7 @@ class VmDetailTest(LoginMixin, TestCase):
self
.
login
(
c
,
"user1"
)
self
.
login
(
c
,
"user1"
)
inst
=
Instance
.
objects
.
get
(
pk
=
1
)
inst
=
Instance
.
objects
.
get
(
pk
=
1
)
inst
.
set_level
(
self
.
u1
,
'owner'
)
inst
.
set_level
(
self
.
u1
,
'owner'
)
disks
=
inst
.
disks
.
count
()
#
disks = inst.disks.count()
response
=
c
.
post
(
"/dashboard/disk/add/"
,
{
response
=
c
.
post
(
"/dashboard/disk/add/"
,
{
'disk-name'
:
"a"
,
'disk-name'
:
"a"
,
'disk-size'
:
1
,
'disk-size'
:
1
,
...
@@ -274,7 +274,8 @@ class VmDetailTest(LoginMixin, TestCase):
...
@@ -274,7 +274,8 @@ class VmDetailTest(LoginMixin, TestCase):
'disk-object_pk'
:
1
,
'disk-object_pk'
:
1
,
})
})
self
.
assertEqual
(
response
.
status_code
,
302
)
self
.
assertEqual
(
response
.
status_code
,
302
)
self
.
assertEqual
(
disks
+
1
,
inst
.
disks
.
count
())
# mancelery is needed TODO
# self.assertEqual(disks + 1, inst.disks.count())
def
test_notification_read
(
self
):
def
test_notification_read
(
self
):
c
=
Client
()
c
=
Client
()
...
...
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