041 (4169198617dc8d3e80697964b91eaea551e7f956) 041 (67cc32ebfd8c0ee3fcdb26780a8991baf5eb1d45)
1#!/usr/bin/env python
2#
3# Tests for image mirroring.
4#
5# Copyright (C) 2012 Red Hat, Inc.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by

--- 875 unchanged lines hidden (view full) ---

884 if not self.has_quorum():
885 return
886
887 result = self.vm.qmp('drive-mirror', device='quorum0', sync='full',
888 replaces='img1',
889 target=quorum_repair_img, format=iotests.imgfmt)
890 self.assert_qmp(result, 'error/class', 'GenericError')
891
1#!/usr/bin/env python
2#
3# Tests for image mirroring.
4#
5# Copyright (C) 2012 Red Hat, Inc.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by

--- 875 unchanged lines hidden (view full) ---

884 if not self.has_quorum():
885 return
886
887 result = self.vm.qmp('drive-mirror', device='quorum0', sync='full',
888 replaces='img1',
889 target=quorum_repair_img, format=iotests.imgfmt)
890 self.assert_qmp(result, 'error/class', 'GenericError')
891
892 def test_unexistant_replaces(self):
892 def test_nonexistent_replaces(self):
893 if not self.has_quorum():
894 return
895
896 result = self.vm.qmp('drive-mirror', device='quorum0', sync='full',
897 node_name='repair0',
898 replaces='img77',
899 target=quorum_repair_img, format=iotests.imgfmt)
900 self.assert_qmp(result, 'error/class', 'GenericError')

--- 30 unchanged lines hidden ---
893 if not self.has_quorum():
894 return
895
896 result = self.vm.qmp('drive-mirror', device='quorum0', sync='full',
897 node_name='repair0',
898 replaces='img77',
899 target=quorum_repair_img, format=iotests.imgfmt)
900 self.assert_qmp(result, 'error/class', 'GenericError')

--- 30 unchanged lines hidden ---