Esempio n. 1
0
 def test_create_and_delete_volume_type(self):
     mock_service = self.mock_cinder.return_value
     scenario = volume_types.CreateAndDeleteVolumeType(self._get_context())
     scenario.run(fakeargs="fakeargs")
     mock_service.create_volume_type.assert_called_once_with(
         fakeargs="fakeargs")
     mock_service.delete_volume_type.assert_called_once_with(
         mock_service.create_volume_type.return_value)
Esempio n. 2
0
 def test_create_and_delete_volume_type(self):
     scenario = volume_types.CreateAndDeleteVolumeType(self.context)
     scenario._create_volume_type = mock.Mock()
     scenario._delete_volume_type = mock.Mock()
     scenario.run(fakeargs="fakeargs")
     scenario._create_volume_type.assert_called_once_with(
         fakeargs="fakeargs")
     scenario._delete_volume_type.assert_called_once_with(
         scenario._create_volume_type.return_value)
Esempio n. 3
0
 def test_create_and_delete_volume_type(self):
     mock_service = self.mock_cinder.return_value
     scenario = volume_types.CreateAndDeleteVolumeType(self._get_context())
     description = "rally tests creating types"
     is_public = False
     scenario.run(description=description, is_public=is_public)
     mock_service.create_volume_type.assert_called_once_with(
         description=description, is_public=is_public)
     mock_service.delete_volume_type.assert_called_once_with(
         mock_service.create_volume_type.return_value)