projects
/
kamaki
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
436f2ce
)
Try (and fail) to fix _delete_network in tests.py
author
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Fri, 26 Oct 2012 14:10:22 +0000
(17:10 +0300)
committer
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Fri, 26 Oct 2012 14:10:22 +0000
(17:10 +0300)
kamaki/clients/tests.py
patch
|
blob
|
history
diff --git
a/kamaki/clients/tests.py
b/kamaki/clients/tests.py
index
9dc2328
..
ed6ed0e
100644
(file)
--- a/
kamaki/clients/tests.py
+++ b/
kamaki/clients/tests.py
@@
-191,8
+191,19
@@
class testCyclades(unittest.TestCase):
return net
def _delete_network(self, netid):
- print('\tDelete network %s'%netid)
- self.client.delete_network(netid)
+ sys.stdout.write('\tDelete network %s '%netid)
+ wait = 3
+ while True:
+ try:
+ self.client.delete_network(netid)
+ break
+ except ClientError as err:
+ self.assertEqual(err.status_code, 421)
+ #HERE I MUST DISCONNECT NICS
+ time.sleep(wait)
+ wait += 3
+ sys.stdout.write('.')
+
def if_not_all(foo):
global TEST_ALL