Пример #1
0
 def setUp(self):
     super(DbServerGroupTestCase, self).setUp()
     self.server_group = utils.create_test_server_group(
         context={},
         name='test_server_group',
         user_id='fake_user_id',
         project_id='fake_project_id',
         policies=['policy1', 'policy2'],
         members=['server1', 'server2'])
Пример #2
0
 def test_server_group_create(self):
     sg = utils.create_test_server_group(name='testing')
     self.assertEqual('testing', sg.name)