-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Test class for Webpack | ||
:CaseAutomation: Automated | ||
:CaseComponent: Packaging | ||
:Team: Endeavour | ||
:CaseImportance: High | ||
""" | ||
import pytest | ||
|
||
|
||
@pytest.mark.tier2 | ||
def test_positive_webpack5(target_sat): | ||
"""Check whether Webpack 5 was used at packaging time | ||
:id: b7f3fbb2-ef4b-4634-877f-b8ea10373e04 | ||
:expectedresults: There is a file "public/webpack/foreman_tasks/foreman_tasks_remoteEntry.js" when Webpack 5 has been used. It used to be "public/webpack/foreman-tasks-<ID>.js" before. | ||
""" | ||
assert ( | ||
target_sat.execute( | ||
"find /usr/share/gems | grep public/webpack/foreman_tasks/foreman_tasks_remoteEntry.js" | ||
).status | ||
== 0 | ||
) |