Skip to content

Recreate webhooks integration test from robottelo#94

Merged
adamruzicka merged 1 commit intotheforeman:masterfrom
adamlazik1:integration_test
Jan 28, 2026
Merged

Recreate webhooks integration test from robottelo#94
adamruzicka merged 1 commit intotheforeman:masterfrom
adamlazik1:integration_test

Conversation

@adamlazik1
Copy link
Contributor

@adamlazik1 adamlazik1 commented Jan 14, 2026

Depends on #89

@adamlazik1 adamlazik1 marked this pull request as ready for review January 22, 2026 11:51
adamlazik1 added a commit to adamlazik1/robottelo that referenced this pull request Jan 22, 2026
I have observed that the webhooks UI test can take up to 10 minutes to
execute on local robottelo instance and up to 20+ minutes on PRT
testing. This is with applied changes from
SatelliteQE/airgun#2256 which update the test to
pass after the webhook PF5 update. Without these changes, the test takes
even longer. I do not think that this is a reasonable time for what the
test does. I have recreated this test in foreman_webhooks:
theforeman/foreman_webhooks#94
This test copies the functionality 1:1 and also tests on a live server
using the Capybara framework. It takes on average 90 seconds to
complete. Due to a sizable difference in a time needed for completion, I
propose to replace test_webhook.py with the test in foreman_webhooks and
to rely on testing in the foreman_webhooks repository when it comes to
UI. This will contribute a tiny bit to reducing strain on our testing
infrastructure.
@adamlazik1
Copy link
Contributor Author

#89 was merged; I would appreciate a review on this. I would like this test to replace in webhooks UI test in robottelo. For more information see SatelliteQE/airgun#2256

@adamlazik1 adamlazik1 changed the title Webhooks integration test Recreate webhooks integration test from robottelo Jan 22, 2026
Copy link

@pnovotny pnovotny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I am not an expert on UI testing in Ruby or capybara, the test looks good to me.

One side note: if you decide in the future to extend the UI test here in foreman repo, you would most probably need to refactor the helper methods into more reusable format.
This could lead to that you'll end up with you own implementation of robottelo's airgun & Widgetastic & similar libraries that you'll need to maintain on your own(-ish).
Just a thought to be aware of.

Copy link
Contributor

@adamruzicka adamruzicka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the test be broken up somehow? Currently it is a single test that covers like 95% of the plugin's ui making the test results very much all or nothing

@adamlazik1
Copy link
Contributor Author

Could the test be broken up somehow? Currently it is a single test that covers like 95% of the plugin's ui making the test results very much all or nothing

Updated.

Copy link
Contributor

@adamruzicka adamruzicka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last nitpick, otherwise lgtm

@adamruzicka adamruzicka merged commit 8ae0746 into theforeman:master Jan 28, 2026
12 checks passed
@adamruzicka
Copy link
Contributor

Thank you @adamlazik1 !

@adamlazik1 adamlazik1 deleted the integration_test branch January 29, 2026 01:03
lpramuk pushed a commit to SatelliteQE/robottelo that referenced this pull request Feb 2, 2026
I have observed that the webhooks UI test can take up to 10 minutes to
execute on local robottelo instance and up to 20+ minutes on PRT
testing. This is with applied changes from
SatelliteQE/airgun#2256 which update the test to
pass after the webhook PF5 update. Without these changes, the test takes
even longer. I do not think that this is a reasonable time for what the
test does. I have recreated this test in foreman_webhooks:
theforeman/foreman_webhooks#94
This test copies the functionality 1:1 and also tests on a live server
using the Capybara framework. It takes on average 90 seconds to
complete. Due to a sizable difference in a time needed for completion, I
propose to replace test_webhook.py with the test in foreman_webhooks and
to rely on testing in the foreman_webhooks repository when it comes to
UI. This will contribute a tiny bit to reducing strain on our testing
infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants