Allow setting CTS parent_compose_ids using --parent-compose-id option.

This is needed to track dependencies between composes in the Compose
Tracking Service.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2020-08-13 13:22:43 +02:00
parent 7a6d8303dc
commit 2657a12c96
3 changed files with 17 additions and 3 deletions

View file

@ -648,7 +648,7 @@ class ComposeTestCase(unittest.TestCase):
mocked_requests.post.assert_called_once_with(
"https://cts.localhost.tld/api/1/composes/",
auth=mock.ANY,
json={"compose_info": self.ci_json},
json={"compose_info": self.ci_json, "parent_compose_ids": None},
)