diff options
author | David Kupka <dkupka@redhat.com> | 2016-02-10 08:46:43 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-02-12 16:57:19 +0100 |
commit | 2541b5fcbf32444b45ea640653d45f244d040be2 (patch) | |
tree | 104b4478462f46d9b75810605c958f25bb6695f5 /ipatests/test_integration | |
parent | c2bbd5dcd89de4fa0d8580722fc11ac073efc7ba (diff) | |
download | freeipa-2541b5fcbf32444b45ea640653d45f244d040be2.tar.gz freeipa-2541b5fcbf32444b45ea640653d45f244d040be2.tar.xz freeipa-2541b5fcbf32444b45ea640653d45f244d040be2.zip |
CI: Add test for 2-connected topology generator.
Reviewed-By: Milan Kubik <mkubik@redhat.com>
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r-- | ipatests/test_integration/test_topologies.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ipatests/test_integration/test_topologies.py b/ipatests/test_integration/test_topologies.py index 86ca1904f..f5332adbe 100644 --- a/ipatests/test_integration/test_topologies.py +++ b/ipatests/test_integration/test_topologies.py @@ -96,3 +96,22 @@ def test_topology_complete(): (2, 3), ] assert list(topo('M', [])) == [] + + +def test_topology_two_connected(): + topo = tasks.get_topo('2-connected') + assert topo == tasks.two_connected_topo + assert list(topo('M', [1, 2, 3, 4, 5, 6, 7, 8])) == [ + ('M', 1), + ('M', 2), + (2, 3), + (1, 3), + ('M', 4), + ('M', 5), + (4, 6), + (5, 6), + (2, 4), + (2, 7), + (4, 8), + (7, 8), + ] |