From 6fbdcf505faa7a538856f901569d28840b654d27 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 11 Sep 2020 16:50:11 +0200 Subject: [PATCH] test: add unknown tag check test Test that we fail a compose for an unknown tag. --- test/integration/test_koji.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/integration/test_koji.py b/test/integration/test_koji.py index 149f736..b1ac9fa 100644 --- a/test/integration/test_koji.py +++ b/test/integration/test_koji.py @@ -60,3 +60,13 @@ class TestIntegration(unittest.TestCase): "x86_64", repo=F32_REPO) self.check_res(res) + + def test_unknown_tag_check(self): + """Unknown Tag check""" + # Check building an unknown tag fails + res = self.koji("Fedora-Cloud", + "32", + "fedora-32", + "UNKNOWNTAG", + "x86_64") + self.check_fail(res)