<feed xmlns='http://www.w3.org/2005/Atom'>
<title>freeipa.git/ipatests/pytest_ipa, branch fix_ber_scanf</title>
<subtitle>FreeIPA patches</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/'/>
<entry>
<title>ipatests: modify run_command to allow specify successful return codes</title>
<updated>2019-09-06T10:11:04+00:00</updated>
<author>
<name>Sergey Orlov</name>
<email>sorlov@redhat.com</email>
</author>
<published>2019-08-23T13:13:29+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=1fe69f352b28c7bbf218c9d3ece4b45eac6ddad6'/>
<id>1fe69f352b28c7bbf218c9d3ece4b45eac6ddad6</id>
<content type='text'>
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abbra@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abbra@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipatests: add utility functions related to using and managing user accounts</title>
<updated>2019-09-06T10:11:04+00:00</updated>
<author>
<name>Sergey Orlov</name>
<email>sorlov@redhat.com</email>
</author>
<published>2019-07-29T09:08:59+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=3fa7865ff8c48a35d0d120c74da76ea4076a6aa4'/>
<id>3fa7865ff8c48a35d0d120c74da76ea4076a6aa4</id>
<content type='text'>
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abbra@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abbra@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipatests: allow to pass additional options for clients installation</title>
<updated>2019-09-06T10:11:04+00:00</updated>
<author>
<name>Sergey Orlov</name>
<email>sorlov@redhat.com</email>
</author>
<published>2019-07-29T09:07:59+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=074bf285f185d96d67cf9f410f1e8935078d15eb'/>
<id>074bf285f185d96d67cf9f410f1e8935078d15eb</id>
<content type='text'>
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abbra@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abbra@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Test external CA with DNS name constraints</title>
<updated>2019-08-06T10:39:46+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>cheimes@redhat.com</email>
</author>
<published>2019-08-06T07:56:35+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=69138c848d605ddcb997c8d3f6d51ebdc561c8a6'/>
<id>69138c848d605ddcb997c8d3f6d51ebdc561c8a6</id>
<content type='text'>
Verify that FreeIPA can be installed with an external CA that has a name
constraints extension.

Signed-off-by: Christian Heimes &lt;cheimes@redhat.com&gt;
Reviewed-By: Fraser Tweedale &lt;ftweedal@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abokovoy@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Verify that FreeIPA can be installed with an external CA that has a name
constraints extension.

Signed-off-by: Christian Heimes &lt;cheimes@redhat.com&gt;
Reviewed-By: Fraser Tweedale &lt;ftweedal@redhat.com&gt;
Reviewed-By: Alexander Bokovoy &lt;abokovoy@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipatests: Add tests for interactive chronyd config</title>
<updated>2019-07-31T12:21:37+00:00</updated>
<author>
<name>Tibor Dudlák</name>
<email>tdudlak@redhat.com</email>
</author>
<published>2019-07-17T13:46:43+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=2bc7fb7fd0b0dec3b7fd8d25b4a30aa453537dfd'/>
<id>2bc7fb7fd0b0dec3b7fd8d25b4a30aa453537dfd</id>
<content type='text'>
Add interactive configuration tests for
ipa-server-install and ipa-client-install
FreeIPA server as it is now is unable to
configure NTP interactively for replica
installations.

Resolves: https://pagure.io/freeipa/issue/7908
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add interactive configuration tests for
ipa-server-install and ipa-client-install
FreeIPA server as it is now is unable to
configure NTP interactively for replica
installations.

