virt-manager/tests
Cole Robinson f27e203732 cli: Skip MAC collision error with --check mac_in_use=
There's valid cases where a VM can be defined with a conflicting MAC
address. Prior to  ebd6091cc8 and related refactorings we were more
lax here if the conflicting VM wasn't running, but now we are blocking
some valid usage.

Hoist the validation check up to cli.py and add --check mac_in_use=off
to skip the validation. Advertise it like we do for other checks, so
now a collision error will look something like:

The MAC address '22:11:11:11:11:11' is in use by another virtual
machine. (Use --check mac_in_use=off or --check all=off to override)

Reported-by: Pino Toscano <ptoscano@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2020-07-06 10:17:10 -04:00
..
data tests: codespell: ignore 'hda' 2020-07-04 18:05:27 -04:00
uitests tests: pylint: Silence some false positives 2020-07-04 18:05:27 -04:00
__init__.py Move virt-* code into their modules 2020-01-26 18:27:20 -05:00
magicuri.py virtinst: uri: Rework MagicURI to work with passed in fakeuri 2020-02-03 07:05:11 -05:00
test_capabilities.py domaincapabilities: Finish test coverage 2020-01-27 13:08:12 -05:00
test_checkprops.py tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
test_cli.py cli: Skip MAC collision error with --check mac_in_use= 2020-07-06 10:17:10 -04:00
test_cloner.py cloner: Drop ability to clone a paused VM 2020-01-29 18:34:38 -05:00
test_conn.py virtinst: connection: Add is_privileged 2020-02-03 07:05:11 -05:00
test_dist.py tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
test_inject.py tests: Move all data directories to data/ 2020-01-27 06:57:37 -05:00
test_nodedev.py tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
test_osdict.py tests: osdict: Finish coverage 2020-02-03 07:05:11 -05:00
test_storage.py tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
test_uriparse.py tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
test_urls.py tests: Move all data directories to data/ 2020-01-27 06:57:37 -05:00
test_xmlconfig.py cli: Skip MAC collision error with --check mac_in_use= 2020-07-06 10:17:10 -04:00
test_xmlparse.py diskbackend: Add lots of test coverage 2020-01-29 08:38:18 -05:00
testdriver.xml devices: disk: Add more test coverage 2020-01-29 06:40:43 -05:00
testsuite.xml virt-install: Add --reinstall=DOMAIN option 2020-02-03 09:03:02 -05:00
urlfetcher_mock.py urlfetcher: move mock code to the testsuite 2020-01-27 13:08:12 -05:00
utils.py tests: Add armv7l domcaps data, and use it 2020-02-03 07:05:11 -05:00