git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3d23cd
)
must remember test data is stored in dicts now, not lists. use .values() to get list...
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Apr 2008 00:32:20 +0000
(
00:32
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Apr 2008 00:32:20 +0000
(
00:32
+0000)
qaapi/qa/tests/add_test_data.py
patch
|
blob
|
history
diff --git
a/qaapi/qa/tests/add_test_data.py
b/qaapi/qa/tests/add_test_data.py
index
a842083
..
2498499
100644
(file)
--- a/
qaapi/qa/tests/add_test_data.py
+++ b/
qaapi/qa/tests/add_test_data.py
@@
-22,11
+22,11
@@
class add_test_data(Test):
'plc' in object and object['plc'] == plc['name'] or \
object['plc'] == None
'plc' in object and object['plc'] == plc['name'] or \
object['plc'] == None
- sitelist = filter(this_plc, self.config.sites
)
- nodelist = filter(this_plc, self.config.nodes)
- slicelist = filter(this_plc, self.config.slices)
- personlist = filter(this_plc, self.config.persons)
-
+ sitelist = filter(this_plc, self.config.sites
.values())
+ nodelist = filter(this_plc, self.config.nodes
.values()
)
+ slicelist = filter(this_plc, self.config.slices
.values()
)
+ personlist = filter(this_plc, self.config.persons
.values()
)
+
# Add Test site
for site in sitelist:
sites = api.GetSites(auth, [site['login_base']])
# Add Test site
for site in sitelist:
sites = api.GetSites(auth, [site['login_base']])