summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2016-02-10 16:18:26 +0100
committerMartin Basti <mbasti@redhat.com>2016-02-23 17:32:36 +0100
commita1e582b33c42bcc8a708777afb975e7dc571ee3d (patch)
tree1b64dc3ca961d9f6429ee8903de6a1babba8c6c9 /ipatests/test_integration
parenta1d2ce00a6cf24649f6fa76a8b6dd04e02c6e73d (diff)
downloadfreeipa-a1e582b33c42bcc8a708777afb975e7dc571ee3d.tar.gz
freeipa-a1e582b33c42bcc8a708777afb975e7dc571ee3d.tar.xz
freeipa-a1e582b33c42bcc8a708777afb975e7dc571ee3d.zip
CI: Add test for double-circle topology generator.
Reviewed-By: Milan Kubik <mkubik@redhat.com>
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r--ipatests/test_integration/test_topologies.py63
1 files changed, 63 insertions, 0 deletions
diff --git a/ipatests/test_integration/test_topologies.py b/ipatests/test_integration/test_topologies.py
index e12d14139..a0a1b9d62 100644
--- a/ipatests/test_integration/test_topologies.py
+++ b/ipatests/test_integration/test_topologies.py
@@ -116,3 +116,66 @@ def test_topology_two_connected():
(7, 8),
]
assert list(topo('M', [])) == []
+
+
+def test_topology_double_circle_topo():
+ topo = tasks.get_topo('double-circle')
+ assert topo == tasks.double_circle_topo
+ assert list(topo('M', range(1, 30))) == [
+ ('M', 1),
+ (1, 6),
+ (1, 12),
+ (6, 7),
+ (7, 12),
+ (7, 18),
+ (12, 13),
+ (13, 18),
+ (13, 24),
+ (18, 19),
+ (19, 24),
+ (19, 'M'),
+ (24, 25),
+ (25, 'M'),
+ (25, 6),
+ ('M', 2),
+ (2, 3),
+ (2, 4),
+ (2, 5),
+ (3, 4),
+ (3, 5),
+ (4, 5),
+ (1, 5),
+ (6, 8),
+ (8, 9),
+ (8, 10),
+ (8, 11),
+ (9, 10),
+ (9, 11),
+ (10, 11),
+ (7, 11),
+ (12, 14),
+ (14, 15),
+ (14, 16),
+ (14, 17),
+ (15, 16),
+ (15, 17),
+ (16, 17),
+ (13, 17),
+ (18, 20),
+ (20, 21),
+ (20, 22),
+ (20, 23),
+ (21, 22),
+ (21, 23),
+ (22, 23),
+ (19, 23),
+ (24, 26),
+ (26, 27),
+ (26, 28),
+ (26, 29),
+ (27, 28),
+ (27, 29),
+ (28, 29),
+ (25, 29),
+ ]
+ assert list(topo('M', [])) == []