Resolves: https://pagure.io/freeipa/issue/7908
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipatests: Update test tasks for client to be interactive</title>
<updated>2019-07-31T12:21:37+00:00</updated>
<author>
<name>Tibor Dudlák</name>
<email>tdudlak@redhat.com</email>
</author>
<published>2019-07-23T13:02:33+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=44bcf0990fd5ed64c9997420b19db161b3b407fe'/>
<id>44bcf0990fd5ed64c9997420b19db161b3b407fe</id>
<content type='text'>
Related: https://pagure.io/freeipa/issue/7908
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Related: https://pagure.io/freeipa/issue/7908
Reviewed-By: Michal Polovka &lt;mpolovka@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipatests: rename config_replica_resolvconf_with_master_data()</title>
<updated>2019-07-30T21:42:54+00:00</updated>
<author>
<name>François Cami</name>
<email>fcami@redhat.com</email>
</author>
<published>2019-07-30T14:30:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=526b85a66e9ab90a5c4ef3f9ecca200664e1af9e'/>
<id>526b85a66e9ab90a5c4ef3f9ecca200664e1af9e</id>
<content type='text'>
config_replica_resolvconf_with_master_data() is not replica specific.
Rename to config_host_resolvconf_with_master_data() as it is not tied
to any role (master, replica, client).

Signed-off-by: François Cami &lt;fcami@redhat.com&gt;
Reviewed-By: Sergey Orlov &lt;sorlov@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
config_replica_resolvconf_with_master_data() is not replica specific.
Rename to config_host_resolvconf_with_master_data() as it is not tied
to any role (master, replica, client).

Signed-off-by: François Cami &lt;fcami@redhat.com&gt;
Reviewed-By: Sergey Orlov &lt;sorlov@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Make use of Azure Pipeline slicing</title>
<updated>2019-07-16T10:23:21+00:00</updated>
<author>
<name>Stanislav Levin</name>
<email>slev@altlinux.org</email>
</author>
<published>2019-07-03T09:56:32+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=a2d4e2a61f46cf6337786b2cb031e3a9f394a708'/>
<id>a2d4e2a61f46cf6337786b2cb031e3a9f394a708</id>
<content type='text'>
The unit tests execution time within Azure Pipelines(AP) is not
balanced. One test job(Base) takes ~13min, while another(XMLRPC)
~28min. Fortunately, AP supports slicing:

&gt; An agent job can be used to run a suite of tests in parallel. For
example, you can run a large suite of 1000 tests on a single agent.
Or, you can use two agents and run 500 tests on each one in parallel.
To leverage slicing, the tasks in the job should be smart enough to
understand the slice they belong to.

&gt;The step that runs the tests in a job needs to know which test slice
should be run. The variables System.JobPositionInPhase and
System.TotalJobsInPhase can be used for this purpose.

Thus, to support this pytest should know how to split the test suite
into groups(slices). For this, a new internal pytest plugin was added.

About plugin.
- Tests within a slice are grouped by test modules because not all of
the tests within the module are independent from each other.
- Slices are balanced by the number of tests within test module.
- To run some module within its own environment there is a dedicated
slice option (could help with extremely slow tests)

Examples.
- To split `test_cmdline` tests into 2 slices and run the first one:

ipa-run-tests --slices=2 --slice-num=1 test_cmdline

- To split tests into 2 slices, then to move one module out to its own slice
and run the second one:

ipa-run-tests --slices=2 --slice-dedicated=test_cmdline/test_cli.py \
    --slice-num=2 test_cmdline

Fixes: https://pagure.io/freeipa/issue/8008
Signed-off-by: Stanislav Levin &lt;slev@altlinux.org&gt;
Reviewed-By: Alexander Bokovoy &lt;abokovoy@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The unit tests execution time within Azure Pipelines(AP) is not
balanced. One test job(Base) takes ~13min, while another(XMLRPC)
~28min. Fortunately, AP supports slicing:

&gt; An agent job can be used to run a suite of tests in parallel. For
example, you can run a large suite of 1000 tests on a single agent.
Or, you can use two agents and run 500 tests on each one in parallel.
To leverage slicing, the tasks in the job should be smart enough to
understand the slice they belong to.

&gt;The step that runs the tests in a job needs to know which test slice
should be run. The variables System.JobPositionInPhase and
System.TotalJobsInPhase can be used for this purpose.

