| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
The StrEnum and Int tests are restructured to allow sharing the tests.
Individual *Enum tests are separated into methods.
|
|
|
|
|
| |
Int already needed to take both int and long. This makes the functionality
available for all Param classes.
|
|
|
|
| |
Options should be Param subclasses.
|
| |
|
|
|
|
|
| |
When reporting argument errors, show also a context -- what is processed,
what is the name of the command.
|
|
|
|
|
|
| |
If an exception is expected, but another one is raised, the CLITestContext
raised a generic AssertionError.
Pass through the original exception instead
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
To differentiate between individual tests in BeakerLib output,
the argument needs to be added to the test name. Since Nose
doesn't provide a way to get the argument in a plugin,
a `test_argument` attribute must be added to the test function
to support this, simlarly to how `description` is used to set
individual "docstrings".
Add test_argument to the generated tests in the CA-less suite.
|
|
|
|
|
|
|
| |
Ordered test generators were not announced in plugin hooks, so
e.g. the Beakerlib or collect plugin did not announce them.
Exclude test generators from ordering.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This adds a transport that uses /usr/bin/ssh calls to communicate
with remote hosts.
This transport is a bit slower and buffers output more than paramiko,
so it is only used if paramiko is not available, or forced with an
environment variable.
https://fedorahosted.org/freeipa/ticket/3890
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will make it possible to use a different mechanism for cases like
- Paramiko is not available
- Hosts without SSH servers (e.g. Windows)
Add BaseHost, Transport & Command base classes that define the interface
and common functionality, and Host, ParamikoTransport & SSHCommand with
specific details.
The {get,put}_file_contents methods are left on Host for convenience;
all other Transport methods must be now accessed through the transport.
Part of the work for https://fedorahosted.org/freeipa/ticket/3890
|
|
|
|
|
|
| |
Map type radio used old way of defining that its value should not be used in add command. Recent patch related to 'enable' attribute hardened/fixed the behavior of radio widgets so they are disabled in UI as well when enabled==false. Automount did not reflect this change.
https://fedorahosted.org/freeipa/ticket/3954
|
|
|
|
|
|
|
|
| |
Old host entries are missing object class with krbticketflags attribute. Therefore UI does not receive attrlevelrights for it. This OC is added when ipakrbokasdelegate is set.
This patch adds the usual hack for such cases.
https://fedorahosted.org/freeipa/ticket/3940
|
|
|
|
|
|
|
|
|
| |
Updating a CIDict with data like {'A': 1, 'a': 2} would lead to data
loss since only one of the items would get to the CIDict.
This can result in non-obvious bugs similar to this one in python-ldap:
https://bugzilla.redhat.com/show_bug.cgi?id=1007820
Raise an error in this case; any resolution must be done by the caller.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the CIDict interface match standard dict (except view* methods).
Add __contains__, __iter__, clear.
Add keyword and iterable support for __init__, update.
Also add values() and itervalues(). Previously the dict versions were
used; the new ones guarantee that the order matches keys().
Mark view* methods as not implemented.
CIDict.copy() now returns a CIDict.
Test the above additions, and fromkeys() which worked but wasn't tested.
|
| |
|
|
|
|
|
|
|
|
| |
Nose doesn't pick up directories that don't begin with 'test'.
Rename ipatests/test_ipaserver/install to test_install so that it's run.
Also, merge test_ipautil.py from ipapython/test into tests/test_ipapython,
so the whole test suite is in one place.
|
|
|
|
| |
https://fedorahosted.org/freeipa/ticket/3907
|
|
|
|
|
|
|
|
| |
The search had an incorrect scope and therefore it didn't find any RUV.
This issue prevented removing of replica.
https://fedorahosted.org/freeipa/ticket/3876
|
|
|
|
|
|
|
| |
Add integration tests for the forced client re-enrollment feature:
http://www.freeipa.org/page/V3/Forced_client_re-enrollment#Test_Plan
https://fedorahosted.org/freeipa/ticket/3832
|
|
|
|
|
|
| |
Add man pages for ipa-run-tests, ipa-test-task, and ipa-test-config.
https://fedorahosted.org/freeipa/ticket/3855 (part 5)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Differences from the test plan at
http://www.freeipa.org/index.php?title=V3/CA-less_install&oldid=6669 are:
- The following tests are included in all applicable positive
install tests, rather than being standalone test cases:
- Verify CA certificate stored in LDAP
- Verify CA PEM file created by IPA server install
- Verify that IPA server install does not configure certmonger
- Verify CA PEM file created by IPA replica install
- Verify that IPA replica install does not configure certmonger
- Verify CA PEM file created by IPA client install
- PKI setup is done only once for each test class
- Master installation is done once for the IPA command tests, and
once for the certinstall tests
- Certificates are compared after base64 decoding to avoid failures
from formatting mismatches
- Minor changes necessary for automation (e.g. adding --unattended
and --password options, correcting error messages)
- Web UI tests are not included here
https://fedorahosted.org/freeipa/ticket/3830
|
|
|
|
|
|
|
|
|
|
| |
Some unit tests were failing after ipa-adtrust-install has been run on the
IPA server, due to missing attributes ('ipantsecurityidentifier') and
objectclasses ('ipantuserattrs' and 'ipantgroupattrs'). This patch detects if
ipa-adtrust-install has been run, and adds missing attributes and objectclasses
where appropriate.
https://fedorahosted.org/freeipa/ticket/3852
|
| |
|
|
|
|
|
|
| |
Adding a trust creates a range -> range search facet should be marked as expired.
https://fedorahosted.org/freeipa/ticket/3874
|
|
|
|
|
|
|
|
| |
Add integration tests for the Kerberos Flags feature:
http://www.freeipa.org/page/V3/Kerberos_Flags#Test_Plan
(except the web UI tests).
https://fedorahosted.org/freeipa/ticket/3831
|
|
|
|
| |
https://fedorahosted.org/freeipa/ticket/3834
|
|
|
|
|
|
| |
Tests according to: http://www.freeipa.org/page/V3/Kerberos_Flags
https://fedorahosted.org/freeipa/ticket/3831
|
|
|
|
|
|
| |
Test cases according to: http://www.freeipa.org/page/V3/CA-less_install
https://fedorahosted.org/freeipa/ticket/3830
|
|
|
|
|
|
| |
The integration testing framework used Paramiko SFTP files as
context managers. This feature is only available in Paramiko 1.10+.
Use an explicit context manager so that we don't rely on the feature.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Differences in the python byte code fails in a build validation
(rpmdiff) done on difference architecture of the same package.
This patch:
1) Ensures that timestamps of generated *.pyo and *.pyc files match
2) Python integer literals greater or equal 2^32 and lower than 2^64
are converted to long right away to prevent different type of
the integer on architectures with different size of int
https://fedorahosted.org/freeipa/ticket/3858
|
|
|
|
|
|
|
|
|
| |
Drops the code from ipa-server-install, ipa-dns-install and the
BindInstance itself. Also changed ipa-upgradeconfig script so
that it does not set zone_refresh to 0 on upgrades, as the option
is deprecated.
https://fedorahosted.org/freeipa/ticket/3632
|
|
|
|
| |
This makes the tests pass.
|
|
|
|
|
|
|
| |
* variables with python build-in names renamed
* unused parameters used or removed
https://fedorahosted.org/freeipa/ticket/3744
|
|
|
|
|
|
|
| |
Tests modified to comply with PEP8 rules with exception of rule E501 (long lines).
Done by autopep8 tool and 2 manual modifications.
https://fedorahosted.org/freeipa/ticket/3744
|
|
|
|
|
|
|
|
|
| |
Heavily inspired by code from xmlrpc tests.
To obtain ranges, this patch also adds method to execute FreeIPA command through Web UI.
It uses Web UI instead of ipalib so it doesn't need to care about authentication on a test-runner machine.
https://fedorahosted.org/freeipa/ticket/3744
|
|
|
|
| |
https://fedorahosted.org/freeipa/ticket/3744
|
|
|
|
| |
https://fedorahosted.org/freeipa/ticket/3744
|
|
|
|
| |
https://fedorahosted.org/freeipa/ticket/3744
|
|
|
|
|
|
|
| |
Add ldap_connect() method to Host to allow executing querying LDAP from tests.
Use information in the mapping tree to poll until all replication is finished
(or failing) before checking that entries replicated successfully.
|
|
|
|
|
|
|
| |
This script makes common testing tasks such as IPA installation
and uninstallation available outside of Python.
https://fedorahosted.org/freeipa/ticket/3721
|
|
|
|
|
|
|
| |
This allows a cluster of replicas and clients to be installed
in a named topology.
Several named topologies are available (star, line, complete, tree,
tree2) and new ones can be defined as a simple function.
|
|
|
|
|
|
|
|
| |
- install_client
- connect_replica
- disconnect_replica
- prepare_host
- kinit_admin
|
|
|
|
|
| |
For complex topologies the CA needs to be available on most
replicas, since only servgers with a CA can prepare replica files.
|
|
|
|
| |
This allows collecting logs when a test context is not available.
|
|
|
|
| |
This allows reusing the code elsewhere
|
|
|
|
|
|
| |
Documentation: http://www.freeipa.org/page/Web_UI_Integration_Tests
https://fedorahosted.org/freeipa/ticket/3744
|
| |
|