예제 #1
0
 def test_get_groups_from_server(self):
     server_vars = {
         'flavor': 'test-flavor',
         'image': 'test-image',
         'az': 'test-az'
     }
     self.assertEqual([
         'test-name', 'test-region', 'test-name_test-region', 'test-group',
         'instance-test-id-0', 'meta-group_test-group', 'test-az',
         'test-region_test-az', 'test-name_test-region_test-az'
     ], meta.get_groups_from_server(FakeCloud(), FakeServer(), server_vars))
예제 #2
0
 def test_get_groups_from_server(self):
     server_vars = {'flavor': 'test-flavor',
                    'image': 'test-image',
                    'az': 'test-az'}
     self.assertEqual(
         ['test-name',
          'test-region',
          'test-name_test-region',
          'test-group',
          'instance-test-id-0',
          'meta-group_test-group',
          'test-az',
          'test-region_test-az',
          'test-name_test-region_test-az'],
         meta.get_groups_from_server(
             FakeCloud(), meta.obj_to_dict(FakeServer()), server_vars))
예제 #3
0
 def test_get_groups_from_server(self):
     server_vars = {"flavor": "test-flavor", "image": "test-image", "az": "test-az"}
     self.assertEqual(
         [
             "test-name",
             "test-region",
             "test-name_test-region",
             "test-group",
             "instance-test-id-0",
             "meta-group_test-group",
             "test-az",
             "test-region_test-az",
             "test-name_test-region_test-az",
         ],
         meta.get_groups_from_server(FakeCloud(), FakeServer(), server_vars),
     )