summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Work the anaconda object into the VNC testJesse Keating2012-10-011-0/+4
| | | | | This makes the specific test of changing the VNC password work, since it relies on that object existing.
* Handle --ignoremissing in _applyYumSelections (#859021).Chris Lumens2012-09-251-1/+0
| | | | | | kickstart.selectPackages can go away entirely, since all it does is add stuff to ksdata and we've got that anyway. Having done that, the handling for --ignoremissing then needs to move into _applyYumSelections.
* Don't write out /etc/sysconfig/clock anymore (#859217).Chris Lumens2012-09-241-2/+0
|
* Remove anaconda.instLanguage object and language moduleVratislav Podzimek2012-09-041-237/+0
| | | | | We now use ksdata and execute methods for storing and writing configuration.
* Remove lang-table and localeinfo.pyVratislav Podzimek2012-09-041-30/+0
| | | | | We no longer use lang-table for anything. localeinfo.py is module for accessing data from lang-table.
* Update runpylint to find newui modules correctly.Chris Lumens2012-08-301-1/+1
|
* Move expandLangs to localization moduleVratislav Podzimek2012-08-291-5/+0
|
* tests: Add tests for new SimpleConfigFile featuresBrian C. Lane2012-08-091-7/+41
|
* tests: cleanup whitespace in simpleconfig_test.pyBrian C. Lane2012-08-091-21/+21
|
* Replace system-config-keyboard with our methods using ksdata.keyboardVratislav Podzimek2012-08-081-20/+0
| | | | | | | The only thing we were using from the system-config-keyboard was the activate method that basically just calls loadkeys command. This can be easily replaced with our own method using data from ksdata.keyboard allowing us to remove anaconda.keyboard object.
* Remove upgrade.py and associated tests.Chris Lumens2012-08-011-241/+0
| | | | | All upgrading will be handled by an external process, and this gets rid of callers to some storage functions that I need to make rescue mode work again.
* remove Network(): write (configuration) methodRadek Vykydal2012-07-201-19/+0
| | | | | It got reduced just to writing of /etc/sysconfig/network. We'll need to review how much of it is still needed/relevant.
* remove Network(): post-configuration of devices used for storageRadek Vykydal2012-07-201-19/+0
|
* remove Network(): copying configuration to target systemRadek Vykydal2012-07-201-18/+0
|
* remove Network(): remove methods needed only for old UIRadek Vykydal2012-07-201-70/+0
|
* remove Network(): remove another unused methodRadek Vykydal2012-07-201-22/+0
|
* remove Network(): remove unused functionsRadek Vykydal2012-07-201-81/+26
| | | | | move some methods out of Network object still keeping old ui working
* Merge branch 'master' into newui-mergeBrian C. Lane2012-06-201-17/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.am anaconda anaconda.spec.in loader/loader.c loader/net.c loader/unpack.c po/POTFILES.in pyanaconda/__init__.py pyanaconda/bootloader.py pyanaconda/cmdline.py pyanaconda/constants.py pyanaconda/dispatch.py pyanaconda/errors.py pyanaconda/flags.py pyanaconda/iutil.py pyanaconda/kickstart.py pyanaconda/platform.py pyanaconda/storage/__init__.py pyanaconda/storage/devicetree.py pyanaconda/storage/fcoe.py pyanaconda/storage/formats/swap.py pyanaconda/storage/iscsi.py pyanaconda/storage/partitioning.py pyanaconda/yuminstall.py scripts/makeupdates
| * move vncpassword handling into anaconda; remove recoverVNCPasswordWill Woods2012-02-151-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | loader was writing the vncpassword out to a file, because: a) many years ago, VNC got started by loader, and b) VNC used to need to read its password from a file. But now it is the Glorious Future and anaconda can just read the 'vncpassword' boot/cmdline arg and hand it to the VncServer object. This also removes recoverVNCPassword and pw_init_file from the VncServer class, and the tests associated with them.
| * Put NoSuchGroup and DispatchError back, but not in errors.py. (#760786)David Lehman2011-12-191-7/+7
| | | | | | | | | | Their use is very limited, so just define them in the modules that use them primarily.
* | Fix some broken tests by unaliasing modulesMichael K. Johnson2012-05-092-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | On an up-to-date as of an hour ago f17 system, on the newui branch, with no modifications, running "make unittest" gives me 239 errors and 14 failures. The following small patches reduce that to 84 errors and 4 failures, resolving 155 errors and 10 failures. Beyond this, the rest of the failures look real, most likely due to code changes without corresponding test suite changes.
* | Remove all the writeKS methods except in network and storage.Chris Lumens2012-04-246-79/+0
| | | | | | | | | | | | | | | | Those appear to have a lot of information still in them that may not be present either in pykickstart or elsewhere in anaconda. Those still won't be called, but I'm not yet comfortable removing them entirely. Also, use pykickstart to do the writeKS stuff now.
* | Add some unit tests for packaging.David Lehman2012-03-212-0/+127
| |
* | Put NoSuchGroup and DispatchError back, but not in errors.py. (#760786)David Lehman2012-02-161-7/+7
|/ | | | | Their use is very limited, so just define them in the modules that use them primarily.
* Change what the third column of lang-table means.Chris Lumens2011-10-311-18/+4
| | | | | | | | It now means "is text mode supported for this language?". It used to store which font we'd use to display the language, where "none" meant that text mode didn't work in that language. However, we don't ever set the font based upon that column and we shouldn't really ever be setting the font ourselves anyway.
* Do a better job of remembering if 'review and modify partitioning' was checked.Ales Kozumplik2011-10-211-0/+12
| | | | | | | | The scheduling is reverted when going back thus it can not be used to remember user's choice that should preserve if reentering a particular screen. Resolves: rhbz#746703
* dracut args: "rhgb quiet" should come last.Ales Kozumplik2011-10-041-0/+8
| | | | | | | | | The patch introduces a simple mechanism to order the (otherwise unsorted) dracut arguments. With a UT. Resolves: rhbz#740949
* botoloader: write 'ip=eth0:dhcp,auto6' instead of 'ip=eth0:dhcp ip=eth0:auto6'Ales Kozumplik2011-09-271-2/+27
| | | | | | | Unit tests included. This is a loose merge from 238cca2783d564d6b92ec4e1104606627f02a9d8. Resolves: rhbz#740222
* Update test for createUser and createGroup (#739428)Brian C. Lane2011-09-201-3/+16
|
* isolate localeInfo and expandLangs() from langauges.py into a separate module.Ales Kozumplik2011-09-072-6/+41
| | | | | | | | | After 0c662ebeaf4043ff2e2a1f7d09b527f4bf243047, we can not build due to imports problem during build time (importing pyanaconda.constants tries to import pyanaconda.__init__ which tries to import isys etc.). This change separates the language.py bits and the bits needed during build time. Includes new unit tests.
* Remove unnecessary ROOT_PATH constant passing.Ales Kozumplik2011-08-269-48/+47
| | | | This is a hefty and tedious change.
* Moving anaconda.rootPath to constants.ROOT_PATH.Ales Kozumplik2011-08-262-8/+7
| | | | | | Create the constant and remove the old variable. This way we don't have to pass the argument around.
* cosmetic: remove trailing whitespace in timezone_test.pyAles Kozumplik2011-08-251-23/+23
|
* ut: cleanup after firewall_test.pyAles Kozumplik2011-08-241-6/+8
|
* ut: move tests/fw_test.py to tests/pyanaconda_test/firewall_test.pyAles Kozumplik2011-08-241-0/+0
| | | | It so belongs there.
* Allow answering the uninitialized disk question more than once.Ales Kozumplik2011-08-221-0/+13
| | | | | | | | With kickstart, if the user only had a single disk, said 'no' to reinitialization and then pressed 'back' when informed no usable disks were found, he ended up in the timezone screen. Resolves: rhbz#730959
* Copy /etc/multipath/wwids to the sysimage.Ales Kozumplik2011-08-163-1/+31
| | | | | | | | | | | | /etc/multipath/wwids is a list of activated multipaths generated by the multipath tools. If it is missing in the sysimage it will be missing in the dracut initramfs and that, in rare cases, can cause race between mpath and lvm during boot. This is a merge froh rhel6-branch but includes a unit tests of the new iutil.copy_to_sysimage(). Resolves: rhbz#701371
* dispatcher: do not show install steps in upgrade.Ales Kozumplik2011-08-111-0/+31
| | | | | | | | | | | This works by unscheduling all the steps that haven't been done, skipped or requested yet. Correctly remembers the scheduling change so going back through the upgrade screen and selecting fresh install the next time would work as expected as far as Dispatcher is concerned. Unit tests included. Resolves: rhbz#729558
* edd: fix traceback on Xen.Ales Kozumplik2011-08-111-0/+22
| | | | | | | Apparently the /sys/firmware/edd/int13_dev*/host_bus file is missing or non-standard on Xen. Resolves: rhbz#728280
* ut: fix upgrade_test.pyAles Kozumplik2011-08-091-1/+1
| | | | should have been a part of c3bedc8c5b1542e882824d5fb4005f6336e7822a.
* ut: product_test.py should not fail if executed by itself.Ales Kozumplik2011-08-051-7/+3
| | | | | | Do the sys.modules magic in setup and be mindful. Also see ca27378ad0229c66c3bbcbd6636f2e555c2d6db8.
* Annotate the list of what pylint warnings and errors we ignore.Chris Lumens2011-08-011-5/+43
| | | | | This is the first step in seeing which we really need to ignore, and which we were just ignoring out of convenience.
* Disable E1103 (the "some types could not be inferred" message).Chris Lumens2011-08-012-6/+1
| | | | | We hit this for every use of a pyanaconda.product value, so it's really just noise.
* Delete the Mocked pyanaconda.product to fix product tests.Chris Lumens2011-08-011-0/+6
| | | | | | | | | | | Since anaconda modules are such a tangle, running one of the earlier tests causes pyanaconda.product to get imported early. On that import, it gets created as a Mock object, so the later import doesn't do anything useful and all the product tests will therefore fail. If we delete and then re-import, everything will work. This is only seen if you run everything in tests/, not if you just run the product_test.py by itself.
* Fix import errors in the unit tests.Chris Lumens2011-08-012-13/+13
|
* Remove the booty unit tests.Chris Lumens2011-08-015-551/+1
| | | | | Since all the bootloader stuff has been rewritten, it seems easier to write new bootloader tests from scratch instead of adapting what we've got.
* We also need to catch ValueError on mock.disk.TestFile.__del__.Chris Lumens2011-08-011-1/+1
|
* dispatcher: allow requesting a step without insisting.Ales Kozumplik2011-07-281-0/+12
| | | | | | | | Introduces Dispatcher.request_steps_gently() which requests steps if they are not skipped already (i.e. "Unless there is a compelling reason, like a kickstart command, not to run this step, it must be run."). Resolves: rhbz#723798
* edd: fix syntax in situation when two edd directories point to the same device.Ales Kozumplik2011-07-281-0/+29
| | | | | | Adds a unit test for this case. Resolves: rhbz#725777
* ut: cleanup the taking-over-io mechanism.Ales Kozumplik2011-07-273-49/+41
| | | | | | 1) Move the functionality from mock.DiskIO to mock.TestCase itself. 2) Use already existing mechanism (tearDownModules()) for cleaning up after we override functions in widely used modules.