From 0faea8bffa52fc9ae7d386d9bfc357a10d175fce Mon Sep 17 00:00:00 2001 From: Daniel Miller Date: Wed, 12 Jul 2017 17:09:05 -0400 Subject: [PATCH] Add some more tests and remove duplicates As added in https://github.com/dimagi/commcare-hq/pull/17000 --- .../resources/case_relationship_tests.json | 91 ++++++++++++------- 1 file changed, 57 insertions(+), 34 deletions(-) diff --git a/src/test/resources/case_relationship_tests.json b/src/test/resources/case_relationship_tests.json index 1877cc45dc..a5fd2e13cf 100644 --- a/src/test/resources/case_relationship_tests.json +++ b/src/test/resources/case_relationship_tests.json @@ -635,40 +635,6 @@ ], "outcome": [] }, - { - "name": "owned_closed_open_extension", - "owned": [ - "a" - ], - "extensions": [ - [ - "a", - "b" - ] - ], - "closed": [ - "b" - ], - "outcome": [] - }, - { - "name": "closed_extension", - "owned": [ - "a" - ], - "extensions": [ - [ - "e", - "a" - ] - ], - "closed": [ - "e" - ], - "outcome": [ - "a" - ] - }, { "name": "Broken_Extension_Chain", "owned": [ @@ -826,5 +792,62 @@ "outcome": [ "a" ] + }, + { + "name": "parent_of_host_of_owned_extension_with_other_host", + "skip": "fails due to bad sync log before running test", + "owned": [ + "d" + ], + "subcases": [ + ["c", "e"] + ], + "extensions": [ + ["d", "a"], + ["d", "c"] + ], + "outcome": [ + "d", "a", "c", "e" + ] + }, + { + "name": "closed_parent_double_index", + "owned": [ + "d" + ], + "closed": [ + "a" + ], + "subcases": [ + ["b", "a"] + ], + "extensions": [ + ["b", "a"], + ["c", "b"], + ["d", "b"] + ], + "outcome": [ + "a", "b", "c", "d" + ] + }, + { + "name": "unowned_child_with_closed_extension_chain", + "owned": [ + "a", "e" + ], + "closed": [ + "d" + ], + "subcases": [ + ["a", "b"], + ["c", "b"] + ], + "extensions": [ + ["d", "c"], + ["e", "d"] + ], + "outcome": [ + "a", "b" + ] } ]