Thus, to support this pytest should know how to split the test suite
into groups(slices). For this, a new internal pytest plugin was added.

About plugin.
- Tests within a slice are grouped by test modules because not all of
the tests within the module are independent from each other.
- Slices are balanced by the number of tests within test module.
- To run some module within its own environment there is a dedicated
slice option (could help with extremely slow tests)

Examples.
- To split `test_cmdline` tests into 2 slices and run the first one:

ipa-run-tests --slices=2 --slice-num=1 test_cmdline

- To split tests into 2 slices, then to move one module out to its own slice
and run the second one:

ipa-run-tests --slices=2 --slice-dedicated=test_cmdline/test_cli.py \
    --slice-num=2 test_cmdline

Fixes: https://pagure.io/freeipa/issue/8008
Signed-off-by: Stanislav Levin &lt;slev@altlinux.org&gt;
Reviewed-By: Alexander Bokovoy &lt;abokovoy@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipatests: new test for trust with partially unreachable AD topology</title>
<updated>2019-07-15T12:35:51+00:00</updated>
<author>
<name>Sergey Orlov</name>
<email>sorlov@redhat.com</email>
</author>
<published>2019-07-02T13:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=843f57abe431bcf493e0bcce8ef07255be986435'/>
<id>843f57abe431bcf493e0bcce8ef07255be986435</id>
<content type='text'>
Establishing trust with partially unavailable AD hosts require usage
of --server option. The new test checks that both commands trust-add
and trust-fetch-domains properly use this option and also that
trust-add correctly passes the server value when imlicitly invoking
trust-fetch-domains.

Relates to: https://pagure.io/freeipa/issue/7895.

Reviewed-By: Tibor Dudlak &lt;tdudlak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Establishing trust with partially unavailable AD hosts require usage
of --server option. The new test checks that both commands trust-add
and trust-fetch-domains properly use this option and also that
trust-add correctly passes the server value when imlicitly invoking
trust-fetch-domains.

Relates to: https://pagure.io/freeipa/issue/7895.

Reviewed-By: Tibor Dudlak &lt;tdudlak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Make use of `named` well-known service</title>
<updated>2019-06-25T13:33:06+00:00</updated>
<author>
<name>Stanislav Levin</name>
<email>slev@altlinux.org</email>
</author>
<published>2019-06-21T21:01:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/freeipa.git/commit/?id=8f7d33356503794463611eb48317c9998187eddb'/>
<id>8f7d33356503794463611eb48317c9998187eddb</id>
<content type='text'>
The systemd unit name of `named`(which is actually used) is platform-dependent:
debian - bind9-pkcs11.service
fedora - named-pkcs11.service
redhat - named-pkcs11.service

Other systems may have their own name of `bind` service.
But the default one (`named-pkcs11`) is assumed in many tests.
Of course, these tests fail on such platforms.

This can be easily fixed.
All platforms define well-knownservice `named`, which is linked to
the actually utilized one.

Fixes: https://pagure.io/freeipa/issue/7990
Signed-off-by: Stanislav Levin &lt;slev@altlinux.org&gt;
Reviewed-By: Christian Heimes &lt;cheimes@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The systemd unit name of `named`(which is actually used) is platform-dependent:
debian - bind9-pkcs11.service
fedora - named-pkcs11.service
redhat - named-pkcs11.service

Other systems may have their own name of `bind` service.
But the default one (`named-pkcs11`) is assumed in many tests.
Of course, these tests fail on such platforms.

This can be easily fixed.
All platforms define well-knownservice `named`, which is linked to
the actually utilized one.

Fixes: https://pagure.io/freeipa/issue/7990
Signed-off-by: Stanislav Levin &lt;slev@altlinux.org&gt;
Reviewed-By: Christian Heimes &lt;cheimes@redhat.com&gt;
Reviewed-By: Rob Crittenden &lt;rcritten@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
