summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove the storage module and replace it with blivet.David Lehman2013-01-2816-2617/+1
|
* Move tsort, platform, and baseudev into storage.David Lehman2013-01-285-59/+58
| | | | Merge baseudev into storage.udev.
* Remove unused functions and move storage-specific utils to storage.David Lehman2013-01-281-4/+4
| | | | | | | | | | | | | | | | | | | This is the first pass at setting things up to split storage out into a separate package. It replaces the guts of iutil.execWithRedirect and iutil.execWithCapture with a single backend function, _run_program. The main thing I can think of that might be cause for complaint is that _run_program does not log each output line as the external program outputs it, so you get the whole output buffer at once. Storage gets its own copy of _run_program and all of the calls in storage use the copy from storage.util. The reason I moved all of the iutil arch functions into storage is that they are mostly used in storage and I didn't want there to be two copies of the whole set. The rest is removing of unused things and moving of things only used by storage into storage.
* Remove the old cmdline and script interfaces.Chris Lumens2013-01-161-230/+0
| | | | These have all been merged with the new text interface.
* Remove the old text mode UI.Chris Lumens2013-01-162-30/+1
| | | | | I've had to leave pieces of text.py around, though, because it's used by rescue mode and we're not changing it quite yet.
* Remove more references to system-config-*.Chris Lumens2013-01-161-4/+1
|
* getLUKSPassphrase is no longer used, so kill it.Chris Lumens2013-01-101-7/+0
|
* Improve and document network.sanityCheckHostnameVratislav Podzimek2012-12-031-10/+10
| | | | | | | The rules for hostname are more strict. Also, it was not easy to use this function because of its return values. Related: rhbz#865869
* Fix error in iutil.execCapture when fatal and non-zero exitStef Walter2012-11-201-0/+11
| | | | | Fix the TypeError problem with iutil.execWithCapture() when fatal and process returns a non-zero exit code.
* Remove dispatch.py and its associated test case.Chris Lumens2012-10-291-265/+0
| | | | Good riddance.
* update to use firewalld (#815540)Brian C. Lane2012-10-171-41/+0
|
* 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