Skip to content

Commit

Permalink
test: remove log contents checking
Browse files Browse the repository at this point in the history
Log validation should be done in osbuild-composer not in
cockpit-composer. Therefore, the logs check is removed.
  • Loading branch information
jkozol committed Mar 19, 2021
1 parent 9d4afb0 commit bdc4620
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/verify/check-image
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,8 @@ class TestLargeImage(composerlib.ComposerCase):
with b.wait_timeout(3600):
b.wait_text("li[aria-labelledby={}] [data-status=true]".format(selector),
"Image build complete")
# log should contains rpm, hostname, users stages and tar assembler
# log should open and close
b.click("li[aria-labelledby={}] button:contains('Logs')".format(selector))
b.wait_in_text("#{}-logs".format(uuid), "Stage org.osbuild.rpm")
b.wait_in_text("#{}-logs".format(uuid), "Stage: org.osbuild.rpm-ostree")
b.wait_in_text("#{}-logs".format(uuid), "Assembler org.osbuild.ostree.commit")
# close logs
b.click("li[aria-labelledby={}] button:contains('Logs')".format(selector))

# download image
Expand Down Expand Up @@ -777,13 +773,8 @@ class TestLargeImage(composerlib.ComposerCase):
"composer-cli compose info {} | head -1 | awk '{{print $6}}'".format(uuid)
).rstrip()
self.assertEqual(int(image_size), 4 * 1024 * 1024 * 1024)
# log should contains rpm, hostname, users stages and tar assembler
# log should open and close
b.click("li[aria-labelledby={}] button:contains('Logs')".format(selector))
b.wait_in_text("#{}-logs".format(uuid), "Stage org.osbuild.rpm")
b.wait_in_text("#{}-logs".format(uuid), "Stage: org.osbuild.hostname")
b.wait_in_text("#{}-logs".format(uuid), "Stage: org.osbuild.users")
b.wait_in_text("#{}-logs".format(uuid), "Assembler org.osbuild.qemu")
# close logs
b.click("li[aria-labelledby={}] button:contains('Logs')".format(selector))

# download image
Expand Down

0 comments on commit bdc4620

Please sign in to comment.