Revision c2f037ff snf-tools/synnefo_tools/burnin/network_tests.py
b/snf-tools/synnefo_tools/burnin/network_tests.py | ||
---|---|---|
53 | 53 |
|
54 | 54 |
def test_001_images_to_use(self): |
55 | 55 |
"""Find images to be used to create our machines""" |
56 |
if self.images is None: |
|
57 |
self.info("No --images given. Will use the default %s", |
|
58 |
"^Debian Base$") |
|
59 |
filters = ["name:^Debian Base$"] |
|
60 |
else: |
|
61 |
filters = self.images |
|
62 |
|
|
63 |
self.avail_images = self._find_images(filters) |
|
64 |
self.info("Found %s images to choose from", len(self.avail_images)) |
|
56 |
self.avail_images = self._parse_images() |
|
65 | 57 |
|
66 | 58 |
def test_002_flavors_to_use(self): |
67 | 59 |
"""Find flavors to be used to create our machines""" |
68 |
flavors = self._get_list_of_flavors(detail=True) |
|
69 |
|
|
70 |
if self.flavors is None: |
|
71 |
self.info("No --flavors given. Will use all of them") |
|
72 |
self.avail_flavors = flavors |
|
73 |
else: |
|
74 |
self.avail_flavors = self._find_flavors( |
|
75 |
self.flavors, flavors=flavors) |
|
76 |
self.info("Found %s flavors to choose from", len(self.avail_flavors)) |
|
60 |
self.avail_flavors = self._parse_flavors() |
|
77 | 61 |
|
78 | 62 |
def test_003_submit_create_server_a(self): |
79 | 63 |
"""Submit create server request for server A""" |
Also available in: Unified diff